Template:I Breakable: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(Cleanup)
Line 1: Line 1:
{{ScrollBox|title=Breakable|noscroll=true|
{{ScrollBox|title=Breakable|
; <code>Break</code>
{{IO|Break|Breaks the breakable.}}
: Removes the entity from the server and creates its gibs on the client.
{{IO|SetHealth|Sets a new value for the breakable's health. If the breakable's health reaches zero it will break.|param=integer}}
; <code>SetHealth <[[int]]></code>
{{IO|AddHealth|Adds health to the breakable. If the breakable's health reaches zero it will break.|param=integer}}
: Sets the breakable's health (zero means break).
{{IO|RemoveHealth|Removes health from the breakable. If the breakable's health reaches zero it will break.|param=integer}}
; <code>AddHealth <int></code>
{{IO|EnablePhyscannonPickup|Makes the breakable able to picked up by the [[weapon_physcannon|Gravity Gun]].}}
; <code>RemoveHealth <int></code>
{{IO|DisablePhyscannonPickup|Makes the breakable not able to picked up by the [[weapon_physcannon|Gravity Gun]].}}
: Adds to/removes from the breakable's health.
{{IO|SetMass|Set mass of this object.|param=float}}
; <code>EnablePhyscannonPickup</code>
{{I Targetname}}
; <code>DisablePhyscannonPickup</code>
: Allows/prevents the [[weapon_physcannon|Gravity Gun]] to pick the breakable up.
; <code>SetMass <[[float]]></code>
: Set mass of this object (Measured in kilograms).
{{I DamageFilter}}
{{I DamageFilter}}
{{I Shadow}}
{{I Shadow}}
{{I Targetname}}
{{I Reflection}}
}}
}}<noinclude>
[[Category:Input Templates|Breakable]]
</noinclude>

Revision as of 12:18, 9 June 2011

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. If the breakable's health reaches zero it will break.
RemoveHealth <integer>
Removes health from the breakable. If the breakable's health reaches zero it will break.
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.
SetMass <float>
Set mass of this object.

DamageFilter:

SetDamageFilter <string>
Sets the entity to use as damage filter. Pass in an empty string (no parameter) to clear the damage filter.

Shadow:

DisableShadow
Turn dynamic shadows off for this entity. Identical to applying  EF_NOSHADOW.
EnableShadow
Turn dynamic shadows on for this entity.
DisableReceivingFlashlight  (in all games since Portal 2)
This object will not receive light or shadows from projected textures.
EnableReceivingFlashlight  (in all games since Portal 2)
This object may receive light or shadows from projected textures.

Reflection:

DisableDrawInFastReflection  (in all games since Portal 2)
Turns off rendering of this entity in reflections when using $reflectonlymarkedentities in water material.
EnableDrawInFastReflection  (in all games since Portal 2)
Turn on rendering of this entity in reflections when using $reflectonlymarkedentities in water material.