diff --git a/src/game/game.cpp b/src/game/game.cpp index dcec3b1..1e30101 100644 --- a/src/game/game.cpp +++ b/src/game/game.cpp @@ -549,7 +549,8 @@ namespace game } } - void CG_GameMessage(LocalClientNum_t localClientNum, const char* msg) + // SP takes one extra argument, all possible values are undocumented + void CG_GameMessage(LocalClientNum_t localClientNum, const char* msg, int flags) { if (is_mp()) { @@ -557,7 +558,7 @@ namespace game } else if (is_sp()) { - reinterpret_cast(0x4228A0)(localClientNum, msg, 17); + reinterpret_cast(0x4228A0)(localClientNum, msg, flags); } } } diff --git a/src/game/game.hpp b/src/game/game.hpp index 1f692fb..6479014 100644 --- a/src/game/game.hpp +++ b/src/game/game.hpp @@ -168,7 +168,7 @@ namespace game void TeleportPlayer(gentity_s* player, float* origin, float* angles); - void CG_GameMessage(LocalClientNum_t localClientNum, const char* msg); + void CG_GameMessage(LocalClientNum_t localClientNum, const char* msg, int flags = 0); } bool is_mp();