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

Trigger serverragdoll: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{CD|CServerRagdollTrigger|file1=triggers.cpp}}
{{CD|CServerRagdollTrigger|file1=triggers.cpp}}
{{this is a|brush entity|name=trigger_serverragdoll}} It is a volume that forces any NPC inside it to create a server side ragdoll instead of a client one.
{{This is a|brush entity|name=trigger_serverragdoll}} It is a volume that forces any NPC inside it to create a server side ragdoll instead of a client one.


{{important|Only [[BaseCombatCharacter]] entities affected by this entity.}}
{{important|Only non-player [[CBaseCombatCharacter]] entities affected by this entity.}}
{{tip|These triggers can be used to fix undesirable cases where the ragdoll of a dead enemy falls ''through'' the ground, such as when combat occurs on top of a [[func_breakable]] or [[func_physbox]].  Simply surround the area in question with one of these triggers.}}
{{tip|These triggers can be used to fix undesirable cases where the ragdoll of a dead enemy falls ''through'' the ground, such as when combat occurs on top of a {{ent|func_breakable}} or {{ent|func_physbox}}.  Simply surround the area in question with one of these triggers.}}
{{bug|In {{l4ds|4}} ragdolls will still be client side.|hidetested=1}}
{{bug|In {{l4ds|4}} ragdolls will still be client side.|hidetested=1}}
{{bug|In {{Bms|4}} server side ragdolls created by killed NPCs never gib before save load.|hidetested=1}}
{{bug|In {{Bms|4}} server side ragdolls created by killed NPCs never gib before save load.|hidetested=1}}
Line 10: Line 10:


== See also ==
== See also ==
* [[prop_ragdoll]]
* {{ent|prop_ragdoll}}

Revision as of 18:46, 30 April 2025

C++ Class hierarchy
CServerRagdollTrigger
CBaseTrigger
CBaseToggle
CBaseEntity
C++ triggers.cpp

trigger_serverragdoll is a brush entity available in all Source Source games. It is a volume that forces any NPC inside it to create a server side ragdoll instead of a client one.

Icon-Important.pngImportant:Only non-player CBaseCombatCharacter entities affected by this entity.
Tip.pngTip:These triggers can be used to fix undesirable cases where the ragdoll of a dead enemy falls through the ground, such as when combat occurs on top of a func_breakable or func_physbox. Simply surround the area in question with one of these triggers.
Icon-Bug.pngBug:In Left 4 Dead seriesLeft 4 Dead series Left 4 Dead series ragdolls will still be client side.
Icon-Bug.pngBug:In Black Mesa Black Mesa server side ragdolls created by killed NPCs never gib before save load.

See also