This article's documentation is for anything that uses the Source engine. Click here for more information.

Prop physics respawnable: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 2: Line 2:
{{this is a|name=prop_physics_respawnable|e0}} This entity is the same as [[prop_physics]], except it respawns a set time after breaking/exploding.
{{this is a|name=prop_physics_respawnable|e0}} This entity is the same as [[prop_physics]], except it respawns a set time after breaking/exploding.


{{bug|1=Breaking this entity using a {{ent|trigger_hurt}} will [https://youtube.com/watch?v=aguKEsHkM0Q crash the game] for all clients! {{jb3|in|addtext-front=''Fixed''{{nbsp}}}} }}
{{bug|1=Breaking this entity using a {{ent|trigger_hurt}} will [https://youtube.com/watch?v=aguKEsHkM0Q crash the game] for all clients! {{jb3|in|addtext-front=''Fixed''{{nbsp}}}}
{{workaround|Use a {{ent|point_template}} to spawn a regular {{ent|prop_physiscs}} instead.}}


== Keyvalues ==
== Keyvalues ==

Revision as of 19:48, 23 April 2024

C++ Class hierarchy
CPhysicsPropRespawnable
CPhysicsProp
CBreakableProp
CBaseProp
CBaseAnimating
CBaseEntity
C++ props.cpp

prop_physics_respawnable is an e0 available in all Source Source games. This entity is the same as prop_physics, except it respawns a set time after breaking/exploding.

{{bug|1=Breaking this entity using a trigger_hurt will crash the game for all clients! (Fixed in Jabroni Brawl: Episode 3)

PlacementTip.pngWorkaround:Use a point_template to spawn a regular prop_physiscs instead.

Keyvalues

Respawn time (RespawnTime) <integer>
Amount in seconds this prop will respawn after it breaks.
Note.pngNote:All other keyvalues / inputs / outputs are identical to prop_physics

See also