// 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 24 "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 "^6Voice in your mind: ^7Alright. I'm sensing the rebelled guards here have been taken care of, so you'll only be facing dark guards for now." set chatbot_msg_1 "^2Self: ^7That's good news. So what must we do next? How do we get to the Vore Princess?" set chatbot_msg_2 "^6Voice in your mind: ^7You have to escape from this yard, and make it to the valley of Arahia. From there you must travel to a nearby forest, from which you'll be able to infiltrate the castle." set chatbot_msg_3 "^6Voice in your mind: ^7I'm sensing the yard doors are powered by some generators. You must establish a link to your enemy's generator and destroy it." set chatbot_msg_4 "^3Mystic: ^7Yes. I seen this sort of system before, they call it onslaught. You must activate control points, and establish a link to the other generator so you can attack it." set chatbot_msg_5 "^3Snack: ^7Yeah. The grabber's melee attack is the best way to hit these things. I think they can damage both enemy control points and generators. If you get close to them that is." set chatbot_msg_6 "^3Silver: ^7That's correct Snack. The grabber's alt fire can damage generators and control points. As well as turrets. There are a few of them here so stay sharp." set chatbot_msg_7 "^6Voice in your mind: ^7Yes, watch out for the turrets. They are automated weapons that will shoot you if you get close. Thankfully your side of the yard has turrets that will defend you." set chatbot_msg_8 "^3Silver: ^7Turrets located near control points will defend the owner of that control point. So if we capture a point, its turrets will shoot the dark guards instead." set chatbot_msg_9 "^3Silver: ^7Anyway, let's stick to the strategy. Some of us must attack uncaptured control points and the generator, while others defend our own points from the enemy." set chatbot_msg_10 "^3Silver: ^7A good strategy to follow: Hide behind walls while turrets are shooting you, and run while they're recharging and can't fire." set chatbot_msg_11 "^2Self: ^7Thanks for the advice Silver, that's certainly good to know. Those turrets are pretty annoying... when they aren't in our paws." set chatbot_msg_12 "^1Dark guard 4: ^7We can hear you food! Don't think you'll leave this facility before getting digested!" set chatbot_msg_13 "^2Self: ^7I heard that line so many times now. Come on guys, let's finish them off!" set chatbot_msg_14 "^1Dark guard 1: ^7If they get to the generator we're screwed. And like it wasn't enough, we'll also have rebelled guards to deal with soon! Just kill the intruders already!" set chatbot_msg_15 "^3Mystic: ^7We have two control points in our side of the yard. Let's do our best to defend them as well as we can!" set chatbot_msg_16 "^1Dark guard 3: ^7You want to travel all the way to the Vore Princess's castle? Think you can make it that far? You must be crazy... you have no idea who you are up against." set chatbot_msg_17 "^1Dark guard 2: ^7Fools! Even if you get to the castle alive, there's no way you can defeat the Vore Princess! She's one of formidable power! You're lucky if you'll see her face before you see her stomach." set chatbot_msg_18 "^3Mystic: ^7Don't let them discourage you! The Vore Princess is powerful, but together, we will destroy her! Be it through digestion or any other way!" set chatbot_msg_19 "^1Dark guard 4: ^7You don't understand any of this, do you? You have no idea what you're about to be facing..." set chatbot_msg_20 "^2Self: ^7We know more than you think we do, dark guards! Your princess is evil, and her evil plans will be stopped immediately!" set chatbot_msg_21 "^1Dark guard 4: ^7Ignorant fools! You don't know anything yet! Unfortunately we don't have time to explain you, but we do have time to digest another meal." set chatbot_msg_22 "^1Dark guard 1: ^7Hey everyone! There are rebelled guards headed this way! Let's finish these prisoners off before they get here!" set chatbot_msg_23 "^3Mystic: ^7We can't waste any time and wait for the rebelled guards to get here. We'll be caught in the middle of the riot. Let's take these generators down now!" // 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. // ----------------------------------------------------------------