phys_ragdollmagnet
Jump to navigation
Jump to search
Code classes:
CRagdollMagnet
CPointEntity
CBaseEntity
(all ents)
phys_ragdollmagnet
is a point entity present in all Source games. It applies force to ragdolls left by dead CBaseCombatCharacter
s at the moment they die. Ragdolls get pushed towards or away from the entity. Does not work in .
Flags[edit | edit source]
- 2: Bar Magnet (use axis helper) - Instead of pushing to the entity origin, push to the nearest point on a line between the entity origin and Bar Magnet Axis.
Keyvalues[edit | edit source]
- Effective Radius
(radius)
<float>
- Radius in which ragdolls are affected around this entity's origin/the line.
- Force
(force)
<float>
- Force to apply, in kilograms per unit per second. A 10kg ragdoll will get launched farther than a 100kg one.
- Entity to affect
(target)
<target_destination>
- If specified, only affect entities with this targetname.
- Bar Magnet Axis
(axis)
<vecline>
- Other end of the bar. See Bar Magnet.
- Start Disabled
(StartDisabled)
<boolean>
- Stay inactive until Enabled.
Inputs[edit | edit source]
- Enable
- Makes the entity active.
- Disable
- Makes the entity inactive.