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

Func proprrespawnzone: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(actually works)
Line 1: Line 1:
{{obsolete|entity=1}}
{{Ent not in fgd|none|except={{tf2}}}}
{{Ent not in fgd|none|except={{tf2}}}}
{{CDA|CBaseEntity|file1=[https://github.com/ValveSoftware/source-sdk-2013/blob/a62efecf624923d3bacc67b8ee4b7f8a9855abfd/src/game/server/props.cpp#L6161 props.cpp]}}
{{CDA|CBaseEntity|file1=[https://github.com/ValveSoftware/source-sdk-2013/blob/a62efecf624923d3bacc67b8ee4b7f8a9855abfd/src/game/server/props.cpp#L6161 props.cpp]}}
{{this is a|brush entity|name=func_proprrespawnzone}} Zone that handles respawning and distribution of clientside physics props.
{{this is a|brush entity|name=func_proprrespawnzone}} Zone that handles respawning and distribution of clientside physics props.
{{todo|Works in {{hl2dm}}. Test other games}}


{{confirm|This entity is disabled in code}}
== Convars ==
{{varcom|start}}
{{varcom|cl_phys_props_respawndist|1500|units|Minimum distance from the player that a clientside prop must be before it's allowed to respawn.}}
{{varcom|cl_phys_props_respawnrate|60|seconds|Time, in seconds, between clientside prop respawns.}}
{{varcom|end}}


== FGD code ==
== FGD code ==
Line 13: Line 17:


== See also ==
== See also ==
* {{ent|prop_physics_multiplayer}}
* [https://github.com/ValveSoftware/source-sdk-2013/blob/a62efecf624923d3bacc67b8ee4b7f8a9855abfd/src/game/client/physpropclientside.cpp#L631 physpropclientside.cpp]
* [https://github.com/ValveSoftware/source-sdk-2013/blob/a62efecf624923d3bacc67b8ee4b7f8a9855abfd/src/game/client/physpropclientside.cpp#L631 physpropclientside.cpp]


[[Category:Team Fortress 2 Entities]]
[[Category:Team Fortress 2 Entities]]

Revision as of 14:42, 13 March 2025

Icon-NotInFGD.png
This entity is not in the FGD by default, except in Team Fortress 2.
See below for instructions on making it available.
C++ Class hierarchy
CBaseEntity defined in C++ props.cpp

func_proprrespawnzone is a brush entity available in all Source Source games. Zone that handles respawning and distribution of clientside physics props.

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