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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
#include common_scripts/utility;
#include maps/mp/gametypes_zm/_hud_util;
#include maps/mp/zombies/_zm;
#include maps/mp/zombies/_zm_utility;
#include maps/mp/zombies/_zm_perks;
#include maps/mp/zombies/_zm_afterlife;
#include maps/mp/zombies/_zm_weapons;
// Loads the mods once the player connects to the server
onConnectMods(p, l)
{
/*
* General Mods
*/
// Player is invincible
// godMode(p);
// Unlimited ammo
// thread unlimitedAmmo(p);
// Set initial player points
// setPlayerPoints(p, 500);
// Mod that sets the box price
// setBoxPrice(l, 950);
// Mod sets a custom perk limit
// thread setPerkLimit(l, 9);
// Gives all the perks available in the map to the player
// thread perkaholic(p, l);
/*
* MotD Mods
*/
// Player has 9 lifes in afterlife
// catHas9Lifes(p, 9);
}
// Loads the mods once the player spawns inside the game
onSpawnMods(p, l)
{
////////////////////////////////////////////////////////////////////////
// Waits for the black preload screen to pass so it can load the mods //
// DO NOT TOUCH THIS LINE BELOW!! //
flag_wait( "initial_blackscreen_passed" ); //
////////////////////////////////////////////////////////////////////////
// Gives joined players a submachine gun and some points
// thread joinedBonus(p, l);
// Sets the player camera to third person
// playThirdPerson(p, true);
// Mod that adds a zombie counter to the bottom of the screen
// thread zombieCounter(p, l, 0, 190);
// Mod that adds a health counter to the bottom of the screen
// thread healthCounter(p, 0, 190);
// Mod that adds a zombie and health counters to the bottom of the screen
// thread healthCounter(p, -100, 190);
// thread zombieCounter(p, l, 100, 190);
}
init()
{
level thread onPlayerConnect();
}
onPlayerConnect()
{
while(1)
{
level waittill("connected", player);
thread onConnectMods(player, level);
player thread onPlayerSpawned();
}
}
onPlayerSpawned()
{
self endon("disconnect");
while(1)
{
self waittill("spawned_player");
onSpawnMods(self, level);
}
}
|