Skip to content

Commit

Permalink
Force alltalk on round start (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
zer0k-z authored Jan 4, 2024
1 parent ba7533a commit 2044bb2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cs2kz.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,10 @@ internal bool Hook_FireEvent(IGameEvent *event, bool bDontBroadcast)
CEntityInstance *instance = event->GetPlayerPawn("userid");
g_pKZPlayerManager->ToPlayer(instance->GetEntityIndex())->quietService->SendFullUpdate();
}
else if (V_stricmp(event->GetName(), "round_start") == 0)
{
interfaces::pEngine->ServerCommand("sv_full_alltalk 1");
}
}
RETURN_META_VALUE(MRES_IGNORED, true);
}
Expand Down

0 comments on commit 2044bb2

Please sign in to comment.