Prop physics respawnable: Difference between revisions
Jump to navigation
Jump to search
Bug:Breaking this entity using a trigger_hurt will crash the game for all clients! (Fixed in
)
Workaround:Prevent trigger_hurt being able to hurt physical props via its flags or use a point_template to spawn a regular prop_physics each time it breaks.
Bug:Doesn't respawn in
Left 4 Dead 2
Note:Other
m (Fixed a "Respawn time" template typo and the "Ammount" typo.) |
No edit summary |
||
(23 intermediate revisions by 11 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{Ent not in fgd}} | ||
{{CD|CPhysicsPropRespawnable|file1=props.cpp}} | |||
{{this is a|model entity|name=prop_physics_respawnable}} This entity is the same as [[prop_physics]], except it respawns a set time after breaking/exploding. | |||
== | {{bug|hidetested=1|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|Prevent trigger_hurt being able to hurt physical props via its flags or use a {{ent|point_template}} to spawn a regular {{ent|prop_physics}} each time it breaks.}} }} | |||
{{bug|hidetested=1|Doesn't respawn in {{l4d2|4}}}} | |||
== Keyvalues == | == Keyvalues == | ||
{{KV|Respawn time|intn=RespawnTime|int|Amount in seconds this prop will respawn after it breaks.}} | |||
{{KV|Respawn time|int|Amount in seconds this prop will respawn after it breaks.}} | |||
{{OtherKIO|prop_physics}} | |||
{{ | |||
== | == FGD Code == | ||
<pre> | |||
@PointClass base(prop_physics) studioprop() sphere(fademindist) sphere(fademaxdist) = prop_physics_respawnable : | |||
"This class is the same as prop_physics, except it respawns after it breaks" | |||
[ | |||
RespawnTime(float) : "Respawn Time" : 60 : "Ammount in seconds this prop will respawn after it breaks." | |||
]</pre> | |||
== | == See also == | ||
{{ | * {{ent|prop_data}} | ||
* [[Prop Types Overview]] | |||
** {{ent|prop_physics}} | |||
[[ | ** {{ent|prop_physics_multiplayer}} | ||
** {{ent|prop_physics_override}} | |||
** {{ent|prop_sphere}} | |||
** {{ent|prop_dynamic}} | |||
** {{ent|prop_static}} | |||
** {{ent|prop_ragdoll}} | |||
* {{ent|func_proprrespawnzone}} | |||
[[Category:Physics]] | [[Category:Physics]] | ||
[[Category:Prop entities|physics respawnable]] |
Latest revision as of 19:27, 30 May 2025
![]() |
---|
CPhysicsPropRespawnable |
![]() |
prop_physics_respawnable
is a model entity available in all Source games. This entity is the same as prop_physics, except it respawns a set time after breaking/exploding.





Keyvalues
- Respawn time (RespawnTime) <integer>
- Amount in seconds this prop will respawn after it breaks.

Keyvalues / Inputs / Outputs
are same as prop_physics.FGD Code
@PointClass base(prop_physics) studioprop() sphere(fademindist) sphere(fademaxdist) = prop_physics_respawnable : "This class is the same as prop_physics, except it respawns after it breaks" [ RespawnTime(float) : "Respawn Time" : 60 : "Ammount in seconds this prop will respawn after it breaks." ]