2003-10-24 21:43:32 +00:00
|
|
|
#include "common.qh"
|
|
|
|
|
2004-02-08 07:34:17 +00:00
|
|
|
void ()
|
|
|
|
worldspawn =
|
|
|
|
{
|
2003-10-24 21:43:32 +00:00
|
|
|
/* These are used be the server C code, but not precached. Bad iD. */
|
2004-02-08 07:34:17 +00:00
|
|
|
precache_sound ("misc/h2ohit1.wav");
|
|
|
|
precache_sound ("demon/dland2.wav");
|
|
|
|
precache_sound ("misc/r_tele1.wav");
|
|
|
|
precache_sound ("misc/r_tele2.wav");
|
|
|
|
precache_sound ("misc/r_tele3.wav");
|
|
|
|
precache_sound ("misc/r_tele4.wav");
|
|
|
|
precache_sound ("misc/r_tele5.wav");
|
2003-10-24 21:43:32 +00:00
|
|
|
|
|
|
|
/* Compatibility :) */
|
|
|
|
if (self.model == "maps/e1m8.bsp")
|
2004-02-08 07:34:17 +00:00
|
|
|
cvar_set ("sv_gravity", "100");
|
2003-10-24 21:43:32 +00:00
|
|
|
|
|
|
|
// Setup light animation tables. 'a' is total darkness, 'z' is maxbright.
|
|
|
|
// 0 normal
|
2004-02-08 07:34:17 +00:00
|
|
|
lightstyle (0, "m");
|
2003-10-24 21:43:32 +00:00
|
|
|
|
|
|
|
// 1 FLICKER (first variety)
|
2004-02-08 07:34:17 +00:00
|
|
|
lightstyle (1, "mmnmmommommnonmmonqnmmo");
|
2003-10-24 21:43:32 +00:00
|
|
|
|
|
|
|
// 2 SLOW STRONG PULSE
|
2004-02-08 07:34:17 +00:00
|
|
|
lightstyle (2, "abcdefghijklmnopqrstuvwxyzyxwvutsrqponmlkjihgfedcba");
|
2003-10-24 21:43:32 +00:00
|
|
|
|
|
|
|
// 3 CANDLE (first variety)
|
2004-02-08 07:34:17 +00:00
|
|
|
lightstyle (3, "mmmmmaaaaammmmmaaaaaabcdefgabcdefg");
|
2003-10-24 21:43:32 +00:00
|
|
|
|
|
|
|
// 4 FAST STROBE
|
2004-02-08 07:34:17 +00:00
|
|
|
lightstyle (4, "ma");
|
2003-10-24 21:43:32 +00:00
|
|
|
|
|
|
|
// 5 GENTLE PULSE 1
|
2004-02-08 07:34:17 +00:00
|
|
|
lightstyle (5,"jklmnopqrstuvwxyzyxwvutsrqponmlkj");
|
2003-10-24 21:43:32 +00:00
|
|
|
|
|
|
|
// 6 FLICKER (second variety)
|
2004-02-08 07:34:17 +00:00
|
|
|
lightstyle (6, "nmonqnmomnmomomno");
|
2003-10-24 21:43:32 +00:00
|
|
|
|
|
|
|
// 7 CANDLE (second variety)
|
2004-02-08 07:34:17 +00:00
|
|
|
lightstyle (7, "mmmaaaabcdefgmmmmaaaammmaamm");
|
2003-10-24 21:43:32 +00:00
|
|
|
|
|
|
|
// 8 CANDLE (third variety)
|
2004-02-08 07:34:17 +00:00
|
|
|
lightstyle (8, "mmmaaammmaaammmabcdefaaaammmmabcdefmmmaaaa");
|
2003-10-24 21:43:32 +00:00
|
|
|
|
|
|
|
// 9 SLOW STROBE (fourth variety)
|
2004-02-08 07:34:17 +00:00
|
|
|
lightstyle (9, "aaaaaaaazzzzzzzz");
|
2003-10-24 21:43:32 +00:00
|
|
|
|
|
|
|
// 10 FLUORESCENT FLICKER
|
2004-02-08 07:34:17 +00:00
|
|
|
lightstyle (10, "mmamammmmammamamaaamammma");
|
2003-10-24 21:43:32 +00:00
|
|
|
|
|
|
|
// 11 SLOW PULSE NOT FADE TO BLACK
|
2004-02-08 07:34:17 +00:00
|
|
|
lightstyle (11, "abcdefghijklmnopqrrqponmlkjihgfedcba");
|
2003-10-24 21:43:32 +00:00
|
|
|
|
|
|
|
// styles 32-62 are assigned by the light program for switchable lights
|
|
|
|
|
2004-02-08 07:34:17 +00:00
|
|
|
main ();
|
2003-10-24 21:43:32 +00:00
|
|
|
};
|