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 5: Line 5:
{{PlacementTip|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.}}
{{PlacementTip|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}}
{{note|In {{Bms|4}}, server side ragdoll created by NPC will not gib if created in this way, because this entity doesn't change ''m_bForceServerGibs'' to '''1'''.|hidetested=1}}


{{optim_brush}}
{{optim_brush}}

Latest revision as of 10:20, 2 August 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.
PlacementTip.gifPlacement 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.
Icon-Bug.pngBug:In Left 4 Dead seriesLeft 4 Dead series Left 4 Dead series ragdolls will still be client side.
Note.pngNote:In Black Mesa Black Mesa, server side ragdoll created by NPC will not gib if created in this way, because this entity doesn't change m_bForceServerGibs to 1.

See also