mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'teamplay-monitor-items' into 'master'
Teamplay: Allow allies to pick up monitor paperitems Closes ring-racers#217 See merge request kart-krew-dev/ring-racers-internal!2893
This commit is contained in:
commit
b7f8afd5ef
1 changed files with 9 additions and 2 deletions
|
|
@ -408,8 +408,15 @@ void P_TouchSpecialThing(mobj_t *special, mobj_t *toucher, boolean heightcheck)
|
|||
case MT_FLOATINGITEM: // SRB2Kart
|
||||
if (special->extravalue1 > 0 && toucher != special->tracer)
|
||||
{
|
||||
player->pflags |= PF_CASTSHADOW;
|
||||
return;
|
||||
if (special->tracer && !P_MobjWasRemoved(special->tracer) && special->tracer->player)
|
||||
{
|
||||
if (!G_SameTeam(special->tracer->player, player))
|
||||
{
|
||||
player->pflags |= PF_CASTSHADOW;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (special->threshold >= FIRSTPOWERUP)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue