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

func_proprrespawnzone

From Valve Developer Community
Jump to navigation Jump to search
Info.png
This entity is not in the FGD by default, except in Team Fortress 2.
See below for instructions on making it available.
Class hierarchy
CBaseEntity defined in props.cpp
Class hierarchy (client)
C_FuncPhysicsRespawnZone
C_BaseEntity
physpropclientside.cpp

func_proprrespawnzone is a brush entity available in all Source Source games. It makes clientside physics props that were placed within its volume respawn or teleport back to their original location when the player is at least cl_phys_props_respawndist units away (default 1500) and cannot see the respawning. This check is done roughly every cl_phys_props_respawnrate (default 60) seconds. To ensure clientside physics prop is spawned, prop_physics_multiplayer with physicsmode set to 3 can be used.

Warning.pngWarning:This entity applies its effect based on its AABB instead of its brush model.
Note.pngNote:Doesn't work in Left 4 Dead 2 Left 4 Dead 2 which also doesn't have cvars cl_phys_props_respawndist and cl_phys_props_respawnrate, whose presence is probably good indication whether this entity works in a given game.
Todo: Works in Half-Life 2: Deathmatch. Test other games

Convars

Cvar/Command Parameters or default value Descriptor Effect
cl_phys_props_respawndist 1500 units Minimum distance from the player that a clientside prop must be before it's allowed to respawn.
cl_phys_props_respawnrate 60 seconds Time, in seconds, between clientside prop respawns.

FGD Code

@SolidClass base(Targetname) = func_proprrespawnzone :
	"Zone that handles respawning and distribution of clientside physics props." []

See also