-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFraga_Debug.gsc
56 lines (52 loc) · 1.28 KB
/
Fraga_Debug.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
#include maps\mp\gametypes_zm\_hud_util;
#include maps\mp\zombies\_zm_utility;
#include common_scripts\utility;
#include maps\mp\_utility;
#include maps\mp\zombies\_zm;
#include maps\mp\zombies\_zm_blockers;
init()
{
if(getDvarInt("FragaDebug"))
level.debug = true;
else
level.debug = false;
if(level.debug)
{
if(GetDvar("score") == "")
setdvar( "score", "69420" );
level.player_out_of_playable_area_monitor = 0;
level thread debugmode();
setdvar("sv_cheats", level.debug);
setdvar("cg_ufo_scaler", 1);
while(true)
{
level waittill( "connected", player );
player thread connected();
}
}
}
connected()
{
level endon( "game_ended" );
self endon( "disconnect" );
flag_wait( "start_zombie_round_logic" );
if(level.script == "zm_prison")
{
flag_wait( "afterlife_start_over" );
}
self.score = GetDvarInt("score");
}
debugmode()
{
level.debugmode.hidewheninmenu = 1;
level.debugmode = createserverfontstring( "objective", 1.3 );
level.debugmode.y = 20;
level.debugmode.x = 0;
level.debugmode.fontscale = 1;
level.debugmode.alignx = "center";
level.debugmode.horzalign = "user_center";
level.debugmode.vertalign = "user_top";
level.debugmode.aligny = "top";
level.debugmode.alpha = 1;
level.debugmode.label = &"DEBUG MODE";
}