Raised This Month: $ Target: $400
 0% 

[L4D2] Survivor Bot AI Improver


Post New Thread Reply   
 
Thread Tools Display Modes
KoMiKoZa
Senior Member
Join Date: Dec 2017
Location: Thy old times.
Old 09-06-2023 , 18:42   Re: [L4D2] Survivor Bot AI Improver
Reply With Quote #91

Quote:
Originally Posted by Kerouha View Post
I've compiled most recent edits. You'll need to update L4DHooks Direct to 1.135 for it to work. Plugin config file must be recreated too probably.

If you want to compile yourself: comment/remove the section of dhooks' .inc file that the complainer compiler complains about. It's fieldtype-something, and not used in this plugin.
Quote:
[SM] Unable to load plugin "l4d2_sb_ai_improver.smx": Could not find required plugin "vscript"
Am I missing something here? This is with an already compiled .smx.

I reckon FortyTwo's Vscript plugin is a prerequisite then?

Last edited by KoMiKoZa; 09-06-2023 at 18:45.
KoMiKoZa is offline
Kerouha
Member
Join Date: Jul 2015
Location: Russian Federation
Old 09-08-2023 , 12:41   Re: [L4D2] Survivor Bot AI Improver
Reply With Quote #92

Quote:
Originally Posted by KoMiKoZa View Post
...
You need to compile "vscript" and use it as plugin.
Kerouha is offline
z282846139
Member
Join Date: Aug 2018
Old 09-10-2023 , 00:15   Re: [L4D2] Survivor Bot AI Improver
Reply With Quote #93

Quote:
Originally Posted by z282846139 View Post
Report a bug, In zonemod versus game on map c1m1, when team2 are all bots without human player, the bots will press the button of elevator to call the elevator, and when the elevator arrive at this floor, bots can not gei in the elevator easily, they would get into the elevator a little, and get out to press the button of elevator again and again soon, which make the doors can not to close, sometimes the doors would close and one of them will be pushed out of the elevator, so that there are only two of four bots will stay in the upper floor, and the other two would go down to the lower floor which is burned, when the upper two will be stucked.
I've solved this problem, this problem is due to the stripper config of the Zonemod, which had added a new elevator button named "call_elevator_button", it's a kind of func_button to replace the game's vanilla button, but it was not designed with the situation of bots survivor, bots would get in and get out again and again, because they found there're two buttons nearby.

I modified the stripper config of c1m1, now the bots survivor seem to work well
c1m1_hotel.cfg
PHP Code:
{
    
"classname" "func_button"
    "origin" "2048 5706 2884.89"
    "model" "*5"
    "spawnflags" "1025"
    "targetname" "call_elevator_button"
    "glow" "call_elevator_button_prop"
    "wait" "-1"
    "sounds" "32"
    
; --- Disable glow
    
"OnPressed" "call_elevator_button_prop,StopGlowing,,0,-1"
    
; --- Button and elevator lights
    
"OnPressed" "call_elevator_button_prop,Skin,1,0,-1"
    "OnPressed" "call_elevator_button_prop,Skin,0,0.3,-1"
    "OnPressed" "call_elevator_lights,Skin,1,0.5,-1"
    
; --- Elevator moving sound
    
"OnPressed" "elevator_movement_sound,PlaySound,,2,-1"
    
; --- Survivors call out pressing the button
    
"OnPressed" "!activator,SpeakResponseConcept,c4m2_elevator_top_button,0,-1"
    
; --- Start panic event
    
"OnPressed" "director,ForcePanicEvent,,3,-1"
    
; --- Elevator opens after ~30 seconds
    
"OnPressed" "call_elevator_relay,Trigger,,34,-1"
    
; --- Remove func_button after doors are opened
    
"OnPressed" "!self,Kill,,34.5,-1"

z282846139 is offline
KoMiKoZa
Senior Member
Join Date: Dec 2017
Location: Thy old times.
Old 09-11-2023 , 13:29   Re: [L4D2] Survivor Bot AI Improver
Reply With Quote #94

Quote:
Originally Posted by Kerouha View Post
You need to compile "vscript" and use it as plugin.
Got it working, thanks. I just didn't see any mention of Vscript being the prerequisite for your version in the post (only the L4Dhooks update), I think that's something that deserves to be highlighted in the post itself (e.g. not just the GitHub description).

Last edited by KoMiKoZa; 09-11-2023 at 13:30.
KoMiKoZa is offline
liquidplasma
Junior Member
Join Date: May 2023
Old 09-15-2023 , 16:58   Re: [L4D2] Survivor Bot AI Improver
Reply With Quote #95

Quote:
Originally Posted by Kerouha View Post
I've compiled most recent edits. You'll need to update L4DHooks Direct to 1.135 for it to work. Plugin config file must be recreated too probably.

If you want to compile yourself: comment/remove the section of dhooks' .inc file that the complainer compiler complains about. It's fieldtype-something, and not used in this plugin.
Sometimes I get this, and server framerate goes to the gutter

Code:
L 09/15/2023 - 17:55:55: [SM] Exception reported: CTerrorGameRules::IsRealismMode not available (WIN/2/1.136).
L 09/15/2023 - 17:55:55: [SM] Blaming: left4dhooks.smx
L 09/15/2023 - 17:55:55: [SM] Call stack trace:
L 09/15/2023 - 17:55:55: [SM]   [0] ThrowNativeError
L 09/15/2023 - 17:55:55: [SM]   [1] Line 194, l4dd\l4dd_natives.sp::ValidateNatives
L 09/15/2023 - 17:55:55: [SM]   [2] Line 921, C:\Servers\L4D2\left4dead2\addons\sourcemod\scripting\left4dhooks.sp::Native_Internal_IsRealismMode
L 09/15/2023 - 17:55:55: [SM]   [4] L4D2_IsRealismMode
L 09/15/2023 - 17:55:55: [SM]   [5] Line 3264, D:\l4d2\left4dead2\addons\sourcemod\scripting\l4d2_sb_ai_improver.sp::GetTargetAimPart
L 09/15/2023 - 17:55:55: [SM]   [6] Line 2406, D:\l4d2\left4dead2\addons\sourcemod\scripting\l4d2_sb_ai_improver.sp::SurvivorBotThink
L 09/15/2023 - 17:55:55: [SM]   [7] Line 1733, D:\l4d2\left4dead2\addons\sourcemod\scripting\l4d2_sb_ai_improver.sp::OnPlayerRunCmd
L 09/15/2023 - 17:55:55: [SM] Exception reported: CTerrorGameRules::IsRealismMode not available (WIN/2/1.136).
liquidplasma is offline
Kerouha
Member
Join Date: Jul 2015
Location: Russian Federation
Old 09-19-2023 , 05:14   Re: [L4D2] Survivor Bot AI Improver
Reply With Quote #96

Quote:
Originally Posted by liquidplasma View Post
...
My guess is either your server or Left4DHooks needs updating

Last edited by Kerouha; 09-19-2023 at 05:14. Reason: cut quote
Kerouha is offline
liquidplasma
Junior Member
Join Date: May 2023
Old 09-22-2023 , 15:12   Re: [L4D2] Survivor Bot AI Improver
Reply With Quote #97

Quote:
Originally Posted by Kerouha View Post
My guess is either your server or Left4DHooks needs updating
They're both up to date. I ended up placing sm plugins reload l4d2_sb_ai_improver at the end of server.cfg and that seems to fix it.
liquidplasma is offline
liquidplasma
Junior Member
Join Date: May 2023
Old 10-06-2023 , 11:48   Re: [L4D2] Survivor Bot AI Improver
Reply With Quote #98

Quote:
Originally Posted by Kerouha View Post
My guess is either your server or Left4DHooks needs updating
Is it possible to make a version without required vscript plugin?
liquidplasma is offline
jamalsheref2
Senior Member
Join Date: May 2017
Old 10-26-2023 , 01:38   Re: [L4D2] Survivor Bot AI Improver
Reply With Quote #99

Can u make a l4d1 version pls
jamalsheref2 is offline
Foxy0606
Junior Member
Join Date: Feb 2022
Old 10-30-2023 , 10:51   Re: [L4D2] Survivor Bot AI Improver
Reply With Quote #100

So... is it possible to use this with Survivor Bot Fix: https://forums.alliedmods.net/showthread.php?p=2757330
This mod makes them attack every hostiles target on sight like a machine, so I've been thinking about try this mod with yours. If you could, please try to merge survivor bot fix with your mod .
Foxy0606 is offline
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 07:35.


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