]> de.git.xonotic.org Git - voretournament/voretournament.git/blob - data/maps/campaign_voretournament_2.cfg
Enable HDR iris adaptation by default. Causes the view to get brighter when the playe...
[voretournament/voretournament.git] / data / maps / campaign_voretournament_2.cfg
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
4 \r
5 // ----------------------------------------------------------------\r
6 // Automated chat bot code:\r
7 // ----------------------------------------------------------------\r
8 \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
13 \r
14 // chat script settings\r
15 set chatbot_msg_count 12 "number of messages (chatbot_msg_# cvars)"\r
16 set chatbot_msg_time 15 "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
18 \r
19 // chat script messages\r
20 set chatbot_msg_0 "^1Guard 1: ^7Hey! What are you doing here? Get back in your cell, now!"\r
21 set chatbot_msg_1 "^1Guard 2: ^7Quickly, take the other flag! Don't let the prisoner reach it first!"\r
22 set chatbot_msg_2 "^2Self: ^7Why? What do these flags do? And what is this place, what am I held here for?"\r
23 set chatbot_msg_3 "^6Voice in your mind: ^7Don't listen to them. Bring the two flags together! It's the only way we can do this."\r
24 set chatbot_msg_4 "^1Guard 1: ^7I have nothing to say to a prisoner! Just get back in your cell downstairs and no one will get hurt!"\r
25 set chatbot_msg_5 "^1Guard 2: ^7We will not let you ruin the Princess's plans! Stay away from those flags, or you will suffer great punishment!"\r
26 set chatbot_msg_6 "^2Self: ^7What plans? Who is this Princess you speak of?"\r
27 set chatbot_msg_7 "^6Voice in your mind: ^7The Vore Princess must be stopped. You are the only one who can do it. But without the power... you have no chance."\r
28 set chatbot_msg_8 "^1Guard 1: ^7This has gone far enough! Get ready to die prisoner!"\r
29 set chatbot_msg_9 "^1Guard 2: ^7She's got the flag! Do not let the prisoner touch it again you moron!"\r
30 set chatbot_msg_10 "^2Self: ^7I can sense something happening, but I'm not sure what. Those flags... are unleashing something."\r
31 set chatbot_msg_11 "^6Voice in your mind: ^7Yes. But I can't tell you what it is yet. In just a few moments, you will see."\r
32 \r
33 // chat script system\r
34 alias chatbot_count "qc_cmd rpn /chatbot_tmp_counter chatbot_tmp_counter 1 add $chatbot_msg_count mod def"\r
35 alias chatbot_say "say ${$1}"\r
36 alias chatbot_do "chatbot_say chatbot_msg_$chatbot_tmp_counter;chatbot_count"\r
37 alias chatbot_loop "chatbot_do;defer $chatbot_msg_time chatbot_loop"\r
38 \r
39 // kill the chat script when the match ends\r
40 alias cl_hook_campaign_gameend "alias chatbot_loop \"\""\r
41 \r
42 // start the chat script\r
43 defer $chatbot_msg_time chatbot_loop\r
44 \r
45 // ----------------------------------------------------------------\r
46 // End of automated chat bot code.\r
47 // ----------------------------------------------------------------