Maybe this helps,
If you find a "weapon_melee" classname you can get the melee name by this:
PHP Code:
char melee[16];
if (StrEqual(classname, "weapon_melee"))
{
GetEntPropString(entity, Prop_Data, "m_strMapSetScriptName", melee, sizeof(melee));
PrintToChatAll("melee %s", melee);
}
If is a weapon_melee_spawn then you have to check by model name.
If is a custom map you can find the names on "melee_manifest" inside the vpk aswell.
Just go to the scripts/melee/melee_manifest.txt folder.
Just some reminders, AFAIK is only possible to have around 16 different melee names by map.
__________________