mirror of
https://github.com/diamante0018/BlackOpsPlugin.git
synced 2025-05-10 22:34:51 +00:00
18 lines
485 B
C++
18 lines
485 B
C++
#include <std_include.hpp>
|
|
|
|
namespace game {
|
|
gamemode current = reinterpret_cast<const char*>(0xA6840C) == "multiplayer"s
|
|
? gamemode::multiplayer
|
|
: gamemode::zombies;
|
|
|
|
namespace environment {
|
|
bool is_mp() { return current == gamemode::multiplayer; }
|
|
|
|
bool is_sp() { return current == gamemode::zombies; }
|
|
} // namespace environment
|
|
|
|
int SV_IsTestClient(int clientNum) {
|
|
return svs_clients[clientNum].bIsTestClient;
|
|
}
|
|
} // namespace game
|