Game ragdoll manager: Difference between revisions
Jump to navigation
Jump to search

Note:The properties of this entity apply to the whole map. Multiple instances of this entity within a map may cause errors.
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.) |
m (-added clientside class hierarchy, cleanup) |
||
Line 1: | Line 1: | ||
{{ | {{LanguageBar}} | ||
{{CD|CRagdollManager|file1=ragdoll_manager.cpp}} | {{CD|CRagdollManager|file1=ragdoll_manager.cpp}} | ||
{{ | {{This is a|point entity|name=game_ragdoll_manager}} It is used to control the number of [[ragdoll]]s in the world, if they are flagged to fade (server-side), for performance reasons. | ||
{{ | {{Map properties note}} | ||
{{CD|C_RagdollManager|base=C_BaseEntity|client=1|file1=1}} | |||
== Keyvalues == | == Keyvalues == | ||
{{KV Targetname}} | {{KV Targetname}} | ||
{{KV|Max Ragdoll Count|intn=MaxRagdollCount|integer|Sets the max number of ragdolls that can be in the world at a time (if they are flagged to fade). Set to -1 if you want to use the default value (<tt>g_ragdoll_maxcount</tt>).}} | {{KV|Max Ragdoll Count|intn=MaxRagdollCount|integer|Sets the max number of ragdolls that can be in the world at a time (if they are flagged to fade). Set to -1 if you want to use the default value (<tt>g_ragdoll_maxcount</tt>).}} | ||
{{warning|Accepted values range from -32 to 31. Anything over 31 resets back to -32.}} | :{{warning|Accepted values range from -32 to 31. Anything over 31 resets back to -32.}} | ||
{{KV|Max Ragdoll Count DX8|intn=MaxRagdollCountDX8|integer|Sets the max number of ragdolls that can be in the world at a time on DX8 hardware (if they are flagged to fade). Set to -1 if you want to use the "Max Ragdoll Count" value.}} | {{KV|Max Ragdoll Count DX8|intn=MaxRagdollCountDX8|integer|Sets the max number of ragdolls that can be in the world at a time on DX8 hardware (if they are flagged to fade). Set to -1 if you want to use the "Max Ragdoll Count" value.}} | ||
{{KV|Save Important Ragdolls|intn=SaveImportant|boolean|Should the ragdoll manager make sure ally ragdolls aren't deleted?}} | {{KV|Save Important Ragdolls|intn=SaveImportant|boolean|Should the ragdoll manager make sure ally ragdolls aren't deleted?}} | ||
== Inputs == | == Inputs == | ||
{{ | {{I|SetMaxRagdollCount|Set the Max Ragdoll Count.|param=integer}} | ||
{{ | {{I|SetMaxRagdollCountDX8|Set the Max Ragdoll Count on DX8 hardware.|param=integer}} | ||
Revision as of 21:49, 18 March 2025


![]() |
---|
CRagdollManager |
![]() |
game_ragdoll_manager
is a point entity available in all Source games. It is used to control the number of ragdolls in the world, if they are flagged to fade (server-side), for performance reasons.

![]() |
---|
C_RagdollManager |
![]() |
Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
- Max Ragdoll Count (MaxRagdollCount) <integer>
- Sets the max number of ragdolls that can be in the world at a time (if they are flagged to fade). Set to -1 if you want to use the default value (g_ragdoll_maxcount).
Warning:Accepted values range from -32 to 31. Anything over 31 resets back to -32.
- Max Ragdoll Count DX8 (MaxRagdollCountDX8) <integer>
- Sets the max number of ragdolls that can be in the world at a time on DX8 hardware (if they are flagged to fade). Set to -1 if you want to use the "Max Ragdoll Count" value.
- Save Important Ragdolls (SaveImportant) <boolean>
- Should the ragdoll manager make sure ally ragdolls aren't deleted?
Inputs
- SetMaxRagdollCount <integer >
- Set the Max Ragdoll Count.
- SetMaxRagdollCountDX8 <integer >
- Set the Max Ragdoll Count on DX8 hardware.