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

[L4D] Stop bots from healing/pill popping


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
RoyBatty
Junior Member
Join Date: Aug 2009
Old 08-20-2009 , 08:08   [L4D] Stop bots from healing/pill popping
Reply With Quote #1

In matches, it's very annoying when someone gets disconnected or crashes, and the bot immediately heals or pops pills. (even with green health). It would be GREAT if bot healing/pill popping could be disabled to prevent it. (bots can be so stupid!).
RoyBatty is offline
olj
Veteran Member
Join Date: Jun 2009
Old 08-20-2009 , 08:57   Re: [L4D] Stop bots from healing/pill popping
Reply With Quote #2

Hook event heal_begin with EventHookMode_Pre, check if the healer is a bot, check how much hp the heal target has, if target has yet enough hp (so the heal would be a waste) - block event.

Not sure if this will work though. Also this can cause bots to "constantly run near you with medkit and try to heal you" and thus spoiling their ai behaviour. But i dont see any other workaround, since i dont know if we can change hardcoded ai behaviour.
__________________
olj is offline
exvel
SourceMod Donor
Join Date: Jun 2006
Location: Russia
Old 08-20-2009 , 09:25   Re: [L4D] Stop bots from healing/pill popping
Reply With Quote #3

This won't work. Events is an only information about something that already happened.
__________________
For admins: My plugins

For developers: Colors library
exvel is offline
Send a message via ICQ to exvel
olj
Veteran Member
Join Date: Jun 2009
Old 08-20-2009 , 09:59   Re: [L4D] Stop bots from healing/pill popping
Reply With Quote #4

Quote:
Originally Posted by exvel View Post
This won't work. Events is an only information about something that already happened.
So, when we return Plugin_Handled, that means we only block event callbacks and event info sendings? And we cant block actions, damn.

OK, How about SLAPPING bots with 0 dmg then? Or perhaps block USE key for fake client?
__________________

Last edited by olj; 08-20-2009 at 10:03.
olj is offline
exvel
SourceMod Donor
Join Date: Jun 2006
Location: Russia
Old 08-20-2009 , 11:47   Re: [L4D] Stop bots from healing/pill popping
Reply With Quote #5

Quote:
Originally Posted by olj View Post
OK, How about SLAPPING bots with 0 dmg then? Or perhaps block USE key for fake client?
This is good. Also you can strip medkit from the bot.
__________________
For admins: My plugins

For developers: Colors library
exvel is offline
Send a message via ICQ to exvel
olj
Veteran Member
Join Date: Jun 2009
Old 08-20-2009 , 12:47   Re: [L4D] Stop bots from healing/pill popping
Reply With Quote #6

Quote:
Originally Posted by exvel View Post
This is good. Also you can strip medkit from the bot.
This is cruel i'll look into it when have time, if noone else will take this job.
__________________
olj is offline
Reply



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 23:37.


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