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
(see also)
(not in fgd)
Line 1: Line 1:
{{Ent not in fgd}}
{{CD|CPhysicsPropRespawnable|file1=props.cpp}}
{{CD|CPhysicsPropRespawnable|file1=props.cpp}}
{{this is a|point entity|name=prop_physics_respawnable}} This entity is the same as [[prop_physics]], except it respawns a set time after breaking/exploding.
{{this is a|point entity|name=prop_physics_respawnable}} This entity is the same as [[prop_physics]], except it respawns a set time after breaking/exploding.
Line 9: Line 10:


{{OtherKIO|prop_physics}}
{{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 ==
== See also ==

Revision as of 02:07, 14 March 2025

Icon-NotInFGD.png
This entity is not in the Counter-Strike: SourceDay of Defeat: SourceTeam Fortress 2Left 4 DeadLeft 4 Dead 2Alien SwarmCounter-Strike: Global Offensive FGD by default.
See below for instructions on making it available.
C++ Class hierarchy
CPhysicsPropRespawnable
CPhysicsProp
CBreakableProp
CBaseProp
CBaseAnimating
CBaseEntity
C++ props.cpp

prop_physics_respawnable is a point entity 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! (Fixed in Jabroni Brawl: Episode 3)
PlacementTip.pngWorkaround:Use a point_template to spawn a regular prop_physics each time it breaks.
  [todo tested in ?]

Keyvalues

Respawn time (RespawnTime) <integer>
Amount in seconds this prop will respawn after it breaks.
Note.pngNote:Other 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."
]

See also