[L4D/L4D2] Heal Refuse
2 Attachment(s)
No cvars. Video: https://youtu.be/5rce73OwE_o
Updates history: 08 April 2020: Fixes. Bots will be temporary blocked to deploy medkit after player refuse Thanks to Silvers for code advices. |
Re: [L4D/L4D2] Heal Refuse
Restore previous flags, don't overwrite with something different:
PHP Code:
You're also leaking entities: PHP Code:
You should also be passing userids into timers and verifying they're correct, same with your other time: PHP Code:
Also maybe add a longer timer for bots, it's not possible to stop them otherwise. |
Re: [L4D/L4D2] Heal Refuse
Quote:
Quote:
Quote:
Quote:
Thank you for help! |
Re: [L4D/L4D2] Heal Refuse
You're welcome for the help. Good plugin this has been needed for a long time and I hope more servers adopt it!
Quote:
Bots it's possible to memory patch when you need to block for X seconds and prevent them healing others but that's more complicated and maybe slightly buggy (I tried years ago and sometimes they just stood there with medkit in hand, but now I know more could probably find a better place to patch). Another solution might be with Left4DHooks to block them healing someone (but requiring more plugins just for this is annoying, could be optional anyway if Left4DHooks was detected then enable blocking). |
Re: [L4D/L4D2] Heal Refuse
Nice idea!, regarding canceling healing, perhaps this can be helpful in not removing the player's kit
PHP Code:
|
Re: [L4D/L4D2] Heal Refuse
Quote:
|
Re: [L4D/L4D2] Heal Refuse
Quote:
|
Re: [L4D/L4D2] Heal Refuse
https://forums.alliedmods.net/showpo...41&postcount=4
SDKCall(sdkStopBeingRevievd, healer, true); Can canceling healing My English is bad |
Re: [L4D/L4D2] Heal Refuse
Quote:
UPD: sorry, I was wrong - lastinv affects only real players |
Re: [L4D/L4D2] Heal Refuse
Quote:
PHP Code:
|
All times are GMT -4. The time now is 08:29. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.