Merge branch 'bubble-amps' into 'master'

Bubble Shield Trap gives amps

See merge request kart-krew-dev/ring-racers-internal!2792
This commit is contained in:
Oni VelocitOni 2025-09-02 01:49:49 +00:00
commit 04b202119d

View file

@ -697,6 +697,11 @@ void P_TouchSpecialThing(mobj_t *special, mobj_t *toucher, boolean heightcheck)
if (K_TryPickMeUp(special, toucher, false))
return;
if (special->target && !P_MobjWasRemoved(special->target) && toucher->player && (toucher->player != (special->target->player))) // Last condition here is so you can't get your own amps
{
K_SpawnAmps(special->target->player, K_PvPAmpReward(20, special->target->player, toucher->player), toucher);
}
// attach to player!
P_SetTarget(&special->tracer, toucher);
toucher->flags |= MF_NOGRAVITY;