Re: phys_hinge abnormal actions
Posted by DrGlass on
Thu Jan 13th 2005 at 12:17pm
Posted
2005-01-13 12:17pm
DrGlass
member
1825 posts
632 snarkmarks
Registered:
Dec 12th 2004
Occupation: 2D/3D digital artist
Location: USA
I have an sign on a hinge, it swings fine but the player can grab the
sign with the phys cannon and pull it away from the hinge. After
it is pulled away it will snap back onto it's original position.
any way to fix this?
Re: phys_hinge abnormal actions
Posted by Mad on
Thu Jan 13th 2005 at 1:39pm
8 posts
1 snarkmarks
Registered:
Jan 9th 2005
Occupation: .
Location: Sweden
I don't think there is. The most realistic thing would be to break it
in that situation. You could do the same thing in hl2 singleplayer so i
don't think anyone will care really.
Re: phys_hinge abnormal actions
Posted by Rof on
Thu Jan 13th 2005 at 6:21pm
Rof
member
210 posts
41 snarkmarks
Registered:
Dec 3rd 2004
You might try the "change mass to keep stable attachement to world" spawnflag.
Or possibly attach the sign with two phys_lengthcontraints instead, and
set their "keep rigid" flags. But it'll be less work just to make the
hinge break when pulled too much.
Re: phys_hinge abnormal actions
Posted by RealEschaton on
Thu Jan 13th 2005 at 11:09pm
Posted
2005-01-13 11:09pm
19 posts
12 snarkmarks
Registered:
Dec 30th 2004
Occupation: Student (College)
Location: USA
You could also make it too heavy to lift with the physcannon... kind of a hack solution, but it's pretty easy to do would be good if you don't want players to be able to remove it. I'm not sure exactly where the no-lift threshold is, but it's pretty low; you can't lift a sofa, refridgerator or stove, so it's probably around 250-500 pounds.
Of course this will have side effects like making the sign swing less when struck with a bullet, but it wouldn't matter too much if it's made of metal.
Re: phys_hinge abnormal actions
Posted by Corona on
Fri Jan 14th 2005 at 7:41am
43 posts
4 snarkmarks
Registered:
Aug 31st 2003
Location: Holland
How do you break the hinge if its pulled to much?
Re: phys_hinge abnormal actions
Posted by Leperous on
Fri Jan 14th 2005 at 9:42am
Leperous
Creator of SnarkPit!
member
3382 posts
1635 snarkmarks
Registered:
Aug 21st 2001
Occupation: Lazy student
Location: UK
By specifying a breaking force (and torque)..? There aren't that many properties of the hinge :smile: