mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 12:31:54 +00:00
Bubble Shield Trap gives amps
Bubble Shield trap should give amps now!
This commit is contained in:
parent
c45ee76a2f
commit
8b5cb72b18
1 changed files with 5 additions and 0 deletions
|
|
@ -697,6 +697,11 @@ void P_TouchSpecialThing(mobj_t *special, mobj_t *toucher, boolean heightcheck)
|
||||||
if (K_TryPickMeUp(special, toucher, false))
|
if (K_TryPickMeUp(special, toucher, false))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (special->target && !P_MobjWasRemoved(special->target) && toucher->player)
|
||||||
|
{
|
||||||
|
K_SpawnAmps(special->target->player, K_PvPAmpReward(20, special->target->player, toucher->player), toucher);
|
||||||
|
}
|
||||||
|
|
||||||
// attach to player!
|
// attach to player!
|
||||||
P_SetTarget(&special->tracer, toucher);
|
P_SetTarget(&special->tracer, toucher);
|
||||||
toucher->flags |= MF_NOGRAVITY;
|
toucher->flags |= MF_NOGRAVITY;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue