Skip to content

Commit

Permalink
Server: Add +use slowdown setting (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmp64 committed Oct 6, 2024
1 parent 3935cef commit c674cb0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/game/server/gamerules.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,14 @@ extern int gmsgMOTD;
int g_teamplay = 0;
extern cvar_t sv_busters;

ConVar mp_useslowdown("mp_useslowdown", "1", 0, "Slowdown behavior on +USE. 0 - Old. 1 - New");

//=========================================================
//=========================================================
void CGameRules::Think(void)
{
PM_SetBHopCapEnabled(!bunnyhop.value);
PM_SetUseSlowDownType(mp_useslowdown.GetEnumClamped<EUseSlowDownType>());
}

//=========================================================
Expand Down

0 comments on commit c674cb0

Please sign in to comment.