Template:WeaponL4D: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
 Note:Triggers cannot detect
Note:Triggers cannot detect 
		
	
|  (-) | No edit summary | ||
| (16 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| {{ent not in fgd|nolink=1}} | {{ent not in fgd|nolink=1}} | ||
| {{WeaponL4D/image}} | |||
| {{CD|{{{class}}}}} | {{CD|{{{class}}}}} | ||
| {{entity| | {{this is a|model entity|name=weapon_{{{weapon}}} | ||
| | {{#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]]. | |||
| {{note|[[Triggers]] cannot detect <code>weapon_*</code> entities}} | |||
| == Keyvalues == | == Keyvalues == | ||
| {{KV|Reserve ammo|intn=Ammo|int|Reserve ammo of the weapon. }} | {{KV|Reserve ammo|intn=Ammo|int|Reserve ammo of the weapon. }} | ||
| :{{note| | :{{note|This value will be multiplied by cvar <code>terror_ammo_multiplier</code>(default 2) and won't exceed the value of cvar <code>{{{ammo_cvar}}}</code>. }} | ||
| {{KV|Skin|intn=skin|int|Selects a skin from the model's index, starting with 0.}} | {{KV|Skin|intn=skin|int|Selects a skin from the model's index, starting with 0.}} | ||
| == Weapon Scipt ==   | == Weapon Scipt ==   | ||
| {{expand|title=scripts/weapon_{{{weapon}}}.txt| | {{expand|title={{path|scripts/weapon_{{{weapon}}}.txt}}| | ||
| {{WeaponL4D/{{{weapon}}}_script}} | {{WeaponL4D/{{{weapon}}}_script}} | ||
| }} | }} | ||
| == See Also == | == See Also == | ||
| *  | * {{ent|weapon_{{{weapon}}}_spawn}} | ||
| * {{ent|weapon_spawn}} | |||
| * {{ent|weapon_cs_base}} | |||
| * [[Weapon_script]] | * [[Weapon_script]] | ||
Latest revision as of 04:46, 19 May 2025
[[File:|right|thumb|300px|{{ File: }}]]
|  Class hierarchy | 
|---|
| [[{{{class}}} ]] {{:Category:CD no superclass found in Template:CD/superclassfor {{{class}}} |:}} | 
weapon_{{{weapon}}}  is a   model entity  available in 
 Left 4 Dead series. Held {{{weapon}}}. For placing {{{weapon}}} spawns in a map use [[weapon_{{{weapon}}}_spawn]] or weapon_spawn.
 Left 4 Dead series. Held {{{weapon}}}. For placing {{{weapon}}} spawns in a map use [[weapon_{{{weapon}}}_spawn]] or weapon_spawn.
 Note:Triggers cannot detect
Note:Triggers cannot detect weapon_* entitiesKeyvalues
- Reserve ammo (Ammo) <integer>
- Reserve ammo of the weapon.
 Note:This value will be multiplied by cvar Note: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
| {{WeaponL4D/{{{weapon}}}_script}} | 
See Also
- [[Weapon_{{{weapon}}}_spawn|weapon_{{{weapon}}}_spawn]]
- weapon_spawn
- weapon_cs_base
- Weapon_script

