Template:Hl1 kv breakable: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Added template)
 
(I guess it's supposed to work this way?)
 
(13 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{ScrollBox|title=Breakable|
{{APH}}
;Target on break <code><[[targetname|target_destination]]></code>
<includeonly><onlyinclude>See {{t|Hl1 kv breakable}} page history.</onlyinclude></includeonly>
: The [[targetname]] of entity to be targeted when this entity breaks.
; Strength <code><[[integer]]></code>
: Amount of damage to take before breaking.
; Material Type <code><choices></code>
: Material to use for sounds and gibs.
:* 0: "Glass"
:* 1: "Wood"
:* 2: "Metal"
:* 3: "Flesh"
:* 4: "Cinder Block"
:* 5: "Ceiling Tile"
:* 6: "Computer"
:* 7: "Unbreakable Glass"
:* 8: "Rocks"
; Gibs Direction <code><choices></code>
: Wether gibs should fly in a random direction or relative to the attack that broke this entity.
:* 0: "Random"
:* 1: "Relative to Attack"
; Delay before fire <code><integer></code>
: Time in seconds after breaking before targeting the "Target on break" entity.
; Gib model <code><[[studiomdl|studio]]></code>
: Model to use for gibs spawned when broken instead of default, material dependent gibs. Relative to mod folder.
; Spawn on break <code><choices></code>
: Item to spawn when broken.
:* 0: "Nothing"
:* 1: "[[item_battery_(GoldSource_Engine)|Battery]]"
:* 2: "[[item_healthkit_(GoldSource_Engine)|Healthkit]]"
:* 3: "[[weapon_9mmhandgun_(GoldSource_Engine)|9mm Handgun]]"
:* 4: "[[ammo_9mmclip_(GoldSource_Engine)|9mm Clip]]"
:* 5: "[[weapon_9mmAR_(GoldSource_Engine)|Machine Gun]]"
:* 6: "[[ammo_9mmAR_(GoldSource_Engine)|Machine Gun Clip]]"
:* 7: "[[ammo_ARgrenades_(GoldSource_Engine)|Machine Gun Grenades]]"
:* 8: "[[weapon_shotgun_(GoldSource_Engine)|Shotgun]]"
:* 9: "[[ammo_buckshot_(GoldSource_Engine)|Shotgun Shells]]"
:* 10: "[[weapon_crossbow_(GoldSource_Engine)|Crossbow]]"
:* 11: "[[ammo_crossbow_(GoldSource_Engine)|Crossbow Bolts]]"
:* 12: "[[weapon_357_(GoldSource_Engine)|357]]"
:* 13: "[[ammo_357_(GoldSource_Engine)|357 clip]]"
:* 14: "[[weapon_rpg_(GoldSource_Engine)|RPG]]"
:* 15: "[[ammo_rpgclip_(GoldSource_Engine)|RPG Clip]]"
:* 16: "[[ammo_gaussclip_(GoldSource_Engine)|Gauss clip]]"
:* 17: "[[weapon_handgrenade_(GoldSource_Engine)|Hand grenade]]"
:* 18: "[[weapon_tripmine_(GoldSource_Engine)|Tripmine]]"
:* 19: "[[weapon_satchel_(GoldSource_Engine)|Satchel Charge]]"
:* 20: "[[weapon_snark_(GoldSource_Engine)|Snark]]"
:* 21: "[[weapon_hornetgun_(GoldSource_Engine)|Hornet Gun]]"
; Explode Magnitude <nowiki>(0=none)</nowiki> <code><integer></code>
: Magnitude of explosion when broken. Will not explode if 0.}}
<noinclude>
[[Category:Keyvalue Templates]]
</noinclude>

Latest revision as of 17:59, 13 May 2025

Note.pngNote:Archived page history
Icon-Important.pngImportant:These pages are linked often from page history logs so Special:WhatLinksHere will not show anything.