Func proprrespawnzone: Difference between revisions
Jump to navigation
Jump to search
Warning:This entity applies its effect based on its AABB instead of its brush model. [ Edit ]
Note:Doesn't work in
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.
SirYodaJedi (talk | contribs) mNo edit summary |
No edit summary |
||
Line 20: | Line 20: | ||
== See also == | == See also == | ||
* {{ent|prop_physics_multiplayer}} | * {{ent|prop_physics_multiplayer}} | ||
* {{ent|prop_physics_respawnable}} | |||
* [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 02:02, 14 March 2025

![]() |
---|
CBaseEntity defined in ![]() props.cpp
|
func_proprrespawnzone
is a brush entity available in all 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.



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." []