mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-15 10:06:24 +00:00
Battle: add barriertime cheat, change Overtime Barrier shrink speed for testing
This commit is contained in:
parent
bb8b308312
commit
db0175a94d
2 changed files with 3 additions and 1 deletions
|
|
@ -788,6 +788,7 @@ consvar_t cv_votetime = UnsavedNetVar("votetime", "20").min_max(10, 3600);
|
|||
// Cheats don't save...
|
||||
//
|
||||
|
||||
consvar_t cv_barriertime = OnlineCheat("barriertime", "30").values(CV_Natural).description("How long it takes for the Barrier to shrink in Battle Overtime");
|
||||
consvar_t cv_battletest = OnlineCheat("battletest", "Off").on_off().description("Free Play goes to Battle instead of Prisons");
|
||||
|
||||
#ifdef DEVELOP
|
||||
|
|
|
|||
|
|
@ -722,8 +722,9 @@ void K_RunBattleOvertime(void)
|
|||
|
||||
if (battleovertime.radius > minradius)
|
||||
{
|
||||
extern consvar_t cv_barriertime;
|
||||
tic_t t = leveltime - battleovertime.start;
|
||||
const tic_t duration = 30*TICRATE;
|
||||
const tic_t duration = cv_barriertime.value * TICRATE;
|
||||
battleovertime.radius = Easing_OutSine(min(t, duration) * FRACUNIT / duration, battleovertime.initial_radius, minradius);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue