centerprint(self, "Welcome!\n\n├╘╞ ┬∩⌠ ▒«▓\n\nBased on ThreeWave CTF 3.5\n\nINVASION!");
}
// CTFBOT DTF [[[
else if (teamplay & TEAM_DAMAGE_THE_FLAG)
{
if (self.team == TEAM_COLOR1 + 1)
centerprint(self, "Welcome!\n\n─┴═┴╟┼ ╘╚┼ ╞╠┴╟ ░«▒\n\nBased on ThreeWave CTF 3.5\n\nYou are ╥┼─ team\n\nShoot the enemy flag to win\nTouch your flag to increase its health"); //red
else
centerprint(self, "Welcome!\n\n─┴═┴╟┼ ╘╚┼ ╞╠┴╟ ░«▒\n\nBased on Threewave CTF 3.5\n\nYou are ┬╠╒┼ team\n\nShoot the enemy flag to win\nTouch your flag to increase its health"); //blue
}
// CTFBOT DTF ]]]
else
{
if (self.team == TEAM_COLOR1 + 1)
centerprint(self, "Welcome!\n\n├╘╞ ┬∩⌠ ▒«▓\n\nBased on ThreeWave CTF 3.5\n\n├┴╨╘╒╥┼ ╘╚┼ ╞╠┴╟!\n\nYou are ╥┼─ team"); //red
else
centerprint(self, "Welcome!\n\n├╘╞ ┬∩⌠ ▒«▓\n\nBased on Threewave CTF 3.5\n\n├┴╨╘╒╥┼ ╘╚┼ ╞╠┴╟!\n\nYou are ┬╠╒┼ team"); //blue
}
}
else if (teamplay)
centerprint(self, "Welcome!\n\n├╘╞ ┬∩⌠ ▒«▓\n\nBased on Threewave CTF 3.5\n\nTEAMPLAY IS ACTIVE");
else
centerprint(self, "Welcome!\n\n├╘╞ ┬∩⌠ ▒«▓\n\nBased on ThreeWave Server Mods 3.5");
sprint(self, "You are playing\nCUSTOM ├┴╨╘╒╥┼ ╘╚┼ ╞╠┴╟ with ├╘╞ ┬∩⌠!\n"); // CAPTURE THE FLAG with CTF Bot
else
sprint(self, "You are playing\n├┴╨╘╒╥┼ ╘╚┼ ╞╠┴╟ with ├╘╞ ┬∩⌠!\n"); // CAPTURE THE FLAG with CTF Bot
sprint(self, " ThreeWave CTF │«╡ à CTF Bot ▒«▓\n impulse 199 for help\n");
}
else
{
sprint(self, " CTF Bot ▒«▓\n impulse 199 for help\n");
}
}
self.motd_time = 0;
};
// CTFBOT ]]]
void() MOTD_ChooseTeam =
{
if (!(teamplay & TEAM_CAPTURE_FLAG))
return;
//self.motd_time = time + 1; // CTFBOT removed
// CTFBOT DTF [[[
if (teamplay & TEAM_DAMAGE_THE_FLAG)
centerprint(self, "Welcome!\n\n─┴═┴╟┼ ╘╚┼ ╞╠┴╟ ░«▒\n\nBased on ThreeWave CTF 3.5\n\nYou are an observer.\n\nPress ▒ to join ╥┼─ team\nPress ▓ to join ┬╠╒┼ team\nPress Jump for automatic team");
else
// CTFBOT DTF ]]]
centerprint(self, "Welcome!\n\n├╘╞ ┬∩⌠ ▒«▓\n\nBased on ThreeWave CTF 3.5\n\n├┴╨╘╒╥┼ ╘╚┼ ╞╠┴╟!\n\nYou are an observer.\n\nPress ▒ to join ╥┼─ team\nPress ▓ to join ┬╠╒┼ team\nPress Jump for automatic team");
};
// ZOID: with several effects doing the dimlight thing, they just can't
// turn it off. Do not set self.effects with EF_DIMLIGHT directly. This
// will automatically do it when CheckPowerups is called
if (cvar("samelevel")) // if samelevel is set, stay on same level
changelevel (mapname);
else
changelevel (nextmap);
};
void() ExitIntermission =
{
// skip any text in deathmatch
if (deathmatch)
{
GotoNextMap ();
return;
}
intermission_exittime = time + 1;
intermission_running = intermission_running + 1;
//
// run some text if at the end of an episode
//
if (intermission_running == 2)
{
if (world.model == "maps/e1m7.bsp")
{
WriteByte (MSG_ALL, SVC_CDTRACK);
WriteByte (MSG_ALL, 2);
WriteByte (MSG_ALL, 3);
if (!cvar("registered"))
{
WriteByte (MSG_ALL, SVC_FINALE);
WriteString (MSG_ALL, "As the corpse of the monstrous entity\nChthon sinks back into the lava whence\nit rose, you grip the Rune of Earth\nMagic tightly. Now that you have\nconquered the Dimension of the Doomed,\nrealm of Earth Magic, you are ready to\ncomplete your task in the other three\nhaunted lands of Quake. Or are you? If\nyou don't register Quake, you'll never\nknow what awaits you in the Realm of\nBlack Magic, the Netherworld, and the\nElder World!");
}
else
{
WriteByte (MSG_ALL, SVC_FINALE);
WriteString (MSG_ALL, "As the corpse of the monstrous entity\nChthon sinks back into the lava whence\nit rose, you grip the Rune of Earth\nMagic tightly. Now that you have\nconquered the Dimension of the Doomed,\nrealm of Earth Magic, you are ready to\ncomplete your task. A Rune of magic\npower lies at the end of each haunted\nland of Quake. Go forth, seek the\ntotality of the four Runes!");
}
return;
}
else if (world.model == "maps/e2m6.bsp")
{
WriteByte (MSG_ALL, SVC_CDTRACK);
WriteByte (MSG_ALL, 2);
WriteByte (MSG_ALL, 3);
WriteByte (MSG_ALL, SVC_FINALE);
WriteString (MSG_ALL, "The Rune of Black Magic throbs evilly in\nyour hand and whispers dark thoughts\ninto your brain. You learn the inmost\nlore of the Hell-Mother; Shub-Niggurath!\nYou now know that she is behind all the\nterrible plotting which has led to so\nmuch death and horror. But she is not\ninviolate! Armed with this Rune, you\nrealize that once all four Runes are\ncombined, the gate to Shub-Niggurath's\nPit will open, and you can face the\nWitch-Goddess herself in her frightful\notherworld cathedral.");
return;
}
else if (world.model == "maps/e3m6.bsp")
{
WriteByte (MSG_ALL, SVC_CDTRACK);
WriteByte (MSG_ALL, 2);
WriteByte (MSG_ALL, 3);
WriteByte (MSG_ALL, SVC_FINALE);
WriteString (MSG_ALL, "The charred viscera of diabolic horrors\nbubble viscously as you seize the Rune\nof Hell Magic. Its heat scorches your\nhand, and its terrible secrets blight\nyour mind. Gathering the shreds of your\ncourage, you shake the devil's shackles\nfrom your soul, and become ever more\nhard and determined to destroy the\nhideous creatures whose mere existence\nthreatens the souls and psyches of all\nthe population of Earth.");
return;
}
else if (world.model == "maps/e4m7.bsp")
{
WriteByte (MSG_ALL, SVC_CDTRACK);
WriteByte (MSG_ALL, 2);
WriteByte (MSG_ALL, 3);
WriteByte (MSG_ALL, SVC_FINALE);
WriteString (MSG_ALL, "Despite the awful might of the Elder\nWorld, you have achieved the Rune of\nElder Magic, capstone of all types of\narcane wisdom. Beyond good and evil,\nbeyond life and death, the Rune\npulsates, heavy with import. Patient and\npotent, the Elder Being Shub-Niggurath\nweaves her dire plans to clear off all\nlife from the Earth, and bring her own\nfoul offspring to our world! For all the\ndwellers in these nightmare dimensions\nare her descendants! Once all Runes of\nmagic power are united, the energy\nbehind them will blast open the Gateway\nto Shub-Niggurath, and you can travel\nthere to foil the Hell-Mother's plots\nin person.");
return;
}
GotoNextMap();
}
if (intermission_running == 3)
{
if (!cvar("registered"))
{ // shareware episode has been completed, go to sell screen
WriteByte (MSG_ALL, SVC_SELLSCREEN);
return;
}
if ( (serverflags&15) == 15)
{
WriteByte (MSG_ALL, SVC_FINALE);
WriteString (MSG_ALL, "Now, you have all four Runes. You sense\ntremendous invisible forces moving to\nunseal ancient barriers. Shub-Niggurath\nhad hoped to use the Runes Herself to\nclear off the Earth, but now instead,\nyou will use them to enter her home and\nconfront her as an avatar of avenging\nEarth-life. If you defeat her, you will\nbe remembered forever as the savior of\nthe planet. If she conquers, it will be\nas if you had never been born.");
return;
}
}
GotoNextMap();
};
/*
============
IntermissionThink
When the player presses attack or jump, change to the next level
============
*/
void() IntermissionThink =
{
if (time < intermission_exittime)
return;
if (!self.button0 && !self.button1 && !self.button2)
return;
ExitIntermission ();
};
void() execute_changelevel =
{
local entity pos;
intermission_running = 1;
// enforce a wait time before allowing changelevel
if (deathmatch)
intermission_exittime = time + 8;
else
intermission_exittime = time + 2;
WriteByte (MSG_ALL, SVC_CDTRACK);
WriteByte (MSG_ALL, 3);
WriteByte (MSG_ALL, 3);
pos = FindIntermission ();
other = find (world, classname, "player");
while (other != world)
{
other.view_ofs = '0 0 0';
other.angles = other.v_angle = pos.mangle;
other.fixangle = TRUE; // turn this way immediately
other.nextthink = time + 0.5;
other.takedamage = DAMAGE_NO;
other.solid = SOLID_NOT;
other.movetype = MOVETYPE_NONE;
other.modelindex = 0;
setorigin (other, pos.origin);
other = find (other, classname, "player");
}
WriteByte (MSG_ALL, SVC_INTERMISSION);
};
void() changelevel_touch =
{
local entity pos;
if (other.classname != "player") // CTFBOT bots can't change levels
return;
// *XXX* EXPERT CTF
// Removed code that made exits do nothing in CTF games
if (cvar("noexit") && (teamplay & TEAM_CAPTURE_FLAG))
When the player touches this, he gets sent to the map listed in the "map" variable. Unless the NO_INTERMISSION flag is set, the view will go to the info_intermission spot and display stats.
*/
void() trigger_changelevel =
{
if (!self.map)
objerror ("chagnelevel trigger doesn't have map");