Template:WeaponL4D: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(-weapon_spawn note)
Line 6: Line 6:
| weapon_{{{weapon}}}
| weapon_{{{weapon}}}
| {{#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]]
}} 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]].


== Keyvalues ==
== Keyvalues ==
Line 20: Line 20:
== See Also ==
== See Also ==
* [[weapon_{{{weapon}}}_spawn]]
* [[weapon_{{{weapon}}}_spawn]]
* [[weapon_spawn]]
* [[Weapon_script]]
* [[Weapon_script]]
* [[weapon_cs_base]]
* [[weapon_cs_base]]

Revision as of 04:28, 13 August 2023

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.
C++ Class hierarchy
[[{{{class}}} ]]

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

Template:Entity Held {{{weapon}}}. For placing {{{weapon}}} spawns in a map use [[weapon_{{{weapon}}}_spawn]] or weapon_spawn.

Keyvalues

Reserve ammo (Ammo) <integer>
Reserve ammo of the weapon.
Note.pngNote:Reserve ammo will be double of this value for some reason and cannot 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