[L4D2] Remove shove penalty when equip pistols?
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"); |
Re: [L4D2] Remove shove penalty when equip pistols?
Probably you will have to listen to something like OnPlayerRunCmd and reset the client prop for these weapons
Check my plugin [L4D2] Gnome and Cola Shove Damage, it has a cvar that makes the cola/gnome with an unlimited shove. PHP Code:
Otherwise people can swap weapons and use it as a "glitch" for unlimited shove with any weapon. |
Re: [L4D2] Remove shove penalty when equip pistols?
1 Attachment(s)
Quote:
Okay, i combine and edit with Martt's script and Timocop's script and i think it work okay, i guess? I feel like i get more crash and game close without error even more when i go to next chapter after i have this plugin or maybe the other plugins causing this trouble (or maybe coincidence, i really dont know) Can someone check the script if everything is okay or you can improve more and better without crashes? Code:
#include <sourcemod>______________________ EDIT: NVM, i think it was other plugins cause the issue |
Re: [L4D2] Remove shove penalty when equip pistols?
Didn't get are you having issues with the script?
Btw you never set a value for "g_iShoveMinPenalty" so it will always be "0" I usually listen and track which weapon the client is using on "WeaponSwitchPost" because on OnPlayerRunCmd fires too many times in a second. (basically every frame if the client is pressing some button) |
| All times are GMT -4. The time now is 05:22. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.