mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Green Snapper: Update Z position of legs during movement
This commit is contained in:
parent
1538ca7e86
commit
d0879a61e6
1 changed files with 2 additions and 1 deletions
|
|
@ -13325,8 +13325,8 @@ static void P_SnapperLegPlace(mobj_t *mo)
|
||||||
fixed_t rad = mo->radius;
|
fixed_t rad = mo->radius;
|
||||||
INT32 necklen = (32*(mo->info->reactiontime - mo->reactiontime))/mo->info->reactiontime; // Not in FU
|
INT32 necklen = (32*(mo->info->reactiontime - mo->reactiontime))/mo->info->reactiontime; // Not in FU
|
||||||
|
|
||||||
P_TryMove(seg, mo->x + FixedMul(c, rad) + necklen*c, mo->y + FixedMul(s, rad) + necklen*s, true);
|
|
||||||
seg->z = mo->z + mo->height/3;
|
seg->z = mo->z + mo->height/3;
|
||||||
|
P_TryMove(seg, mo->x + FixedMul(c, rad) + necklen*c, mo->y + FixedMul(s, rad) + necklen*s, true);
|
||||||
seg->angle = a;
|
seg->angle = a;
|
||||||
|
|
||||||
// Move as many legs as available.
|
// Move as many legs as available.
|
||||||
|
|
@ -13346,6 +13346,7 @@ static void P_SnapperLegPlace(mobj_t *mo)
|
||||||
{
|
{
|
||||||
x = c*o2 + s*o1;
|
x = c*o2 + s*o1;
|
||||||
y = s*o2 - c*o1;
|
y = s*o2 - c*o1;
|
||||||
|
seg->z = mo->z;
|
||||||
P_TryMove(seg, x0 + x, y0 + y, true);
|
P_TryMove(seg, x0 + x, y0 + y, true);
|
||||||
P_SetMobjState(seg, seg->info->raisestate);
|
P_SetMobjState(seg, seg->info->raisestate);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue