Template:KV WeaponSpawnSingle: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Added noscroll=1 to KV BaseEntity to avoid double scrollboxes in KV WeaponSpawn)
(Part of discarding usage of {{WeaponSpawn}} - Removed weird {{{#if:}}} that looks for "show_modelKV")
Line 2: Line 2:
{{KV|Weapon Skin|integer|intn=weapon_skin|Some weapons have multiple versions of their textures, called skins. Set this to a number other than -1 to make the given weapon use that skin instead of the default.}}
{{KV|Weapon Skin|integer|intn=weapon_skin|Some weapons have multiple versions of their textures, called skins. Set this to a number other than -1 to make the given weapon use that skin instead of the default.}}
{{KV|Glow Range|float|intn=glowrange|Set a custom glow range for this spawner. 0 means use the default range.}}
{{KV|Glow Range|float|intn=glowrange|Set a custom glow range for this spawner. 0 means use the default range.}}
{{KV|Collisions|choices|intn=solid|Collision box type.}}
{{KV|Collisions|choices|intn=solid|Collision bo type.}}
:* 0 : Not Solid
:* 0 : Not Solid
:* 2 : Use Bounding Box
:* 2 : Use Bounding Box
Line 9: Line 9:
{{minititle|Model}}
{{minititle|Model}}
{{KV|Glow Backface Multiple|intn=glowbackfacemult|float|nofgd=1|If this object has a glow effect, multiply the effect by this much on the sides of the object that are facing away from the viewer.|only={{l4d2}}}}
{{KV|Glow Backface Multiple|intn=glowbackfacemult|float|nofgd=1|If this object has a glow effect, multiply the effect by this much on the sides of the object that are facing away from the viewer.|only={{l4d2}}}}
{{#if:{{{show_modelKV|}}}|{{KV|World Model|intn=model|string|The [[model]] this entity should appear as. 128-character limit.}}}}
<noinclude>
{{KV BaseEntity|l4d2=1|noscroll=1}}
}}<noinclude>
[[Category:Keyvalue Templates|WeaponSpawnSingle]]
[[Category:Keyvalue Templates|WeaponSpawnSingle]]
</noinclude>
</noinclude>

Revision as of 12:09, 1 August 2022

{{ScrollBox|title=WeaponSpawnSingle|noscroll=1|

Weapon Skin (weapon_skin) <integer>
Some weapons have multiple versions of their textures, called skins. Set this to a number other than -1 to make the given weapon use that skin instead of the default.
Glow Range (glowrange) <float>
Set a custom glow range for this spawner. 0 means use the default range.
Collisions (solid) <choices>
Collision bo type.
  • 0 : Not Solid
  • 2 : Use Bounding Box
  • 6 : Use VPhysics

Model:

Glow Backface Multiple (glowbackfacemult) <float> (only in Left 4 Dead 2) !FGD
If this object has a glow effect, multiply the effect by this much on the sides of the object that are facing away from the viewer.