Weapon melee (Left 4 Dead 2): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Minor fix)
m (→‎See also: Unicodifying, replaced: See Also → See also)
Line 7: Line 7:
:{{important|Will spawn the melee properly only if the melee is specified in the current map's [[L4D2_Mission_Files|mission file]].}}
:{{important|Will spawn the melee properly only if the melee is specified in the current map's [[L4D2_Mission_Files|mission file]].}}


== See Also ==
== See also ==
* [[weapon_melee_spawn]]
* [[weapon_melee_spawn]]
* [[weapon_item_spawn]]
* [[weapon_item_spawn]]
* [[Weapon script]]
* [[Weapon script]]
* [[weapon_cs_base]]
* [[weapon_cs_base]]

Revision as of 02:17, 9 January 2024

Icon-NotInFGD.png
This entity is not in the FGD by default.
It should not be put directly in a map.
C++ Class hierarchy
CTerrorMeleeWeapon
CTerrorWeapon
CWeaponCSBase
CBaseCombatWeapon
CBaseAnimating
CBaseEntity

weapon_melee is an e0 available in Left 4 Dead 2 Left 4 Dead 2. Held melee weapon. To spawn melee weapons in a map use weapon_melee_spawn or weapon_item_spawn

Keyvalues

Melee script name (melee_script_name) <string>
Name of a melee script (without file extension). Scripts are defined in scripts/melee/
Icon-Important.pngImportant:Will spawn the melee properly only if the melee is specified in the current map's mission file.

See also