Skip to content

Commit

Permalink
fix: require cheat
Browse files Browse the repository at this point in the history
fuck bets
  • Loading branch information
ThisAMJ committed Mar 7, 2024
1 parent 006fcdc commit fbc23ad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Modules/Client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,9 @@ DETOUR_T(void, Client::MsgPreSkipToNextLevel) {
Hook (g_MsgPreSkipToNextLevelHook)(&Client::MsgPreSkipToNextLevel_Hook);

CON_COMMAND(sar_workshop_skip, "sar_workshop_skip - Skips to the next level in workshop\n") {
if (!sv_cheats.GetBool()) {
return console->Print("This command requires sv_cheats\n");
}
if (strncmp("workshop/", engine->GetCurrentMapName().c_str(), 9)) {
return console->Print("This command only works in workshop maps.\n");
}
Expand Down

0 comments on commit fbc23ad

Please sign in to comment.