Template:O BasePropPhysics: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(OnHitByTank)
(updates)
Line 1: Line 1:
{{ScrollBox|title=BasePropPhysics|noscroll=true|
{{minititle|BasePropPhysics}}
; <code>OnMotionEnabled</code>
{{IO|OnMotionEnabled|Fired when motion has been enabled on the prop, either via the '''Health Level to Override Motion''' keyvalue or from the <code>EnableMotion</code> input.}}
: Motion has been enabled on the prop, either via the "Health Level to Override Motion" keyvalue or from the <code>EnableMotion</code> input.
{{IO|OnAwakened|Fired when the prop has woken (force has been applied to it while it was asleep, or the <code>Wake</code> input has been called).}}
; <code>OnAwakened</code>
{{IO|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.}}
: The prop has woken (force has been applied to it while it was asleep, or the <code>wake</code> input has been called).
{{IO|OnPlayerUse|Fired when the player has {{ent|+use}}d the prop.
; {{EP1 add|<code>OnPhysGunOnlyPickup</code>}}
 
: Player has picked the prop up with the Gravity Gun.
{{note|This output (but not any of the other pickup-related ones) will fire only if the ''Generate output on +USE'' spawnflag is set.}}}}
; {{EP1 add|<code>OnPlayerPickup</code>}}
{{IO|OnPhysGunDrop|Fired when the player has dropped the prop (from either <code>+use</code> or the gravity gun). {{ent|!activator}} is the player.}}
: Player has picked the prop up with +USE or the Gravity Gun.
{{IO|OnPlayerPickup|Fired when the player has picked the prop up with <code>+use</code> or the gravity gun (in Half-Life 2).}}<!--
; <code>OnPhysGunDrop</code>
-->{{#ifeq:{{{nohl2}}}|1||{{IO|OnPhysGunOnlyPickup|Fired when the player has picked the prop up with the gravity gun specifically.}}}}<!--
: Player has dropped the prop (from either hands or Gravity Gun). {{PlAct}}
-->{{#ifeq:{{{l4d2}}}|1|{{IO|OnHitByTank|since=l4d2|Fired when the prop has been punched by a Tank boss infected.}}|}}
; <code>OnPlayerUse</code>
: Player has +USEd the prop. {{PlAct}} {{note|This output will fire only if the "Generate output on +USE" spawnflag is set.}}
; {{EP2 add|<code>OnOutOfWorld</code>}}
: Not in a [[Visleaf|leaf]]?
; {{EP2 add|<code>OnHealthChanged</code>}}
; {{EP2 add|<code>OnTakeDamage</code>}}
: Prop's health has changed
; {{l4d2 add|<code>OnHitByTank</code>}}
: Prop has been punched by a Tank boss infected.
{{O Targetname}}
}}

Revision as of 00:51, 12 September 2018

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.