mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Add battleufotest debug cheat, respawn Battle UFO instantly
This commit is contained in:
parent
fed0740d99
commit
84fd5d58d7
2 changed files with 5 additions and 1 deletions
|
|
@ -791,6 +791,7 @@ consvar_t cv_votetime = UnsavedNetVar("votetime", "20").min_max(10, 3600);
|
|||
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_battlespawn = OnlineCheat("battlespawn", "0").values(CV_Unsigned).description("Spawn every player at the same spawnpoint in Battle (0 = random spawns)");
|
||||
consvar_t cv_battletest = OnlineCheat("battletest", "Off").on_off().description("Free Play goes to Battle instead of Prisons");
|
||||
consvar_t cv_battleufotest = OnlineCheat("battleufotest", "Off").on_off().description("Respawn Battle UFOs instantly after being destroyed");
|
||||
|
||||
#ifdef DEVELOP
|
||||
consvar_t cv_botcontrol = OnlineCheat("botcontrol", "On").on_off().description("Toggle bot AI movement");
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
#include "../mobj.hpp"
|
||||
#include "../mobj_list.hpp"
|
||||
|
||||
#include "../command.h"
|
||||
#include "../doomdef.h"
|
||||
#include "../m_random.h"
|
||||
#include "../p_local.h"
|
||||
|
|
@ -17,6 +18,8 @@ using srb2::math::Fixed;
|
|||
using srb2::Mobj;
|
||||
using srb2::MobjList;
|
||||
|
||||
extern consvar_t cv_battleufotest;
|
||||
|
||||
extern mobj_t* svg_battleUfoSpawners;
|
||||
|
||||
#define BATTLEUFO_LEG_ZOFFS (3*FRACUNIT) // Spawn height offset from the body
|
||||
|
|
@ -169,7 +172,7 @@ void Obj_BattleUFODeath(mobj_t *mobj, mobj_t *inflictor)
|
|||
if (ufo->spawner())
|
||||
{
|
||||
g_battleufo.previousId = ufo->spawner()->id();
|
||||
g_battleufo.due = leveltime + BATTLE_UFO_TIME;
|
||||
g_battleufo.due = leveltime + (cv_battleufotest.value ? 1 : BATTLE_UFO_TIME);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue