Re: Break on too much weight
Posted by Vash on
Sat Jan 22nd 2005 at 2:21am
Vash
member
1206 posts
181 snarkmarks
Registered:
Feb 4th 2003
Occupation: Afraid of Spiders
In my map, I want an area of the floor to be breakable, but it will
only break after a certain amount of pressure is applied to it. The
player mass is around 60.00 to 80.00, so two players would equal a mass
of [ 120.00 ] or [ 160.00 ]. I would like to make the floor after two
players weight is applied. Or, a heavy physics object is applied.
Re: Break on too much weight
Posted by Nickelplate on
Sat Jan 22nd 2005 at 2:37am
2770 posts
346 snarkmarks
Registered:
Nov 23rd 2004
Occupation: Prince of Pleasure
Location: US
there's no way to set a weight limit per se, but maybe you could make a trigger so that would break it instead. Like after 2 ppl have passed through a trigger multiple the floor breaks.
Re: Break on too much weight
Posted by Crono on
Sat Jan 22nd 2005 at 2:44am
Crono
super admin
6628 posts
700 snarkmarks
Registered:
Dec 19th 2003
Location: Oregon, USA
... or you could actually make structural integrity. the constraint entities have torque values.
So if it were a bridge or something as such, you'd put up suspension cables with constraints and you put breakable on them with a torque value with some series of outputs to the other objects in the system. This would make it so the object hanging (could be frozen and triggered by the break) fall. etc etc.
This, however, is just an idea. I'm not sure about the precise specifics.
Re: Break on too much weight
Posted by aonomus on
Sat Jan 22nd 2005 at 5:00am
18 posts
2 snarkmarks
Registered:
Dec 26th 2004
The problem is that if you've ever walked on a physbox, you get really
jerky shaking movement, and jumping can exert more force than just
standing on something. Physics are odd...
Re: Break on too much weight
Posted by aonomus on
Sun Jan 23rd 2005 at 1:13am
18 posts
2 snarkmarks
Registered:
Dec 26th 2004
Disabled physboxes are not affected by anything, and effectively turn the weight on the constraints to zero.
Something you could do is make a trigger_teleport 1 unit thick above
the floor with a disabled func_physbox. OnStartTouch adds to a
math_counter, OnEndTouch subtracts, when you hit the limit, the counter
will enable motion on a physbox.
Re: Break on too much weight
Posted by Guessmyname on
Sun Jan 23rd 2005 at 11:22am
Posted
2005-01-23 11:22am
342 posts
173 snarkmarks
Registered:
Dec 6th 2004
Have you had a look at the env_player_surface_trigger?
Re: Break on too much weight
Posted by Guessmyname on
Tue Jan 25th 2005 at 6:09pm
342 posts
173 snarkmarks
Registered:
Dec 6th 2004
I got it: the Game_zone_player brush entity. It counts how many players
are in its area. I it has, say two for example, you can make it break
the glass!