Template:I BreakableProp: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Added to Input Templates category)
(Merged with Template:I Breakable.)
Line 1: Line 1:
<noinclude>Add <code>nohl2</code> to hide the hl2-specific inputs.</noinclude>{{minititle|BreakableProp}}
In fact, this template is {{tl2|I Breakable|prop{{=}}1|brush{{=}}0}}.
{{IO|physdamagescale|param=float|Sets '''Physics Impact Damage Scale'''. 0 means this feature is disabled for backwards compatibility.}}<!--
* {{param|nohl2|0}} - If nonzero, hides [[weapon_physcannon]] related inputs.
-->{{#ifeq: {{{nohl2}}}|1||{{IO|EnablePhyscannonPickup|Makes the breakable able to picked up by the gravity gun.}}
The following is the result with no parameters.
{{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.}}}}
{{ {{PAGENAME}} }}
{{I Breakable}}<noinclude>
 
<onlyinclude><includeonly>{{I Breakable|prop=1|brush=0|nohl2={{{nohl2|0}}}}}</includeonly></onlyinclude>
 
[[Category:Input Templates|BreakableProp]]
[[Category:Input Templates|BreakableProp]]
</noinclude>

Revision as of 20:10, 25 April 2022

In fact, this template is {{I Breakable|prop=1|brush=0}}.

The following is the result with no parameters.


BreakableProp:

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.
physdamagescale <float>
Sets Physics Impact Damage Scale. 0 means this feature is disabled for backwards compatibility.
EnablePhyscannonPickup
Makes the breakable able to picked up by the gravity gun.
DisablePhyscannonPickup
Makes the breakable not able to picked up by the gravity gun.
EnablePuntSound  (in all games since Half-Life 2: Episode One)
Allow this prop from playing its Punt Sound sound when punted by the gravity gun.
DisablePuntSound  (in all games since Half-Life 2: Episode One)
Prevent this prop from playing its Punt Sound sound when punted by the gravity gun.