weapon_melee

From Source Entities
Jump to navigation Jump to search
Info.png

This entity is not in the stock FGD files by default.
It should not be placed (in Hammer) because The entity cannot be picked up in Csgo-small.png, and in L4d2-small.png you should use weapon_melee_spawn instead.

Code classes:

weapon_melee is a point entity present in L4d2-small.pngLeft 4 Dead 2 and Csgo-small.pngCounter-Strike: Global Offensive. It's an entity that takes data from a script file and then looks and acts like a particular melee weapon. Behavior of melee weapons is defined in Left 4 Dead 2/left4dead2/pak01_dir.vpk/scripts/melee/ for L4d2-small.png and in Counter-Strike Global Offensive/csgo/scripts/items/items_game.txt for Csgo-small.png.

Keyvalues[edit | edit source]

Script Name (melee_script_name) <string>
Name of the script file for this melee weapon without the '.txt'. See Left 4 Dead 2/left4dead2/pak01_dir.vpk/scripts/melee/. E.g. frying_pan.