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
m (Manually updating the last pages using Point ent)
(-added class hierarchy, cleanup)
Line 1: Line 1:
{{CD|CPhysicsPropRespawnable|file1=props.cpp}}
{{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.


Line 4: Line 5:


== Keyvalues ==
== Keyvalues ==
{{KV|Respawn time (<code>RespawnTime</code>)|int|Amount in seconds this prop will respawn after it breaks.}}
{{KV|Respawn time|intn=RespawnTime|int|Amount in seconds this prop will respawn after it breaks.}}
{{KV BasePropPhysics}}
{{note|All other keyvalues / inputs / outputs are identical to [[prop_physics]]}}
{{KV RenderFields}}
{{KV BaseEntity}}


== Flags ==
== See also ==
{{Fl|4194304|Attempt to override gib with the character gib system|only=BMS}}
* {{ent|prop_data}}
{{Fl BasePropPhysics}}
* [[Prop Types Overview]]
 
** {{ent|prop_physics}}
== Inputs ==
** {{ent|prop_physics_multiplayer}}
{{IO|Ignite|Ignite, burst into flames.}}
** {{ent|prop_physics_override}}
{{IO|IgniteLifetime|<code>Ignite</code> with the given lifetime. {{todo|Before the flames extinguish, or before health reaches zero?}}|param=float}}
** {{ent|prop_sphere}}
{{IO|IgniteNumHitboxFires|<code>Ignite</code> with the given number of hitbox fires.|param=integer}}
** {{ent|prop_dynamic}}
{{IO|IgniteHitboxFireScale|<code>Ignite</code> with the given hitbox fire scale.|param=float}}
** {{ent|prop_static}}
{{I BasePropPhysics}}
** {{ent|prop_ragdoll}}
{{I RenderFields}}
{{I BaseEntity}}
 
== Outputs ==
{{O BasePropPhysics}}
{{O BaseEntity}}
 
==See also==
[[prop_physics]] - Normal prop_physics entity.


[[Category:Physics]]
[[Category:Physics]]

Revision as of 00:52, 20 March 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.

Icon-Bug.pngBug:Breaking this entity using a trigger_hurt will crash the game for all clients!  [todo tested in ?]

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