Template:WeaponL4D: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 8: Line 8:
| {{#if: {{{l4d2only|}}}|game|series}}={{#if: {{{l4d2only|}}}|Left 4 Dead 2|Left 4 Dead}}
| {{#if: {{{l4d2only|}}}|game|series}}={{#if: {{{l4d2only|}}}|Left 4 Dead 2|Left 4 Dead}}
}} Held {{#if:{{{fancy_name|}}}|{{{fancy_name}}}|{{{weapon}}}}}. For placing {{#if:{{{fancy_name|}}}|{{{fancy_name}}}|{{{weapon}}}}} spawns in a map use [[weapon_{{{weapon}}}_spawn]] or [[weapon_spawn]].
}} Held {{#if:{{{fancy_name|}}}|{{{fancy_name}}}|{{{weapon}}}}}. For placing {{#if:{{{fancy_name|}}}|{{{fancy_name}}}|{{{weapon}}}}} spawns in a map use [[weapon_{{{weapon}}}_spawn]] or [[weapon_spawn]].
{{note|[[Triggers]] cannot detect <code>weapon_*</code> entities}}


== Keyvalues ==
== Keyvalues ==

Revision as of 03:44, 26 August 2024

Stub

This article or section is a stub. You can help by expanding it.

Icon-NotInFGD.png
This entity is not in the FGD by default.
It should not be put directly in a map.

[[File:|right|thumb|300px|{{ File: }}]]

C++ Class hierarchy
[[{{{class}}} ]]

{{:Category:CD no superclass found in Template:CD/superclassfor {{{class}}} |:}}

weapon_{{{weapon}}} is a point entity available in Left 4 Dead seriesLeft 4 Dead series Left 4 Dead series. Held {{{weapon}}}. For placing {{{weapon}}} spawns in a map use [[weapon_{{{weapon}}}_spawn]] or weapon_spawn.

Note.pngNote:Triggers cannot detect weapon_* entities

Keyvalues

Reserve ammo (Ammo) <integer>
Reserve ammo of the weapon.
Note.pngNote:This value will be multiplied by cvar terror_ammo_multiplier(default 2) and won't exceed the value of cvar {{{ammo_cvar}}}.
Skin (skin) <integer>
Selects a skin from the model's index, starting with 0.

Weapon Scipt

🖿scripts/weapon_{{{weapon}}}.txt

{{WeaponL4D/{{{weapon}}}_script}}

See Also