Phys ragdollmagnet: Difference between revisions
Jump to navigation
Jump to search
m (cleanup tag) |
(cleanup up) |
||
Line 1: | Line 1: | ||
{{ | {{wrongtitle|title=phys_ragdollmagnet}} | ||
==Entity Description== | |||
An entity that acts like a magnet for ragdolls. Useful for crafting exaggerated ragdoll behavior (i.e. guys falling over rails on death). If the Bar Magnet spawnflag is set, the magnet works like it was a cylindrical magnet i.e. it attracts ragdolls to the nearest point on a line. | An entity that acts like a magnet for ragdolls. Useful for crafting exaggerated ragdoll behavior (i.e. guys falling over rails on death). If the Bar Magnet spawnflag is set, the magnet works like it was a cylindrical magnet i.e. it attracts ragdolls to the nearest point on a line. | ||
==Keyvalues== | |||
*{{kv targetname}} | |||
*'''StartDisabled''' <choices> | |||
:Choices are "Yes" or "No" | |||
*{{kv parentname}} | |||
*{{kv angles}} | |||
*'''axis''' <[[vecline]]> | |||
:Bar Magnet Axis | |||
*'''radius''' <float> | |||
:Radius around this entity's origin in which ragdolls are affected. | |||
*'''force''' <float> | |||
:Magnetic force to apply to ragdolls within the radius. Expressed as kilograms per inch per second. So a force of 1000 will add 10 inches/second to a 100kg man. It will add 100 inches per second to a 10kg headcrab. | |||
:'''target''' <string> | |||
:Entity to affect. If specified, the [[phys_ragdollmagnet]] will only affect the target entity. | |||
==Flags== | |||
*2 : Bar Magnet (use axis helper) | |||
==Inputs== | |||
*{{i targetname}} | |||
*'''Enable''' | |||
:Enable this entity. | |||
*'''Disable''' | |||
:Disable this entity. | |||
*{{i parentname}} | |||
==Outputs== | |||
*{{o targetname}} | |||
[[Category:Entities]] | |||
Revision as of 09:46, 4 October 2005
Entity Description
An entity that acts like a magnet for ragdolls. Useful for crafting exaggerated ragdoll behavior (i.e. guys falling over rails on death). If the Bar Magnet spawnflag is set, the magnet works like it was a cylindrical magnet i.e. it attracts ragdolls to the nearest point on a line.
Keyvalues
- Template:Kv targetname
- StartDisabled <choices>
- Choices are "Yes" or "No"
- Bar Magnet Axis
- radius <float>
- Radius around this entity's origin in which ragdolls are affected.
- force <float>
- Magnetic force to apply to ragdolls within the radius. Expressed as kilograms per inch per second. So a force of 1000 will add 10 inches/second to a 100kg man. It will add 100 inches per second to a 10kg headcrab.
- target <string>
- Entity to affect. If specified, the phys_ragdollmagnet will only affect the target entity.
Flags
- 2 : Bar Magnet (use axis helper)
Inputs
- Template:I targetname
- Enable
- Enable this entity.
- Disable
- Disable this entity.