You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ConVar p2mm_spewgameeventinfo("p2mm_spewgameeventinfo", "0", FCVAR_NONE, "Log information from called game events in the console, p2mm_developer must also be on. Can cause lots of console spam.", UpdateDisplayGEsConVar);
38
+
ConVar p2mm_spew_gameevent_info("p2mm_spew_gameevent_info", "0", FCVAR_NONE, "Log information from called game events in the console, p2mm_developer must also be on. Can cause lots of console spam.", UpdateDisplayGEsConVar);
@@ -108,14 +107,14 @@ CON_COMMAND_F_COMPLETION(p2mm_map, "Starts up a P2:MM session with a requested m
108
107
{
109
108
// If the map list is empty, generate it.
110
109
if (mapList.empty()) {
111
-
updateMapsList();
110
+
UpdateMapsList();
112
111
}
113
112
114
113
// Make sure the CON_COMMAND was executed correctly.
115
114
if (args.ArgC() < 2 || FStrEq(args.Arg(1), ""))
116
115
{
117
-
updateMapsList();
118
116
P2MMLog(WARNING, false, "p2mm_map called incorrectly! Usage: \"p2mm_map (map to start)\"");
117
+
UpdateMapsList();
119
118
return;
120
119
}
121
120
@@ -142,7 +141,7 @@ CON_COMMAND_F_COMPLETION(p2mm_map, "Starts up a P2:MM session with a requested m
142
141
P2MMLog(WARNING, false, "p2mm_map was called with P2MM_LASTMAP, but p2mm_lastmap is empty or invalid!");
143
142
engineClient->ExecuteClientCmd("disconnect \"There is no last map recorded or the map doesn't exist! Please start a play session with the other options first.\"");
144
143
engineClient->ExecuteClientCmd(completePVCmd);
145
-
updateMapsList();
144
+
UpdateMapsList();
146
145
return;
147
146
}
148
147
V_strcpy(requestedMap, p2mm_lastmap.GetString());
@@ -152,20 +151,17 @@ CON_COMMAND_F_COMPLETION(p2mm_map, "Starts up a P2:MM session with a requested m
P2MMLog(WARNING, false, "p2mm_map was given a non-valid map or one that doesn't exist! \"%s\"", requestedMap);
164
+
UpdateMapsList();
169
165
return;
170
166
}
171
167
@@ -201,7 +197,7 @@ CON_COMMAND_F_COMPLETION(p2mm_map, "Starts up a P2:MM session with a requested m
201
197
202
198
CON_COMMAND(p2mm_updatemaplist, "Manually updates the list of available maps that can be loaded with p2mm_map.")
203
199
{
204
-
updateMapsList();
200
+
UpdateMapsList();
205
201
}
206
202
207
203
CON_COMMAND(p2mm_maplist, "Lists available maps that can be loaded with p2mm_map.")
@@ -229,8 +225,8 @@ CON_COMMAND(p2mm_respawnall, "Respawns all players.")
229
225
}
230
226
}
231
227
232
-
bool m_ConVarConCommandsShown = false; // Bool to track if the hidden ConVars and ConCommands are showing.
233
-
std::vector<ConCommandBase*> toggledCVCCs; // List of toggled ConVars and ConCommands with the FCVAR_DEVELOPMENTONLY and FCVAR_HIDDEN ConVar flags removed.
228
+
staticbool m_ConVarConCommandsShown = false; // Bool to track if the hidden ConVars and ConCommands are showing.
229
+
staticstd::vector<ConCommandBase*> toggledCVCCs; // List of toggled ConVars and ConCommands with the FCVAR_DEVELOPMENTONLY and FCVAR_HIDDEN ConVar flags removed.
234
230
CON_COMMAND_F(p2mm_toggle_dev_cc_cvars, "Toggle showing any ConVars and ConCommands that have the FCVAR_DEVELOPMENTONLY and FCVAR_HIDDEN ConVar flags.", FCVAR_HIDDEN)
235
231
{
236
232
int iToggleCount = 0; // To tell the user how many ConVars and ConCommands where toggle to show or hide.
@@ -311,7 +307,7 @@ CON_COMMAND_F(p2mm_helloworld2, "Hello World 2: Electric Boogaloo!", FCVAR_HIDDE
311
307
ConVar p2mm_gelocity_laps_default("p2mm_gelocity_laps_default", "3", FCVAR_NONE, "Set the default amount of laps for a Gelocity race.", true, 1, true, 300);
312
308
ConVar p2mm_gelocity_music_default("p2mm_gelocity_music_default", "0", FCVAR_NONE, "Set the default music track for a Gelocity race.", true, 0, true, 5);
313
309
314
-
voidGelocityTournament(IConVar* var, constchar* pOldValue, float flOldValue)
310
+
staticvoidGelocityTournament(IConVar* var, constchar* pOldValue, float flOldValue)
ConVar p2mm_gelocity_tournamentmode("p2mm_gelocity_tournamentmode", "0", FCVAR_NONE, "Turn on or off tournament mode.", true, 0, true, 1, GelocityTournament);
339
335
340
-
voidGelocityButtons(IConVar* var, constchar* pOldValue, float flOldValue)
336
+
staticvoidGelocityButtons(IConVar* var, constchar* pOldValue, float flOldValue)
0 commit comments