Template:O DynamicProp: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 1: Line 1:
{{ScrollBox|noscroll=true|
{{ScrollBox|title=prop_dynamic_base|
; <code>OnAnimationBegun</code>
; <code>OnAnimationBegun</code>
; <code>OnAnimationDone</code>
; <code>OnAnimationDone</code>
Line 5: Line 5:
{{O Studiomodel}}
{{O Studiomodel}}
{{O BreakableProp}}
{{O BreakableProp}}
}}
}}<noinclude>
[[Category:Output Templates|prop_dynamic_base]]
</noinclude>

Revision as of 15:44, 28 July 2011

prop_dynamic_base:
OnAnimationBegun
OnAnimationDone
Fired whenever an animation starts/finishes playing.
Studiomodel:
OnIgnite
Fired when this object catches fire.

BreakableProp:

OnBreak
!activator = entity that breaks the object
!caller = this entity
Fired when this object breaks.
OnHealthChanged <float>
!activator = entity that caused the health change
!caller = this entity
Fired whenever the health of the breakable has increased or decreased. This output automatically puts the new health amount as a decimal percent (e.g. 45% = 0.45) into the parameter box for inputs, if the mapper does not override the parameter with something else.
OnTakeDamage
!activator = entity that caused the damage
!caller = this entity
Fired when damage is taken.
OnPhysCannonAnimatePreStarted
!activator = none
!caller = this entity
Fired when prop starts its ACT_PHYSCANNON_ANIMATE_PRE activity. Caused by the object being picked up by the gravity gun.
OnPhysCannonAnimatePullStarted
!activator = none
!caller = this entity
Fired when prop has started its ACT_PHYSCANNON_ANIMATE activity. ACT_PHYSCANNON_ANIMATE_PRE plays once, then ACT_PHYSCANNON_ANIMATE starts looping.
OnPhysCannonDetach
!activator = none
!caller = this entity
Fired when prop has started its ACT_PHYSCANNON_DETACH activity (caused by the gravity gun ripping it from a wall).
OnPhysCannonAnimatePostStarted
!activator = none
!caller = this entity
Fired when prop has started its ACT_PHYSCANNON_ANIMATE_POST activity (caused by the player letting the prop go from the gravity gun).
OnPhysCannonPullAnimFinished
!activator = none
!caller = this entity
Fired when prop has finished all gravity gun-related animations.