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
 
(23 intermediate revisions by 10 users not shown)
Line 1: Line 1:
{{wrongtitle|title=trigger_serverragdoll}}
{{CD|CServerRagdollTrigger|file1=triggers.cpp}}
==Entity Description==
{{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.
A volume that forces any NPC inside it to create a server side ragdoll instead of a client one. Useful above physics entities that serve as the ground.


==Keyvalues==
{{important|Only non-player [[CBaseCombatCharacter]] entities affected by this entity.}}
* {{kv triggeronce}}
{{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.}}
==Flags==
{{bug|In {{l4ds|4}} ragdolls will still be client side.|hidetested=1}}
* {{fl triggeronce ep1}}
{{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}}


==Inputs==
{{optim_brush}}
* {{i triggeronce}}
 
==Outputs==
== See also ==
* {{o triggeronce}}
* {{ent|prop_ragdoll}}
[[Category:Half-Life 2: Episode One Entities]]

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