Quote:
Originally Posted by HarryPotter
I set
PHP Code:
mkp_minhealth 5
When I have health lower than 40, but higher than 5
The 3 other bots are trying to use kit on you and keep shoving XD
Kind of funny but a little annoying.
They don't focus on zombies when holding kits.
Is there any way to stop bots from thinking to use kit?
|
It might be a bit overdue, but I've created a 'quick fix' plugin to force a bot to reholster their medkit—this may not be the right approach to code this issue, but it sure gets the job done for the anti-medkit plugin!
I recently stumbled upon this solution while testing another plugin for a different purpose. While my code could benefit from some refinement, I'm sure a more experienced coder could further enhance it. It works very well for L4D1, but I haven't tested it for L4D2. Nevertheless, I thought it was worth sharing the script here—better late than never, I suppose.
EDIT: Plugin updated - in this update remember to adjust 'mkp_minhealth' in my script (mine is set to 25HP) to suit your own values for when bots do need to heal themselves. Anything above 25HP in this script will force bots to reholster their medkit.