[L4D2] Grenade Counter
Hello everyone, I am not sure if this plugin exists or it is possible to do it, I am looking for a plugin that makes the client have a limit of throwing grenades per map, that is, each client can throw a grenade 2 or 3 times per map and restarts again at the end of this map or when losing a map.
I don't know if it exists or if it is possible to create it, I hope your help |
Re: [L4D2] Grenade Counter
Is possible, count+1 when player throws grenade.
And block action in OnPlayerRunCmd when limit reached |
Re: [L4D2] Grenade Counter
If limit reached entity will be deleted on throw. Change limit to what ever you want @ g_iLimit
Count reset on round start or if client re-joins. I only tested in insurgency. PHP Code:
|
Re: [L4D2] Grenade Counter
I believe there is no "grenade_thrown" event in L4D2
|
Re: [L4D2] Grenade Counter
Damn, looks like it.
|
Re: [L4D2] Grenade Counter
I made something before to limit the use for defibrillators, I just converted it to be for throwers.
PHP Code:
|
Re: [L4D2] Grenade Counter
I think don't aggressive behavior needed here, just make player can't switch weapon to throwable at this round, also more compatible with "pipe bomb shove" etc
|
All times are GMT -4. The time now is 14:21. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.