Skip to content

Commit

Permalink
Add new CVar: mp_dying_time < 0 .. 999>
Browse files Browse the repository at this point in the history
  • Loading branch information
wopox1337 committed Dec 26, 2019
1 parent 44e7758 commit d04f4ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions regamedll/dlls/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ cvar_t ff_damage_reduction_other = { "ff_damage_reduction_other",
cvar_t radio_timeout = { "mp_radio_timeout", "1.5", FCVAR_SERVER, 1.5f, nullptr };
cvar_t radio_maxinround = { "mp_radio_maxinround", "60", FCVAR_SERVER, 60.0f, nullptr };

cvar_t dying_time = { "mp_dying_time", "3.0", FCVAR_SERVER, 3.0f, nullptr };

void GameDLL_Version_f()
{
if (Q_stricmp(CMD_ARGV(1), "version") != 0)
Expand Down Expand Up @@ -353,6 +355,8 @@ void EXT_FUNC GameDLLInit()
CVAR_REGISTER(&radio_timeout);
CVAR_REGISTER(&radio_maxinround);

CVAR_REGISTER(&dying_time);

// print version
CONSOLE_ECHO("ReGameDLL version: " APP_VERSION "\n");

Expand Down
1 change: 1 addition & 0 deletions regamedll/dlls/game.h
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ extern cvar_t ff_damage_reduction_grenade_self;
extern cvar_t ff_damage_reduction_other;
extern cvar_t radio_timeout;
extern cvar_t radio_maxinround;
extern cvar_t dying_time;

#endif

Expand Down

0 comments on commit d04f4ce

Please sign in to comment.