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
P2MMLog(WARNING, false, "p2mm_map was called with P2MM_LASTMAP, but p2mm_lastmap is empty or invalid!");
141
+
Log(WARNING, false, "p2mm_map was called with P2MM_LASTMAP, but p2mm_lastmap is empty or invalid!");
142
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.\"");
143
143
engineClient->ExecuteClientCmd(completePVCmd);
144
144
UpdateMapsList();
145
145
return;
146
146
}
147
147
V_strcpy(requestedMap, p2mm_lastmap.GetString());
148
-
P2MMLog(INFO, true, "P2MM_LASTMAP called! Running Last Map: \"%s\"", requestedMap);
148
+
Log(INFO, true, "P2MM_LASTMAP called! Running Last Map: \"%s\"", requestedMap);
149
149
}
150
150
p2mm_lastmap.SetValue(""); // Set last map ConVar to blank so it doesn't trigger level changes where we don't want it to trigger.
151
151
@@ -160,14 +160,14 @@ CON_COMMAND_F_COMPLETION(p2mm_map, "Starts up a P2:MM session with a requested m
160
160
// Check if the supplied map is a valid map.
161
161
if (!engineServer->IsMapValid(requestedMap))
162
162
{
163
-
P2MMLog(WARNING, false, "p2mm_map was given a non-valid map or one that doesn't exist! \"%s\"", requestedMap);
163
+
Log(WARNING, false, "p2mm_map was given a non-valid map or one that doesn't exist! \"%s\"", requestedMap);
164
164
UpdateMapsList();
165
165
return;
166
166
}
167
167
168
168
// Check if the user requested it to start in splitscreen or not.
// Set first run flag on and set the last map ConVar value so the system.
173
173
// can change from mp_coop_community_hub to the requested map.
@@ -176,8 +176,8 @@ CON_COMMAND_F_COMPLETION(p2mm_map, "Starts up a P2:MM session with a requested m
176
176
g_P2MMServerPlugin.m_bSeenFirstRunPrompt = false;
177
177
if (!FSubStr(requestedMap, "mp_coop"))
178
178
{
179
-
P2MMLog(INFO, true, R"("mp_coop" not found, single player map being run. Full ExecuteClientCmd: "%s")", std::string(mapString + "mp_coop_community_hub").c_str());
Log(INFO, true, R"("mp_coop" not found, single player map being run. Full ExecuteClientCmd: "%s")", std::string(mapString + "mp_coop_community_hub").c_str());
P2MMLog(INFO, false, "Gelocity tournament mode ConVar was changed from %i to %i.", static_cast<int>(flOldValue), dynamic_cast<ConVar*>(var)->GetBool());
316
-
P2MMLog(WARNING, false, "Mode will take effect when Gelocity map is loaded.");
315
+
Log(INFO, false, "Gelocity tournament mode ConVar was changed from %i to %i.", static_cast<int>(flOldValue), dynamic_cast<ConVar*>(var)->GetBool());
316
+
Log(WARNING, false, "Mode will take effect when Gelocity map is loaded.");
P2MMLog(WARNING, false, "Race is currently in progress!");
325
+
Log(WARNING, false, "Race is currently in progress!");
326
326
return;
327
327
}
328
328
329
-
P2MMLog(INFO, false, "Gelocity tournament mode ConVar was changed from %i to %i!", static_cast<int>(flOldValue), dynamic_cast<ConVar*>(var)->GetBool());
330
-
P2MMLog(WARNING, false, "Restarting map based on tournament mode change!");
329
+
Log(INFO, false, "Gelocity tournament mode ConVar was changed from %i to %i!", static_cast<int>(flOldValue), dynamic_cast<ConVar*>(var)->GetBool());
330
+
Log(WARNING, false, "Restarting map based on tournament mode change!");
ConVar p2mm_gelocity_tournamentmode("p2mm_gelocity_tournamentmode", "0", FCVAR_NONE, "Turn on or off tournament mode.", true, 0, true, 1, GelocityTournament);
ConVar p2mm_gelocity_lockbuttons("p2mm_gelocity_lockbuttons", "0", FCVAR_NONE, "Toggle the state of the music and lap buttons.", true, 0, true, 1, GelocityButtons);
@@ -375,7 +375,7 @@ CON_COMMAND(p2mm_gelocity_laps, "Set lap count for the Gelocity Race. Specify 0
375
375
// Check if host is in a gelocity map.
376
376
if (!InGelocityMap())
377
377
{
378
-
P2MMLog(WARNING, false, "Not currently in a Gelocity map!");
378
+
Log(WARNING, false, "Not currently in a Gelocity map!");
379
379
return;
380
380
}
381
381
@@ -384,7 +384,7 @@ CON_COMMAND(p2mm_gelocity_laps, "Set lap count for the Gelocity Race. Specify 0
0 commit comments