Template:I Breakable: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(updates)
Line 1: Line 1:
{{minititle|Breakable}}
* {{param|prop|0}} - If nonzero, shows prop related inputs. See also: {{tl2|I BreakableProp}}.
* {{param|brush|0}} - If nonzero, shows brush related inputs. See also: {{tl2|I BreakableBrush}}.
* {{param|nohl2|0}} - If nonzero, hides [[weapon_physcannon]] related inputs. Only effective with <code>prop=1</code>.
The result when setting both {{param|prop}} and {{param|brush}} to nonzero values is not supposed to be used.
 
The following is the result with no parameters.
 
 
{{ {{PAGENAME}} | prop=0 | brush=0 | nohl2=1 }}
 
<onlyinclude><includeonly><!--
-->{{minititle|Breakable{{#ifeq:{{{prop|0}}}|0||Prop}}{{#ifeq:{{{brush|0}}}|0||Brush}}}}
{{IO|Break|Breaks the breakable.}}
{{IO|Break|Breaks the breakable.}}
{{IO|SetHealth|param=integer|Sets a new value for the breakable's health. If the breakable's health reaches zero it will break.}}
{{IO|SetHealth|param=integer|Sets a new value for the breakable's health. If the breakable's health reaches zero it will break.}}
{{IO|AddHealth|param=integer|Adds health to the breakable.}}
{{IO|AddHealth|param=integer|Adds health to the breakable.}}
{{IO|RemoveHealth|param=integer|Removes health from the breakable.}}<noinclude>[[Category:Input Templates|Breakable]]</noinclude>
{{IO|RemoveHealth|param=integer|Removes health from the breakable.}}<!--
-->{{#ifeq: {{{prop|0}}}|0||
{{IO|physdamagescale|param=float|Sets '''Physics Impact Damage Scale'''. 0 means this feature is disabled for backwards compatibility.}}<!--
-->{{#ifeq: {{{nohl2}}}|1||{{IO|EnablePhyscannonPickup|Makes the breakable able to picked up by the gravity gun.}}
{{IO|DisablePhyscannonPickup|Makes the breakable not able to picked up by the gravity gun.}}
{{IO|EnablePuntSound|since=EP1|Allow this prop from playing its '''Punt Sound''' sound when punted by the gravity gun.}}
{{IO|DisablePuntSound|since=EP1|Prevent this prop from playing its '''Punt Sound''' sound when punted by the gravity gun.}}}}
}}<!--
-->{{#ifeq: {{{brush|0}}}|0||
{{IO|SetMass|param=float|Damaging the entity applies physics forces to it.}}
}}<!--
--></includeonly></onlyinclude>
 
[[Category:Input Templates|Breakable]]

Revision as of 20:06, 25 April 2022

  • {{{prop|0}}} - If nonzero, shows prop related inputs. See also: {{I BreakableProp}}.
  • {{{brush|0}}} - If nonzero, shows brush related inputs. See also: {{I BreakableBrush}}.
  • {{{nohl2|0}}} - If nonzero, hides weapon_physcannon related inputs. Only effective with prop=1.

The result when setting both {{{prop}}} and {{{brush}}} to nonzero values is not supposed to be used.

The following is the result with no parameters.


Breakable:

Break
Breaks the breakable.
SetHealth <integer>
Sets a new value for the breakable's health. If the breakable's health reaches zero it will break.
AddHealth <integer>
Adds health to the breakable.
RemoveHealth <integer>
Removes health from the breakable.