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

From Valve Developer Community
Jump to navigation Jump to search
(-description, see also)
m (Updated old entity format to {{this is a}}. This action was perfomed by a bot.)
Line 1: Line 1:
{{DISPLAYTITLE:{{Code|preset=0|style=color:white|select=all|background=transparent|weapon_melee}} (Left 4 Dead 2)}}{{stub}}
(Left 4 Dead 2)}}{{stub}}
{{ent not in fgd|nolink=1}}
{{ent not in fgd|nolink=1}}
{{CD|CTerrorMeleeWeapon}}
{{CD|CTerrorMeleeWeapon}}
{{entity|type=e0|weapon_melee|notitlechange=1|game=Left 4 Dead 2}} Held melee weapon. To spawn melee weapons in a map use [[weapon_melee_spawn]] or [[weapon_item_spawn]]
{{this is a|name=weapon_melee|e0|notitlechange=1|game=Left 4 Dead 2}} Held melee weapon. To spawn melee weapons in a map use [[weapon_melee_spawn]] or [[weapon_item_spawn]]


== Keyvalues ==
== Keyvalues ==

Revision as of 13:19, 4 January 2024

(Left 4 Dead 2)}}

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
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