mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Ring Box items aren't real items
This commit is contained in:
parent
28a65043f9
commit
a18f84255b
3 changed files with 21 additions and 1 deletions
18
src/k_kart.c
18
src/k_kart.c
|
|
@ -6595,7 +6595,7 @@ void K_DropItems(player_t *player)
|
|||
{
|
||||
K_DropHnextList(player);
|
||||
|
||||
if (player->mo && !P_MobjWasRemoved(player->mo) && player->itemamount > 0)
|
||||
if (player->mo && !P_MobjWasRemoved(player->mo) && player->itemamount > 0 && !K_IsRingBoxItem(player->itemtype))
|
||||
{
|
||||
mobj_t *drop = K_CreatePaperItem(
|
||||
player->mo->x, player->mo->y, player->mo->z + player->mo->height/2,
|
||||
|
|
@ -12135,4 +12135,20 @@ boolean K_Cooperative(void)
|
|||
return false;
|
||||
}
|
||||
|
||||
boolean K_IsRingBoxItem(SINT8 itemtype)
|
||||
{
|
||||
switch (itemtype)
|
||||
{
|
||||
case KITEM_BAR:
|
||||
case KITEM_DOUBLEBAR:
|
||||
case KITEM_TRIPLEBAR:
|
||||
case KITEM_SLOTRING:
|
||||
case KITEM_SEVEN:
|
||||
case KITEM_JACKPOT:
|
||||
return true;
|
||||
default:
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
//}
|
||||
|
|
|
|||
|
|
@ -220,6 +220,7 @@ tic_t K_TimeLimitForGametype(void);
|
|||
UINT32 K_PointLimitForGametype(void);
|
||||
|
||||
boolean K_Cooperative(void);
|
||||
boolean K_IsRingBoxItem(SINT8 itemtype);
|
||||
|
||||
#ifdef __cplusplus
|
||||
} // extern "C"
|
||||
|
|
|
|||
|
|
@ -446,6 +446,9 @@ hyudoro_patrol_hit_player
|
|||
if (!player->itemamount)
|
||||
return false;
|
||||
|
||||
if (K_IsRingBoxItem(player->itemtype))
|
||||
return false;
|
||||
|
||||
K_AddHitLag(toucher, TICRATE/2, false);
|
||||
|
||||
hyudoro_mode(hyu) = HYU_RETURN;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue