-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathgungame_variables.cs
61 lines (59 loc) · 2.25 KB
/
gungame_variables.cs
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
using CounterStrikeSharp.API.Modules.Cvars;
using CounterStrikeSharp.API.Modules.Utils;
//using GunGame;
using GunGame.Models;
namespace GunGame.Variables
{
public class GGVariables
{
private static GGVariables? _instance;
private GGVariables() { }
public static GGVariables Instance
{
get
{
_instance ??= new GGVariables();
return _instance;
}
}
public string ServerLanguageCode = "en";
public string ActiveConfigFolder = "gungame";
public ConVar? Mp_friendlyfire { get; set; }
public Dictionary<int, int> CustomKillsPerLevel = new();
public bool StatsEnabled { get; set; } = false;
public List<Weapon> weaponsList = new();
public int WeaponOrderCount { get; set; }
public List<string> WeaponsSkipFastSwitch = new();
public bool IsActive = false; // GG is active
public Winner? GameWinner { get; set; }
public Leader CurrentLeader { get; set; } = new();
public bool RoundStarted { get; set; } = false;
public int Round = 0;
public Objectives MapStatus { get; set; }
public int HostageEntInfo { get; set; }
public bool IsVotingCalled { get; set; }
public bool WarmupFinished = false;
public bool FirstRound = false;
public bool IsCalledEnableFriendlyFire { get; set; }
public bool IsCalledDisableRtv { get; set; }
public int PlayerOnGrenade { get; set; }
public int CTcount { get; set; }
public int Tcount { get; set; }
public int WeaponsMaxId { get; set; }
public int WeaponIdSmokegrenade { get; set; }
public int WeaponIdFlashbang { get; set; }
public List<string> InfoMessages = new()
{
"set.sound",
"top.list",
"your.rank",
"change.language"
};
public int InfoMessageIndex = 0;
public Dictionary<int, List<SpawnInfo>> spawnPoints = new();
public Vector [] Position = new Vector [65];
// public int g_WeaponAmmoTypeHegrenade { get; set; }
// public int g_WeaponAmmoTypeFlashbang { get; set; }
// public int g_WeaponAmmoTypeSmokegrenade { get; set; }
}
}