Raised This Month: $51 Target: $400
 12% 

Solved [L4D2] help to get KeyValue "melee_script_name" of custom melee in 3rd party map?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
little_froy
Senior Member
Join Date: May 2021
Old 08-19-2021 , 05:33   [L4D2] help to get KeyValue "melee_script_name" of custom melee in 3rd party map?
Reply With Quote #1

how to get KeyValue "melee_script_name" of custom melee in 3rd party map ?
i need the value to create melee.
-----------------------------------------
look up floor 2

Last edited by little_froy; 08-20-2021 at 02:13.
little_froy is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 08-19-2021 , 10:01   Re: [L4D2] help to get KeyValue "melee_script_name" of custom melee in 3rd party map?
Reply With Quote #2

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(entityProp_Data"m_strMapSetScriptName"meleesizeof(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.
__________________
Marttt is offline
little_froy
Senior Member
Join Date: May 2021
Old 08-20-2021 , 00:17   Re: [L4D2] help to get KeyValue "melee_script_name" of custom melee in 3rd party map?
Reply With Quote #3

Quote:
Originally Posted by Marttt View Post
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(entityProp_Data"m_strMapSetScriptName"meleesizeof(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.

first it works.
little_froy is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:25.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode