Skip to content

Commit

Permalink
fix: coop ping after reset
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisAMJ committed Apr 26, 2024
1 parent 43749e2 commit 9378a14
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Features/Session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@ void Session::Start() {
return;
}

if (engine->IsCoop() && !engine->IsOrange() && engine->GetCurrentMapName() == "mp_coop_start") {
sv_cheats.ThisPtr()->m_nValue = 1;
engine->ExecuteCommand("ent_fire @global_no_pinging_blue TurnOff; ent_fire @global_no_pinging_orange TurnOff");
sv_cheats.SetValue(sv_cheats.GetString());
}

auto tick = engine->GetTick();

this->Rebase(tick);
Expand Down

0 comments on commit 9378a14

Please sign in to comment.