mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-03-26 13:01:52 +00:00
DEVELOP: add debugtraversemax cvar to improve sight check consistency
This commit is contained in:
parent
a32bb486e2
commit
5eeb45228c
4 changed files with 15 additions and 1 deletions
|
|
@ -834,6 +834,12 @@ consvar_t cv_restrictskinchange = OnlineCheat("restrictskinchange", "Yes").yes_n
|
|||
consvar_t cv_spbtest = OnlineCheat("spbtest", "Off").on_off().description("SPB can never target a player");
|
||||
consvar_t cv_showgremlins = OnlineCheat("showgremlins", "No").yes_no().description("Show line collision errors");
|
||||
consvar_t cv_timescale = OnlineCheat(cvlist_timer)("timescale", "1.0").floating_point().min_max(FRACUNIT/20, 20*FRACUNIT).description("Overclock or slow down the game");
|
||||
|
||||
#ifdef DEVELOP
|
||||
// change the default value in doomdef.h (so it affects release builds too)
|
||||
consvar_t cv_debugtraversemax = OnlineCheat("debugtraversemax", TOSTR2(TRAVERSE_MAX)).min_max(0, 255).description("Improve line-of-sight detection (waypoints) but may slow down the game");
|
||||
#endif
|
||||
|
||||
consvar_t cv_ufo_follow = OnlineCheat("ufo_follow", "0").min_max(0, MAXPLAYERS).description("Make UFO Catcher folow this player");
|
||||
consvar_t cv_ufo_health = OnlineCheat("ufo_health", "-1").min_max(-1, 100).description("Override UFO Catcher health -- applied at spawn or when value is changed");
|
||||
|
||||
|
|
|
|||
|
|
@ -724,6 +724,9 @@ extern int
|
|||
#undef UPDATE_ALERT
|
||||
#endif
|
||||
|
||||
// p_sight.c
|
||||
#define TRAVERSE_MAX 2
|
||||
|
||||
/// Other karma comeback modes
|
||||
//#define OTHERKARMAMODES
|
||||
|
||||
|
|
|
|||
|
|
@ -360,6 +360,7 @@ typedef UINT32 tic_t;
|
|||
#endif
|
||||
|
||||
#define TOSTR(x) #x
|
||||
#define TOSTR2(x) TOSTR(x) // expand x first
|
||||
|
||||
/* preprocessor dumb and needs second macro to expand input */
|
||||
#define WSTRING2(s) L ## s
|
||||
|
|
|
|||
|
|
@ -52,7 +52,11 @@ typedef struct
|
|||
|
||||
static INT32 sightcounts[2];
|
||||
|
||||
#define TRAVERSE_MAX (2)
|
||||
#ifdef DEVELOP
|
||||
extern consvar_t cv_debugtraversemax;
|
||||
#undef TRAVERSE_MAX
|
||||
#define TRAVERSE_MAX (cv_debugtraversemax.value)
|
||||
#endif
|
||||
|
||||
//
|
||||
// P_DivlineSide
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue