mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-01-14 07:38:00 +03:00
Add cvar for radio icon (#180)
This commit is contained in:
parent
83341a793e
commit
b27d7bc05e
@ -41,6 +41,7 @@ Archive's bin directory contains 2 subdirectories, 'bugfixed' and 'pure'
|
||||
| mp_timelimit | 0 | - | - | Period between map rotations.<br />`0` means no limit |
|
||||
| mp_forcerespawn | 0 | 0 | - | Players will automatically respawn when killed.<br/>`0` disabled<br/>`>0.00001` time delay to respawn |
|
||||
| mp_hostage_hurtable | 1 | 0 | 1 | The hostages can take the damage.<br/>`0` disabled<br/>`1` enabled |
|
||||
| mp_show_radioicon | 1 | 0 | 1 | Show radio icon.<br/>`0` disabled<br/>`1` enabled |
|
||||
| showtriggers | 0 | 0 | 1 | Debug cvar shows triggers. |
|
||||
| bot_deathmatch | 0 | 0 | 1 | Set's the mode for the zBot.<br/>`0` disabled<br/>`1` enable mode Deathmatch and not allow to do the scenario |
|
||||
| bot_quota_mode | normal | - | - | Determines the type of quota.<br/>`normal` default behaviour<br/>`fill` the server will adjust bots to keep `N` players in the game, where `N` is bot_quota |
|
||||
|
@ -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");
|
||||
|
@ -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
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user