Hi!
I would like to ask some help about this.
How could I equal the static damage value to cvar variable?
PHP Code:
public Action Event_OnTakeDamage(int victim, int &attacker, int &inflictor, float &damage, int &damagetype)
{
if (!attacker || attacker > MaxClients || !IsClientInGame(attacker))
{
return Plugin_Continue;
}
char sWeapon[32];
GetClientWeapon(attacker, sWeapon, sizeof(sWeapon));
if(StrContains(sWeapon, "fists", false) != -1)
{
if (g_iClientFistPhase[attacker] % 3 == 0) damage = 40.0;
else damage = 40.0;
return Plugin_Changed;
}
return Plugin_Continue;
}
Thank you for advices!
Script from
https://forums.alliedmods.net/showth...25#post2730825
Actually what I'd like to do is merge these plugins and add a cvar for change fistsdmg:
Change fists dmg
csgo_meleeweapons