Raised This Month: $85 Target: $400
 21% 

[L4D2] Defib using Bots (Updated 09-25-2020)


Post New Thread Reply   
 
Thread Tools Display Modes
KillerBudgie
Junior Member
Join Date: Apr 2015
Location: United Kingdom
Old 04-18-2015 , 12:39   Re: [L4D2] Defib using Bots (Updated 04-17-2015)
Reply With Quote #11

This is one good plugin. But I think I may have found a bug with it. When the bot's health is down, they pull out their medkits but they just stand there and not use them.
KillerBudgie is offline
DeathChaos25
Senior Member
Join Date: Jan 2014
Location: Puerto Rico
Old 04-18-2015 , 12:56   Re: [L4D2] Defib using Bots (Updated 04-17-2015)
Reply With Quote #12

Hmm, that's weird, I have no issue whatsoever with the bots, they heal themselves and other people normally.

I'll add a really strict check for defibs then, I was only checking to see if the current active slot was the medkit/defib slot, but didnt actually check weapons, I'll add a really strict check in here then, should probably stop this bug then.
Attached Files
File Type: sp Get Plugin or Get Source ([L4D2] Defib using bots.sp - 399 views - 12.6 KB)
__________________

Last edited by DeathChaos25; 05-01-2015 at 12:49.
DeathChaos25 is offline
DeathChaos25
Senior Member
Join Date: Jan 2014
Location: Puerto Rico
Old 04-18-2015 , 13:33   Re: [L4D2] Defib using Bots (Updated 04-18-2015)
Reply With Quote #13

Alright, updated the plugin and this should no longer happen under any circumstances, added some very heavy and restrictive checks to the new AI so that it does not interfere in the normal bot AI if defibs are not involved.

Also added 2 new admin commands!

Admin Commands (Added in Version 1.3, Root access required) :
sm_regroup - Orders all survivor bots to regroup and move to where the person who issued this command is located
sm_resetbots - Resets all bots and interrupts their current action.

Note that these 2 commands also have the same limitations put into place as the defib usage on bots
__________________
DeathChaos25 is offline
KillerBudgie
Junior Member
Join Date: Apr 2015
Location: United Kingdom
Old 04-18-2015 , 14:13   Re: [L4D2] Defib using Bots (Updated 04-18-2015)
Reply With Quote #14

It's nice to see some people making the Survivor Bot AI more useful and less stupid.
KillerBudgie is offline
Marcus101RR
Veteran Member
Join Date: Aug 2009
Location: Tampa, FL
Old 04-18-2015 , 15:15   Re: [L4D2] Defib using Bots (Updated 04-18-2015)
Reply With Quote #15

Quote:
Originally Posted by KillerBudgie View Post
It's nice to see some people making the Survivor Bot AI more useful and less stupid.
I know right, never thought sourcemod can take use of the CommandABot feature after EMS. Only wish this was for L4D1.
__________________
Marcus101RR is offline
Send a message via AIM to Marcus101RR Send a message via Skype™ to Marcus101RR
Krufftys Killers
Senior Member
Join Date: Jan 2014
Old 04-19-2015 , 10:43   Re: [L4D2] Defib using Bots (Updated 04-18-2015)
Reply With Quote #16

L 04/19/2015 - 01:41:58: SourceMod error session started
L 04/19/2015 - 01:41:58: Info (map "dw_underground") (file "errors_20150419.log")
L 04/19/2015 - 01:41:58: [SM] Native "IsFakeClient" reported: Client index 0 is invalid
L 04/19/2015 - 01:41:58: [SM] Displaying call stack trace for plugin "[L4D2] Defib using bots.smx":
L 04/19/2015 - 01:41:58: [SM] [0] Line 293, /home/forums/content/files/2/4/4/9/4/4/144338.attach::ResetBotAI()
L 04/19/2015 - 01:42:00: [SM] Native "IsFakeClient" reported: Client index 0 is invalid
L 04/19/2015 - 01:42:00: [SM] Displaying call stack trace for plugin "[L4D2] Defib using bots.smx":
L 04/19/2015 - 01:42:00: [SM] [0] Line 293, /home/forums/content/files/2/4/4/9/4/4/144338.attach::ResetBotAI()
L 04/19/2015 - 02:20:57: Error log file session closed.
Krufftys Killers is offline
DeathChaos25
Senior Member
Join Date: Jan 2014
Location: Puerto Rico
Old 04-19-2015 , 11:31   Re: [L4D2] Defib using Bots (Updated 04-18-2015)
Reply With Quote #17

Alright, updated the plugin, that invalid client array index error was literally impossible to replicate, but I know what cause it and it should be fixed now.

Also added 2 more admin commands!

Admin Commands (Added in Version 1.4, Root access required) :
sm_attack - Orders all survivor bots to attack the Special Infected you are currently aiming at
sm_retreat - Orders all survivor bots to retreat for the Special Infected you are currently aiming at

Note that these 2 commands also have the same limitations put into place as the defib usage on bots


Hopefully this is it as far as updates for the plugin goes, it's pretty much complete now and does what It is supposed to.
__________________
DeathChaos25 is offline
Krufftys Killers
Senior Member
Join Date: Jan 2014
Old 04-19-2015 , 17:59   Re: [L4D2] Defib using Bots (Updated 04-19-2015)
Reply With Quote #18

L 04/19/2015 - 14:26:45: SourceMod error session started
L 04/19/2015 - 14:26:45: Info (map "unsdwn_mp_1") (file "errors_20150419.log")
L 04/19/2015 - 14:26:45: [SM] Native "GetEntPropString" reported: Entity -1 (-1) is invalid
L 04/19/2015 - 14:26:45: [SM] Displaying call stack trace for plugin "[L4D2] Defib using bots.smx":
L 04/19/2015 - 14:26:45: [SM] [0] Line 734, /groups/sourcemod/compiler-1.7/include/entity.inc::GetEntityClassname()
L 04/19/2015 - 14:26:45: [SM] [1] Line 296, /home/forums/content/files/2/4/4/9/4/4/144378.attach::OnPlayerRunCmd()
L 04/19/2015 - 14:45:21: Error log file session closed.
Krufftys Killers is offline
DeathChaos25
Senior Member
Join Date: Jan 2014
Location: Puerto Rico
Old 04-19-2015 , 18:51   Re: [L4D2] Defib using Bots (Updated 04-19-2015)
Reply With Quote #19

Fixed, re-download from main post
__________________
DeathChaos25 is offline
Marcus101RR
Veteran Member
Join Date: Aug 2009
Location: Tampa, FL
Old 04-20-2015 , 01:07   Re: [L4D2] Defib using Bots (Updated 04-19-2015)
Reply With Quote #20

Would you not be able to command a bot to pick up items as well with this script? I would also like to see this with the upgrade boxes?
__________________

Last edited by Marcus101RR; 04-20-2015 at 01:08.
Marcus101RR is offline
Send a message via AIM to Marcus101RR Send a message via Skype™ to Marcus101RR
Reply


Thread Tools
Display Modes

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 16:33.


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