Template:I BreakableProp: Difference between revisions

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

Latest revision as of 01:54, 2 January 2023

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.