Hi, i change shove penalty and cooldown (z_gun_swing_coop_max_penalty 10, z_gun_swing_coop_min_penalty 0) to make it sure less spam using shove on every weapons
But i want to make no shove penalty/cooldown on pistol(and magnum/double pistol) to make pistols can be useful if you want to shove from saving incapped survivors
Since, I'm no big coder but after checking
this script I think this code can help with removing shove penalty and cooldown.
Code:
int shovePenalty = GetEntProp(client, Prop_Send, "m_iShovePenalty");
if (shovePenalty > g_iShoveMinPenalty)
SetEntProp(client, Prop_Send, "m_iShovePenalty", g_iShoveMinPenalty);
My problem is, how do you enable this code when i using Pistol, Double Pistol and Magnum and disable when you equip something else?