summaryrefslogtreecommitdiff
path: root/perks/noPerkLimit.gsc
blob: ac3cce0a2ca5d4dad396e160d8958702f3c03bdb (plain)
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
#include common_scripts/utility;
#include maps/mp/gametypes_zm/_hud_util;
#include maps/mp/zombies/_zm_utility;

init()
{
    level thread onPlayerConnect();
}

onPlayerConnect()
{
    while(1)
    {
        level waittill("connected", player);
        player thread onPlayerSpawned();
    }
}

onPlayerSpawned()
{
    self endon("disconnect");
	level endon("game_ended");
    while(1)
    {
        self waittill("spawned_player");

	// Waits for the black preload screen to pass so it can load the mods
        flag_wait( "initial_blackscreen_passed" );

	// Mod to Remove the Perk Limit
        level.perk_purchase_limit = 12;
    }
}