diff --git a/README.md b/README.md index 0e9d197fb..caf5a2ebc 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,7 @@ Archive's bin directory contains 2 subdirectories, 'bugfixed' and 'pure' | mp_timelimit | 0 | - | - | Period between map rotations.
`0` means no limit | | mp_forcerespawn | 0 | 0 | - | Players will automatically respawn when killed.
`0` disabled
`>0.00001` time delay to respawn | | mp_hostage_hurtable | 1 | 0 | 1 | The hostages can take the damage.
`0` disabled
`1` enabled | +| mp_show_radioicon | 1 | 0 | 1 | Show radio icon.
`0` disabled
`1` enabled | | showtriggers | 0 | 0 | 1 | Debug cvar shows triggers. | | bot_deathmatch | 0 | 0 | 1 | Set's the mode for the zBot.
`0` disabled
`1` enable mode Deathmatch and not allow to do the scenario | | bot_quota_mode | normal | - | - | Determines the type of quota.
`normal` default behaviour
`fill` the server will adjust bots to keep `N` players in the game, where `N` is bot_quota | diff --git a/regamedll/dlls/game.cpp b/regamedll/dlls/game.cpp index 5e5177a2f..34dad1c73 100644 --- a/regamedll/dlls/game.cpp +++ b/regamedll/dlls/game.cpp @@ -117,6 +117,7 @@ cvar_t showtriggers = { "showtriggers", "0", 0, 0.0f, nullptr }; // debug cva cvar_t hostagehurtable = { "mp_hostage_hurtable", "1", FCVAR_SERVER, 0.0f, nullptr }; cvar_t roundover = { "mp_roundover", "0", FCVAR_SERVER, 0.0f, nullptr }; cvar_t forcerespawn = { "mp_forcerespawn", "0", FCVAR_SERVER, 0.0f, nullptr }; +cvar_t show_radioicon = { "mp_show_radioicon", "1", FCVAR_SERVER, 1.0f, nullptr }; void GameDLL_Version_f() { @@ -264,6 +265,7 @@ void EXT_FUNC GameDLLInit() CVAR_REGISTER(&hostagehurtable); CVAR_REGISTER(&roundover); CVAR_REGISTER(&forcerespawn); + CVAR_REGISTER(&show_radioicon); // print version CONSOLE_ECHO("ReGameDLL version: " APP_VERSION "\n"); diff --git a/regamedll/dlls/game.h b/regamedll/dlls/game.h index 4f8ec488b..25dccd347 100644 --- a/regamedll/dlls/game.h +++ b/regamedll/dlls/game.h @@ -150,6 +150,7 @@ extern cvar_t showtriggers; extern cvar_t hostagehurtable; extern cvar_t roundover; extern cvar_t forcerespawn; +extern cvar_t show_radioicon; #endif diff --git a/regamedll/dlls/player.cpp b/regamedll/dlls/player.cpp index fd638f11f..210b05bd7 100644 --- a/regamedll/dlls/player.cpp +++ b/regamedll/dlls/player.cpp @@ -611,7 +611,11 @@ void EXT_FUNC CBasePlayer::__API_HOOK(Radio)(const char *msg_id, const char *msg } // icon over the head for teammates +#ifdef REGAMEDLL_ADD + if (showIcon && show_radioicon.value) +#else if (showIcon) +#endif { // put an icon over this guys head to show that he used the radio MESSAGE_BEGIN(MSG_ONE, SVC_TEMPENTITY, NULL, pEntity->pev);