Phys ragdollmagnet: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (cleanup tag)
(cleanup up)
Line 1: Line 1:
{{cleanup}}
{{wrongtitle|title=phys_ragdollmagnet}}
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.


KEYS
==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.


Name targetname <target_source> The name that other entities refer to this entity by.
==Flags==
*2 : Bar Magnet (use axis helper)


Start Disabled StartDisabled <choices>
==Inputs==
*{{i targetname}}
*'''Enable'''
:Enable this entity.
*'''Disable'''
:Disable this entity.
*{{i parentname}}


Parent parentname <target_destination> The name of this entity's parent in the movement hierarchy. Entities with parents move with their parent.
==Outputs==
*{{o targetname}}


Pitch Yaw Roll (Y Z X) angles <angle> This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.
[[Category:Entities]]
 
Bar Magnet Axis axis <vecline>
 
Effective Radius radius <float> Radius in which ragdolls are affected around this entity's origin.
 
Force 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.
 
Entity to affect target <string> If specified, the phys_ragdollmagnet will only affect the target entity.
 
spawnflags spawnflags <flags>
 
 
INPUTS
 
Kill Removes this entity from the world.
 
KillHierarchy Removes this entity and all its children from the world.
 
AddOutput <string> Adds an entity I/O connection to this entity. Format: <output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire (-1 == infinite)>. Very dangerous, use with care.
 
FireUser1 Causes this entity's OnUser1 output to be fired.
 
FireUser2 Causes this entity's OnUser2 output to be fired.
 
FireUser3 Causes this entity's OnUser3 output to be fired.
 
FireUser4 Causes this entity's OnUser4 output to be fired.
 
Enable Enable this entity.
 
Disable Disable this entity.
 
SetParent <string> Changes the entity's parent in the movement hierarchy.
 
SetParentAttachment <string> Change this entity to attach to a specific attachment point on its parent. Entities must be parented before being sent this input. The parameter passed in should be the name of the attachment.
 
ClearParent Removes this entity from the the movement hierarchy, leaving it free to move independently.
 
 
OUTPUTS
 
OnUser1 Fired in response to FireUser1 input.
 
OnUser2 Fired in response to FireUser2 input.
 
OnUser3 Fired in response to FireUser3 input.
 
OnUser4 Fired in response to FireUser4 input.

Revision as of 09:46, 4 October 2005

Template:Wrongtitle

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

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

Enable this entity.
  • Disable
Disable this entity.

Outputs