Template:O Breakable: Difference between revisions
Jump to navigation
Jump to search
1416006136 (talk | contribs) No edit summary |
m (→top: Substituted IO templates) |
||
Line 10: | Line 10: | ||
<onlyinclude><includeonly> | <onlyinclude><includeonly> | ||
{{minititle|Breakable{{#ifeq:{{{prop|0}}}|0|Brush|Prop}}}}<!-- | {{minititle|Breakable{{#ifeq:{{{prop|0}}}|0|Brush|Prop}}}}<!-- | ||
-->{{ | -->{{O|OnBreak|Fired when this object breaks. {{ent|!activator}} is whatever breaks the object.}} | ||
{{ | {{O|OnHealthChanged|param=float|Fired whenever the health of the breakable has increased or decreased. {{outadd|the new health amount as a decimal percent (e.g. 45% {{=}} 0.45)}}}}<!-- | ||
-->{{#ifeq:{{{prop|0}}}|0|| | -->{{#ifeq:{{{prop|0}}}|0|| | ||
{{ | {{O|OnTakeDamage|Fired when damage is taken.}}<!-- | ||
-->{{#ifeq:{{{nohl2|0}}}|0| | -->{{#ifeq:{{{nohl2|0}}}|0| | ||
{{ | {{O|OnPhysCannonAnimatePreStarted|Fired when prop starts its <code>ACT_PHYSCANNON_ANIMATE_PRE</code> [[activity]]. Caused by the object being picked up by the gravity gun.}} | ||
{{ | {{O|OnPhysCannonAnimatePullStarted|Fired when prop has started its <code>ACT_PHYSCANNON_ANIMATE</code> activity. <code>ACT_PHYSCANNON_ANIMATE_PRE</code> plays once, then <code>ACT_PHYSCANNON_ANIMATE</code> starts looping.}} | ||
{{ | {{O|OnPhysCannonDetach|Fired when prop has started its <code>ACT_PHYSCANNON_DETACH</code> activity (caused by the gravity gun ripping it from a wall).}} | ||
{{ | {{O|OnPhysCannonAnimatePostStarted|Fired when prop has started its <code>ACT_PHYSCANNON_ANIMATE_POST</code> activity (caused by the player letting the prop go from the gravity gun).}} | ||
{{ | {{O|OnPhysCannonPullAnimFinished|Fired when prop has finished all gravity gun-related animations.}} | ||
|}} | |}} | ||
}}</includeonly></onlyinclude> | }}</includeonly></onlyinclude> | ||
[[Category:Output Templates|Breakable]] | [[Category:Output Templates|Breakable]] |
Revision as of 13:04, 21 April 2025
This template isn't in line with anything specific in code. Default shows only outputs for brushes.
prop=1
shows outputs for props as well. There's nothing brushes have that props don't have.nohl2=1
hides the hl2-specific outputs.
The following is the result with no parameters. See also: {{O BreakableProp}}, {{O BreakableBrush}}.
BreakableBrush:
- OnBreak
- Fired when this object breaks. !activator is whatever breaks the object.
- OnHealthChanged <float>
- 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.