1 float intermission_running; // This was moved here from mauvebot.c
\r
2 float intermission_exittime; // This was moved here from g_world.c
\r
3 void (entity AD) ParseTFDetect;
\r
5 entity () FindIntermission =
\r
10 spot = find (world, classname, "info_intermission");
\r
13 cyc = (random () * 1);
\r
16 spot = find (world, classname, "info_player_start");
\r
21 spot = find (world, classname, "info_player_deathmatch");
\r
24 cyc = (random () * 6);
\r
27 spot = find (spot, classname, "info_player_deathmatch");
\r
30 spot = find (spot, classname, "info_player_deathmatch");
\r
36 objerror ("FindIntermission: no spot");
\r
39 void () DecodeLevelParms =
\r
41 if (parems_decoded == 1)
\r
45 local entity decent;
\r
46 decent = find (world, classname, "info_tfdetect");
\r
47 if ((decent != world))
\r
49 // teamplay = cvar ("teamplay");
\r
50 // if ((teamplay == 0))
\r
52 cvar_set ("teamplay", "21?TeamFortress");
\r
54 ParseTFDetect (decent);
\r
55 if (((number_of_teams <= 0.000000) || (number_of_teams >= 5.000000)))
\r
57 number_of_teams = 4.000000;
\r
64 // Execute Change Level
\r
65 void () execute_changelevel =
\r
69 intermission_running = 1;
\r
72 intermission_exittime = (time + 5);
\r
76 intermission_exittime = (time + 2);
\r
81 pos = FindIntermission ();
\r
82 other = find (world, classname, "player");
\r
83 while ((other != world))
\r
85 other.view_ofs = '0 0 0';
\r
86 other.v_angle = pos.mangle;
\r
87 other.angles = pos.mangle;
\r
89 other.nextthink = (time + 0.5);
\r
90 other.takedamage = 0;
\r
93 other.modelindex = 0;
\r
94 setorigin (other, pos.origin);
\r
95 other = find (other, classname, "player");
\r