Template:O BasePropPhysics

From Valve Developer Community
Jump to: navigation, search
English (en)
... Icon-Important.png
Curly brackets white.pngTemplate Documentation
Icon-translate.png
View
Edit
Page history

Usage

  • {{{l4d2}}}: set to 1 to add the OnHitByTank output.
  • {{{nofgd}}}: set to 1 to mark everything as !FGD.
  • {{{nohl2}}}: set to 1 to hide the OnPhysGunOnlyPickup output.
  • {{{noscroll}}}: set to 1 to stop it from scrolling (generally because it's inside another scrollbox).
  • {{{portal2}}}: set to 1 to add the OnFizzled output.


{{O BasePropPhysics|noscroll=1|nohl2=1}}

-->

will: 

BasePropPhysics:
OnMotionEnabled
Fired when motion has been enabled on the prop, either via the Health Level to Override Motion keyvalue or from the EnableMotion input.
OnAwakened
Fired when the prop has woken (force has been applied to it while it was asleep, or the Wake input has been called).
OnOutOfWorld
Fired whenever the object is detected to be outside the world. Specifically, it checks if the object is outside of the world's bounding box or if the object is traveling at over 2000 units per second in any cardinal direction.
OnPlayerUse
Fired when the player has +used the prop.
Note.pngNote:This output (but not any of the other pickup-related ones) will fire only if the Generate output on +USE spawnflag is set.
OnPhysGunDrop
Fired when the player has dropped the prop (from either +use or the gravity gun). !activator is the player.
OnPlayerPickup
Fired when the player has picked the prop up with +use or the gravity gun (in Half-Life 2).Model:
OnIgnite  !FGD
Fired when the entity catches fire, such as from an env_entity_igniter or the Ignite inputs.


{{O BasePropPhysics|l4d2=1|portal2=1}}

-->

will: 

BasePropPhysics:
OnMotionEnabled
Fired when motion has been enabled on the prop, either via the Health Level to Override Motion keyvalue or from the EnableMotion input.
OnAwakened
Fired when the prop has woken (force has been applied to it while it was asleep, or the Wake input has been called).
OnOutOfWorld
Fired whenever the object is detected to be outside the world. Specifically, it checks if the object is outside of the world's bounding box or if the object is traveling at over 2000 units per second in any cardinal direction.
OnPlayerUse
Fired when the player has +used the prop.
Note.pngNote:This output (but not any of the other pickup-related ones) will fire only if the Generate output on +USE spawnflag is set.
OnPhysGunDrop
Fired when the player has dropped the prop (from either +use or the gravity gun). !activator is the player.
OnPlayerPickup
Fired when the player has picked the prop up with +use or the gravity gun (in Half-Life 2).
OnPhysGunOnlyPickup
Fired when the player has picked the prop up with the gravity gun specifically.
OnHitByTank  (in all games since Left 4 Dead 2)
Fired when the prop has been punched by a Tank boss infected.Model:
OnIgnite  !FGD
Fired when the entity catches fire, such as from an env_entity_igniter or the Ignite inputs.
OnFizzled  (only in Portal 2)
Fired when this entity is fizzled by a trigger_portal_cleanser or, for prop_weighted_cube, the Dissolve or SilentDissolve inputs.
Icon-Bug.pngBug:It does not fire when the object is fizzled by other means such as env_entity_dissolver.


{{O BasePropPhysics|nofgd=1}}

-->

will: 

BasePropPhysics:
OnMotionEnabled
Fired when motion has been enabled on the prop, either via the Health Level to Override Motion keyvalue or from the EnableMotion input.
OnAwakened
Fired when the prop has woken (force has been applied to it while it was asleep, or the Wake input has been called).
OnOutOfWorld
Fired whenever the object is detected to be outside the world. Specifically, it checks if the object is outside of the world's bounding box or if the object is traveling at over 2000 units per second in any cardinal direction.
OnPlayerUse
Fired when the player has +used the prop.
Note.pngNote:This output (but not any of the other pickup-related ones) will fire only if the Generate output on +USE spawnflag is set.
OnPhysGunDrop
Fired when the player has dropped the prop (from either +use or the gravity gun). !activator is the player.
OnPlayerPickup
Fired when the player has picked the prop up with +use or the gravity gun (in Half-Life 2).
OnPhysGunOnlyPickup
Fired when the player has picked the prop up with the gravity gun specifically.Model:
OnIgnite  !FGD
Fired when the entity catches fire, such as from an env_entity_igniter or the Ignite inputs.

See also

  • {{KV BaseEntity}}
  • {{KV BaseAnimating}}
  • {{KV BasePropPhysics}}
  • {{I BaseEntity}}
  • {{I BaseAnimating}}
  • {{I BasePropPhysics}}
  • {{O BaseEntity}}
  • {{O BaseAnimating}}