-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.gsc
65 lines (55 loc) · 1.43 KB
/
init.gsc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
// Includes
#include scripts\mp\utils\clock;
#include scripts\mp\utils\utils;
#include scripts\mp\utils\settings;
#include scripts\mp\utils\weaponsettings;
#include scripts\mp\maps\mapedits;
#include scripts\mp\menu\menu;
#include scripts\mp\events\broadcaster;
#include scripts\mp\events\playerkilled;
#include scripts\mp\events\playerconnect;
#include scripts\mp\events\playerconnecterror;
#include scripts\mp\events\randomdroplogic;
#include scripts\mp\events\megazombie;
// Main script
init()
{
level.prefix = "^1[ZombieLand]^7 ";
// Check server settings
if (GetDvar("g_gametype") != "tdm")
{
level thread OnPlayerConnectError();
return;
}
// Replace functions
level.onPlayerKilled = ::OnPlayerKilled;
level.onForfeit = ::FixForfeit;
// ZombieLand scripts
level thread SetupSettings();
level thread GlobalSetting();
level thread SetupWeaponSettings();
level thread SetupPerkSettings();
level thread PreCache();
level thread OnPlayerConnectZL();
wait 2;
level thread LoadMap();
wait 2;
level thread WatchZombieBoss();
level thread Broadcast();
level thread WatchRandomDrop();
wait 1;
level thread CalculateGameTimeEndGame();
// DEBUG
//level thread Debug();
}
Debug()
{
level endon ("stop_zombieland");
wait 2;
for(;;)
{
//DEBUG
wait 3;
level.players[0] iPrintln(level.players[0].origin);
}
}