1 // per-campaign-level configuration file. Used to execute scripts and other commands for campaign levels
\r
2 // do NOT attempt to set cvars here! Those cvars must be set from the campaign file properly
\r
3 // this is only for scripts and other commands you wish to run for a given level
\r
5 // ----------------------------------------------------------------
\r
6 // Automated chat bot code:
\r
7 // ----------------------------------------------------------------
\r
9 // this is a chat bot system, used in campaign levels to simulate dialogues between the player and bots
\r
10 // it only makes the player automatically speak certain messages, just like manually be typing them
\r
11 // 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!"
\r
12 // that does print "My-Playername: Bot: message", but it's the best this script can do
\r
14 // chat script settings
\r
15 set chatbot_msg_count 14 "number of messages (chatbot_msg_# cvars)"
\r
16 set chatbot_msg_time 20 "each message is posted after this many seconds"
\r
17 set chatbot_tmp_counter 0 "chatbot system variable, used to cycle the messages (do not set this manualy)"
\r
19 // chat script messages
\r
20 set chatbot_msg_0 "^1Space Patroll 1: ^7Everyone! The intruder has reached the perimeter! Get to your posts!"
\r
21 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."
\r
22 set chatbot_msg_2 "^1Space Patroll 2: ^7Guard the pressure plates! Don't let the intruder get near them!"
\r
23 set chatbot_msg_3 "^2Self: ^7Damn! Those dump space guards keep pressing them back! I can't handle this alone!"
\r
24 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."
\r
25 set chatbot_msg_5 "^1Space Patroll 3: ^7Heh, I was afraid I'll run out of food after these prisoners are gone. It seems a new meal has arrived!"
\r
26 set chatbot_msg_6 "^1Space Patroll 4: ^7Why not be a nice willing meal and surrender yourself? I promise I'll make the trip to my stomach pleasant."
\r
27 set chatbot_msg_7 "^3Prisoner 1: ^7Hello? Can anyone hear me? I'm in here!"
\r
28 set chatbot_msg_8 "^1Space Patroll 2: ^7God damn! The generator is starting to overload! Guard the pressure plates!"
\r
29 set chatbot_msg_9 "^1Space Patroll 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."
\r
30 set chatbot_msg_10 "^2Self: ^7It's starting to overload, I can feel it! Not long now..."
\r
31 set chatbot_msg_11 "^1Space Patroll 5: ^7Bleah! This one kicks damn hard! I can't help regurgitating! Can't anyone friggin HOLD their prey in and finish the digestion?"
\r
32 set chatbot_msg_12 "^3Prisoner 2: ^7Heeeey! We're in here! Please get us out of here! Don't let them eat us!"
\r
33 set chatbot_msg_13 "^1Space Patroll 2: ^7The generator is reaching its limits! It's going to blow! Take cover!"
\r
35 // chat script system
\r
36 alias chatbot_count "qc_cmd rpn /chatbot_tmp_counter chatbot_tmp_counter 1 add $chatbot_msg_count mod def"
\r
37 alias chatbot_say "say ${$1}"
\r
38 alias chatbot_do "chatbot_say chatbot_msg_$chatbot_tmp_counter;chatbot_count"
\r
39 alias chatbot_loop "chatbot_do;defer $chatbot_msg_time chatbot_loop"
\r
41 // kill the chat script when the match ends
\r
42 alias cl_hook_campaign_gameend "alias chatbot_loop \"\""
\r
44 // start the chat script
\r
45 defer $chatbot_msg_time chatbot_loop
\r
47 // ----------------------------------------------------------------
\r
48 // End of automated chat bot code.
\r
49 // ----------------------------------------------------------------