Skip to content

Commit

Permalink
Added change ReGameDLL cvar 'mp_roundtime'.
Browse files Browse the repository at this point in the history
  • Loading branch information
d3m37r4 committed Dec 8, 2023
1 parent c46e698 commit 8ad4785
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cstrike/addons/amxmodx/scripting/regg/config.inl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ enum config_section_s {
};

enum _:game_cvars_s {
Float:GCRoundTime,
GCRoundInfinite[32],
Float:GCForcerespawn,
GCRefillBpammoWeapons,
Expand Down Expand Up @@ -106,6 +107,10 @@ registerCvars() {
changeGameCvars() {
new pcvar;

pcvar = get_cvar_pointer("mp_roundtime");
GameCvars[GCRoundTime] = get_pcvar_float(pcvar);
set_pcvar_float(pcvar, 0.0);

pcvar = get_cvar_pointer("mp_round_infinite");
get_pcvar_string(pcvar, GameCvars[GCRoundInfinite], charsmax(GameCvars[GCRoundInfinite]));
set_pcvar_num(pcvar, 1);
Expand Down

0 comments on commit 8ad4785

Please sign in to comment.