View Single Post
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