Respawn an irretrievable prop_physics Created 14 years ago2010-01-13 01:54:03 UTC by Soup Miner Soup Miner

Created 14 years ago2010-01-13 01:54:03 UTC by Soup Miner Soup Miner

Posted 14 years ago2010-01-13 01:54:03 UTC Post #277838
This is for a multiplayer map.
Let's say you have a prop_physics at the edge of a cliff, and it's pushed off to where it can't be retrieved. You'd like the players to still have access to this prop, because that's one less prop that can be tossed with the gravity gun if you don't get it back.

The prop just bounces off the sky texture, so the prop stays there. Forever. It's also not a breakable prop.
User posted image
How would I go about deleting and respawning a physics prop in such a case?
Being able to block physics props is an acceptable solution too, if anyone can tell me how.
Posted 14 years ago2010-01-13 03:00:43 UTC Post #277839
I'm not really much of a source mapper but through the mighty power of google and intuition from Goldsource mapping I propose this:

http://developer.valvesoftware.com/wiki/Trigger_teleport

Place a trigger_teleport at the surface of the "ocean" (in case they float and dont sink to the bottom), set the flag to 8 (Physics objects).

Put the info_teleport_destination or info_target at the spot you have the prop spawn.

This should cause any object dropped into the trigger to spawn back up, I would put the destination up in the air so that things wont try to spawn inside each other.

If it doesn't work you could do something involving an env_entity_maker and a trigger that kills the object and spawns a new one with the entity maker.
Posted 14 years ago2010-01-13 04:01:28 UTC Post #277841
Use a point_template. Set up a filtered trigger down in the water so when only that prop falls in, it is killed and then fire the ForceSpawn input on the point_template to respawn it in it's original position.

This entity is kick-ass, I use it pretty regularly.
Strider StriderTuned to a dead channel.
Posted 14 years ago2010-01-17 06:17:40 UTC Post #278049
Excellent. Many thanks.
You must be logged in to post a response.