mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-03-15 15:42:27 +00:00
Remove kartdebugitem
This commit is contained in:
parent
392aec38f8
commit
803884c55a
3 changed files with 3 additions and 20 deletions
|
|
@ -388,7 +388,6 @@ static CV_PossibleValue_t kartdebugitem_cons_t[] =
|
|||
#undef X
|
||||
{0}
|
||||
};
|
||||
consvar_t cv_kartdebugitem = {"kartdebugitem", "0", CV_NETVAR|CV_CHEAT|CV_NOSHOWHELP, kartdebugitem_cons_t, NULL, 0, NULL, NULL, 0, 0, NULL};
|
||||
static CV_PossibleValue_t kartdebugamount_cons_t[] = {{1, "MIN"}, {255, "MAX"}, {0, NULL}};
|
||||
consvar_t cv_kartdebugamount = {"kartdebugamount", "1", CV_NETVAR|CV_CHEAT|CV_NOSHOWHELP, kartdebugamount_cons_t, NULL, 0, NULL, NULL, 0, 0, NULL};
|
||||
consvar_t cv_kartallowgiveitem = {
|
||||
|
|
|
|||
|
|
@ -125,7 +125,7 @@ extern consvar_t cv_kartusepwrlv;
|
|||
|
||||
extern consvar_t cv_votetime;
|
||||
|
||||
extern consvar_t cv_kartdebugitem, cv_kartdebugamount, cv_kartallowgiveitem, cv_kartdebugshrink, cv_kartdebugdistribution, cv_kartdebughuddrop;
|
||||
extern consvar_t cv_kartdebugamount, cv_kartallowgiveitem, cv_kartdebugshrink, cv_kartdebugdistribution, cv_kartdebughuddrop;
|
||||
extern consvar_t cv_kartdebugcheckpoint, cv_kartdebugnodes, cv_kartdebugcolorize;
|
||||
|
||||
extern consvar_t cv_itemfinder;
|
||||
|
|
|
|||
20
src/k_kart.c
20
src/k_kart.c
|
|
@ -582,7 +582,6 @@ void K_RegisterKartStuff(void)
|
|||
CV_RegisterVar(&cv_kartusepwrlv);
|
||||
CV_RegisterVar(&cv_votetime);
|
||||
|
||||
CV_RegisterVar(&cv_kartdebugitem);
|
||||
CV_RegisterVar(&cv_kartdebugamount);
|
||||
CV_RegisterVar(&cv_kartdebugshrink);
|
||||
CV_RegisterVar(&cv_kartallowgiveitem);
|
||||
|
|
@ -1121,21 +1120,6 @@ static void K_KartItemRoulette(player_t *player, ticcmd_t *cmd)
|
|||
}
|
||||
|
||||
// SPECIAL CASE No. 2:
|
||||
// Give a debug item instead if specified
|
||||
if (cv_kartdebugitem.value != 0 && !modeattacking)
|
||||
{
|
||||
K_KartGetItemResult(player, cv_kartdebugitem.value);
|
||||
player->kartstuff[k_itemamount] = cv_kartdebugamount.value;
|
||||
player->karthud[khud_itemblink] = TICRATE;
|
||||
player->karthud[khud_itemblinkmode] = 2;
|
||||
player->kartstuff[k_itemroulette] = 0;
|
||||
player->kartstuff[k_roulettetype] = 0;
|
||||
if (P_IsDisplayPlayer(player))
|
||||
S_StartSound(NULL, sfx_dbgsal);
|
||||
return;
|
||||
}
|
||||
|
||||
// SPECIAL CASE No. 3:
|
||||
// Record Attack / alone mashing behavior
|
||||
if (modeattacking || pingame == 1)
|
||||
{
|
||||
|
|
@ -1186,7 +1170,7 @@ static void K_KartItemRoulette(player_t *player, ticcmd_t *cmd)
|
|||
return;
|
||||
}
|
||||
|
||||
// SPECIAL CASE No. 4:
|
||||
// SPECIAL CASE No. 3:
|
||||
// Being in ring debt occasionally forces Super Ring on you if you mashed
|
||||
if (mashed && player->kartstuff[k_rings] < 0 && cv_superring.value)
|
||||
{
|
||||
|
|
@ -1204,7 +1188,7 @@ static void K_KartItemRoulette(player_t *player, ticcmd_t *cmd)
|
|||
}
|
||||
}
|
||||
|
||||
// SPECIAL CASE No. 5:
|
||||
// SPECIAL CASE No. 4:
|
||||
// Force SPB onto 2nd if they get too far behind
|
||||
if (player->kartstuff[k_position] == 2 && pdis > (DISTVAR*6)
|
||||
&& spbplace == -1 && !indirectitemcooldown && !dontforcespb
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue