AMXX-BG.INFO map_manager_consts.inc Raw include

map_manager_consts.inc

Original include source with line numbers.

Back Download .inc
1 #if defined _map_manager_consts_included
2 #endinput
3 #endif
4 #define _map_manager_consts_included
5
6 #define VERSION_HASH "-6984f56"
7
8 const MAPNAME_LENGTH = 32;
9
10 enum _:MapStruct {
11 Map[MAPNAME_LENGTH],
12 MinPlayers,
13 MaxPlayers,
14 MapPriority
15 };
16
17 enum _:NomStruct {
18 NomMap[MAPNAME_LENGTH],
19 NomPlayer
20 };
21
22 // used as return value in forward "mapm_can_be_in_votelist"
23 enum {
24 MAP_ALLOWED,
25 MAP_BLOCKED
26 };
27
28 enum (<<=1) {
29 CHECK_NOT_IGNORED = 0,
30 CHECK_IGNORE_MAP_ALLOWED = 1 << 0,
31 CHECK_IGNORE_VALID_MAP
32 };
33
34 // used as return value in native "mapm_push_map_to_votelist"
35 enum {
36 PUSH_BLOCKED = -1,
37 PUSH_CANCELED,
38 PUSH_SUCCESS
39 };
40
41 // used for type param in native "mapm_push_map_to_votelist"
42 enum {
43 PUSH_BY_CORE,
44 PUSH_BY_NATIVE,
45 PUSH_BY_SECOND_VOTE,
46 PUSH_BY_NOMINATION,
47 PUSH_BY_ONLINE_SORTER
48 };
49
50 enum {
51 VOTE_BY_CMD,
52 VOTE_BY_RTV,
53 VOTE_BY_SCHEDULER,
54 VOTE_BY_SCHEDULER_SECOND
55 };
56
57 // used as return value in forward "mapm_analysis_of_results"
58 enum {
59 ALLOW_VOTE,
60 ABORT_VOTE,
61 ABORT_VOTE_WITH_FORWARD
62 };
63
64 // used for cvar "mapm_extended_type"
65 enum {
66 EXTEND_MINUTES,
67 EXTEND_ROUNDS
68 };
69
70 // used as return value in forward "mapm_can_be_extended"
71 enum {
72 EXTEND_ALLOWED,
73 EXTEND_BLOCKED
74 };
75
76 const INVALID_MAP_INDEX = -1;
77
78 // used for type param in forward "mapm_countdown"
79 enum {
80 COUNTDOWN_UNKNOWN = -1,
81 COUNTDOWN_PREPARE,
82 COUNTDOWN_VOTETIME
83 }
84
85 // used for cvar "mapm_show_result_type"
86 enum {
87 SHOW_DISABLED,
88 SHOW_MENU,
89 SHOW_HUD
90 };
91
92 // used for cvar "mapm_show_percent"
93 enum {
94 PERCENT_DISABLED,
95 PERCENT_ALWAYS,
96 PERCENT_AFTER_VOTE
97 };
98
99 // used for forward "mapm_can_be_nominated"
100 enum {
101 NOMINATION_ALLOWED,
102 NOMINATION_BLOCKED
103 };
104