mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
2 more tweaks
- Ring pickup is disabled while SPB is locked onto you (HUD animation to signify this is not implemented yet) - Ring afterimages only spawn while in the air, to reduce lag
This commit is contained in:
parent
5228f85fee
commit
583b3bb4a7
3 changed files with 7 additions and 2 deletions
|
|
@ -863,7 +863,7 @@ static INT32 K_KartGetItemOdds(UINT8 pos, SINT8 item, fixed_t mashed, boolean sp
|
|||
POWERITEMODDS(newodds);
|
||||
break;
|
||||
case KITEM_THUNDERSHIELD:
|
||||
if (thunderisout)
|
||||
if (thunderisout || spbplace != -1)
|
||||
newodds = 0;
|
||||
else
|
||||
POWERITEMODDS(newodds);
|
||||
|
|
|
|||
|
|
@ -3670,7 +3670,8 @@ void A_AttractChase(mobj_t *actor)
|
|||
actor->momy = FixedMul(FixedDiv(actor->momy, oldspeed), newspeed);
|
||||
}
|
||||
|
||||
P_SpawnGhostMobj(actor)->tics = 3;
|
||||
if (!P_IsObjectOnGround(actor))
|
||||
P_SpawnGhostMobj(actor)->tics = 3;
|
||||
}
|
||||
|
||||
if (actor->tracer && actor->tracer->player && actor->tracer->health
|
||||
|
|
|
|||
|
|
@ -690,6 +690,10 @@ void P_TouchSpecialThing(mobj_t *special, mobj_t *toucher, boolean heightcheck)
|
|||
if (special->extravalue1)
|
||||
return;
|
||||
|
||||
// No picking up rings while SPB is targetting you
|
||||
if (player->kartstuff[k_position] == spbplace)
|
||||
return;
|
||||
|
||||
// Don't immediately pick up spilled rings
|
||||
if (special->threshold > 0
|
||||
|| player->kartstuff[k_squishedtimer]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue