mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'no-pick-me-up' into 'master'
Development cheat to disable pickmeup See merge request kart-krew-dev/ring-racers-internal!2610
This commit is contained in:
commit
53cb1cb45d
3 changed files with 10 additions and 1 deletions
|
|
@ -809,6 +809,7 @@ consvar_t cv_debugencorevote = OnlineCheat("debugencorevote", "Off").on_off().de
|
||||||
consvar_t cv_debuglapcheat = OnlineCheat("debuglapcheat", "Off").on_off().description("Permit far waypoint jumps and disable lap cheat prevention");
|
consvar_t cv_debuglapcheat = OnlineCheat("debuglapcheat", "Off").on_off().description("Permit far waypoint jumps and disable lap cheat prevention");
|
||||||
consvar_t cv_debugnewchallenger = OnlineCheat("debugnewchallenger", "Off").on_off().description("Do not restart the map to toggle Duel mode");
|
consvar_t cv_debugnewchallenger = OnlineCheat("debugnewchallenger", "Off").on_off().description("Do not restart the map to toggle Duel mode");
|
||||||
consvar_t cv_forcebots = OnlineCheat("forcebots", "No").yes_no().description("Force bots to appear, even in wrong game modes");
|
consvar_t cv_forcebots = OnlineCheat("forcebots", "No").yes_no().description("Force bots to appear, even in wrong game modes");
|
||||||
|
consvar_t cv_debugpickmeup = OnlineCheat("debugpickmeup", "Off").on_off().description("Don't protect players from self/team damage");
|
||||||
|
|
||||||
void ForceSkin_OnChange(void);
|
void ForceSkin_OnChange(void);
|
||||||
consvar_t cv_forceskin = OnlineCheat("forcecharacter", "None").onchange(ForceSkin_OnChange).description("Force all players to use one character");
|
consvar_t cv_forceskin = OnlineCheat("forcecharacter", "None").onchange(ForceSkin_OnChange).description("Force all players to use one character");
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@
|
||||||
|
|
||||||
using namespace srb2;
|
using namespace srb2;
|
||||||
|
|
||||||
extern "C" consvar_t cv_debughudtracker, cv_battleufotest, cv_kartdebugwaypoints;
|
extern "C" consvar_t cv_debughudtracker, cv_battleufotest, cv_kartdebugwaypoints, cv_debugpickmeup;
|
||||||
|
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -15844,6 +15844,10 @@ void K_BotHitPenalty(player_t *player)
|
||||||
|
|
||||||
boolean K_IsPickMeUpItem(mobjtype_t type)
|
boolean K_IsPickMeUpItem(mobjtype_t type)
|
||||||
{
|
{
|
||||||
|
extern consvar_t cv_debugpickmeup;
|
||||||
|
if (cv_debugpickmeup.value)
|
||||||
|
return false;
|
||||||
|
|
||||||
switch (type)
|
switch (type)
|
||||||
{
|
{
|
||||||
case MT_JAWZ:
|
case MT_JAWZ:
|
||||||
|
|
@ -15963,6 +15967,10 @@ static boolean K_PickUp(player_t *player, mobj_t *picked)
|
||||||
// ACHTUNG this destroys items when returning true, make sure to bail out
|
// ACHTUNG this destroys items when returning true, make sure to bail out
|
||||||
boolean K_TryPickMeUp(mobj_t *m1, mobj_t *m2, boolean allowHostile)
|
boolean K_TryPickMeUp(mobj_t *m1, mobj_t *m2, boolean allowHostile)
|
||||||
{
|
{
|
||||||
|
extern consvar_t cv_debugpickmeup;
|
||||||
|
if (cv_debugpickmeup.value)
|
||||||
|
return false;
|
||||||
|
|
||||||
if (!m1 || P_MobjWasRemoved(m1))
|
if (!m1 || P_MobjWasRemoved(m1))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue