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

[L4D2] Remove shove penalty when equip pistols?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ddd123
Senior Member
Join Date: May 2021
Old 04-16-2022 , 07:03   [L4D2] Remove shove penalty when equip pistols?
Reply With Quote #1

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?

Last edited by ddd123; 04-16-2022 at 07:40.
ddd123 is offline
 



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 19:02.


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