mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
MT_ITEMCAPSULE: optionally teleport to target, offset by target sprx/y/zoff
This commit is contained in:
parent
b86ade712a
commit
00ea7c62df
1 changed files with 8 additions and 0 deletions
|
|
@ -7291,6 +7291,14 @@ static boolean P_MobjRegularThink(mobj_t *mobj)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case MT_ITEMCAPSULE:
|
case MT_ITEMCAPSULE:
|
||||||
|
if (!P_MobjWasRemoved(mobj->target))
|
||||||
|
{
|
||||||
|
P_MoveOrigin(mobj,
|
||||||
|
mobj->target->x + mobj->target->sprxoff,
|
||||||
|
mobj->target->y + mobj->target->spryoff,
|
||||||
|
mobj->target->z + mobj->target->sprzoff);
|
||||||
|
}
|
||||||
|
|
||||||
// scale the capsule
|
// scale the capsule
|
||||||
if (mobj->scale < mobj->extravalue1)
|
if (mobj->scale < mobj->extravalue1)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue