View Single Post
Author Message
Sunen
Member
Join Date: Jul 2020
Old 09-28-2020 , 03:46   how to speed up knife attack speed?
Reply With Quote #1

[L4D2]
Code:
GetClientWeapon(client, name, sizeof(name));
if (StrEqual(name, "weapon_knife"))//default"weapon_melee"
{
    AdjustWeaponSpeed(client, GetConVarFloat(WeaponSpeedAmount), 1);
}
Why this code is invalid?When i change "weapon_knife" to "weapon_melee",this is valid for all melee weapons。
Does "weapon_knife" exist?

Last edited by Sunen; 09-28-2020 at 07:36.
Sunen is offline