// per-campaign-level configuration file. Used to execute scripts and other commands for campaign levels // do NOT attempt to set cvars here! Those cvars must be set from the campaign file properly // this is only for scripts and other commands you wish to run for a given level // ---------------------------------------------------------------- // Automated chat bot code: // ---------------------------------------------------------------- // this is a chat bot system, used in campaign levels to simulate dialogues between the player and bots // it only makes the player automatically speak certain messages, just like manually be typing them // eg. In a campaign level where you try to advance to the next area, you can make the script say "Bot: I will not let you pass!" // that does print "My-Playername: Bot: message", but it's the best this script can do // chat script settings set chatbot_msg_count 14 "number of messages (chatbot_msg_# cvars)" set chatbot_msg_time 20 "each message is posted after this many seconds" set chatbot_tmp_counter 0 "chatbot system variable, used to cycle the messages (do not set this manualy)" // chat script messages set chatbot_msg_0 "^1Space patrol 1: ^7Everyone! The intruder has reached the perimeter! Get to your posts!" set chatbot_msg_1 "^6Voice in your mind: ^7Keep the pressure plates pressed for long enough to overload the generator. This is the first step toward releasing the prisoners." set chatbot_msg_2 "^1Space patrol 2: ^7Guard the pressure plates! Don't let the intruder get near them!" set chatbot_msg_3 "^2Self: ^7Damn! Those dump space guards keep pressing them back. I can't handle this alone!" set chatbot_msg_4 "^6Voice in your mind: ^7I'm sensing an additional pressure plate on the roof. Perhaps you can use your grabber to get there and press that one too." set chatbot_msg_5 "^1Space patrol 3: ^7Heh, I was afraid I'll run out of food after those prisoners are gone. It seems a new meal has arrived!" set chatbot_msg_6 "^1Space patrol 4: ^7Why not be a nice willing meal and surrender yourself? I promise I'll make the trip to my stomach pleasant." set chatbot_msg_7 "^3Prisoner 1: ^7Hello? Can anyone hear me? I'm in here!" set chatbot_msg_8 "^1Space patrol 2: ^7God damn! The generator is starting to overload! Guard the pressure plates!" set chatbot_msg_9 "^1Space patrol 3: ^7Come on you. Get in my stomach, nice and easy. Either that or we're gonna throw you in space! And believe me, serving as food is a much better option, even for you." set chatbot_msg_10 "^2Self: ^7It's starting to overload, I can feel it! Not long now..." set chatbot_msg_11 "^1Space patrol 5: ^7Bleah! This one kicks damn hard, I can't help regurgitating. Can't anyone friggin HOLD their prey inside and finish digestion?" set chatbot_msg_12 "^3Prisoner 2: ^7Heeeey! We're in here! Please get us out of here, don't let them eat us!" set chatbot_msg_13 "^1Space patrol 2: ^7The generator is reaching its limits! It's going to blow! Take cover!" // chat script system alias chatbot_count "qc_cmd rpn /chatbot_tmp_counter chatbot_tmp_counter 1 add $chatbot_msg_count mod def" alias chatbot_say "say ${$1}" alias chatbot_do "chatbot_say chatbot_msg_$chatbot_tmp_counter;chatbot_count" alias chatbot_loop "chatbot_do;defer $chatbot_msg_time chatbot_loop" // kill the chat script when the match ends alias cl_hook_campaign_gameend "alias chatbot_loop \"\"" // start the chat script defer $chatbot_msg_time chatbot_loop // ---------------------------------------------------------------- // End of automated chat bot code. // ----------------------------------------------------------------