phys_hinge abnormal actions
Post Reply
Quote
Re: phys_hinge abnormal actions
Posted by DrGlass on Thu Jan 13th at 12:17pm 2005


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?





Quote
Re: phys_hinge abnormal actions
Posted by Mad on Thu Jan 13th at 1:39pm 2005


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.



Quote
Re: phys_hinge abnormal actions
Posted by Rof on Thu Jan 13th at 6:21pm 2005


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.




Quote
Re: phys_hinge abnormal actions
Posted by RealEschaton on Thu Jan 13th at 11:09pm 2005


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.





Quote
Re: phys_hinge abnormal actions
Posted by Corona on Fri Jan 14th at 7:41am 2005


How do you break the hinge if its pulled to much?



Quote
Re: phys_hinge abnormal actions
Posted by Leperous on Fri Jan 14th at 9:42am 2005


By specifying a breaking force (and torque)..? There aren't that many properties of the hinge




Post Reply