cs_ragdoll

From Valve Developer Community
Jump to navigation Jump to search
English (en)Translate (Translate)
Info.png
This entity is not in the FGD by default.
See below for instructions on making it available.
Class hierarchy
CCSRagdoll
CBaseAnimatingOverlay
CBaseAnimating
CBaseEntity

cs_ragdoll is a point entity available in Counter-Strike: SourceCounter-Strike: Global Offensive Counter-Strike series and Left 4 Dead series Left 4 Dead series. It is akin to prop_ragdoll, being spawned on a player's death (albeit only if the ConVar cl_ragdoll_physics_enable is enabled). Unlike the clientside ragdolls normally spawned in other games, these can be shot, and are presumably used by cs_bots to determine dangerous areas due to ally deaths.

If "low violence" mode is engaged on a session start, cs_ragdoll uses QPhysics and can not be shot, but they will play a surrender animation ("death%d", if any exist).

Behavior

Counter-Strike series

In Counter-Strike: Source Counter-Strike: Source with "low violence" mode enabled on a session start, or the -lv launch option on much older versions of Counter-Strike: Global Offensive Counter-Strike: Global Offensive, cs_ragdoll is affected by QPhysics and plays a surrender animation.

Left 4 Dead series

cs_ragdoll is spawned upon a Survivor's death. In Left 4 Dead 2 Left 4 Dead 2 these are substituted by survivor_death_model unless the Survivor dies after dropping from a ledge, or during L4D1 mutations.