mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 04:21:47 +00:00
Scale end sign 1.5x
This commit is contained in:
parent
4993d2ce39
commit
d6ea8549d2
1 changed files with 6 additions and 5 deletions
11
src/p_spec.c
11
src/p_spec.c
|
|
@ -3961,6 +3961,7 @@ static void P_SetupSignObject(mobj_t *sign, mobj_t *pmo, boolean error)
|
||||||
mobj_t *cur = sign, *prev = NULL;
|
mobj_t *cur = sign, *prev = NULL;
|
||||||
|
|
||||||
// Setup the sign itself
|
// Setup the sign itself
|
||||||
|
P_SetScale(sign, (sign->destscale = 3 * sign->scale / 2)); // 1.5x
|
||||||
P_SetTarget(&sign->target, pmo);
|
P_SetTarget(&sign->target, pmo);
|
||||||
P_SetMobjState(sign, S_SIGN_POLE);
|
P_SetMobjState(sign, S_SIGN_POLE);
|
||||||
|
|
||||||
|
|
@ -3971,7 +3972,7 @@ static void P_SetupSignObject(mobj_t *sign, mobj_t *pmo, boolean error)
|
||||||
|
|
||||||
// Setup the overlay pieces
|
// Setup the overlay pieces
|
||||||
// Front
|
// Front
|
||||||
cur->hnext = P_SpawnMobj(sign->x, sign->y, sign->z, MT_SIGN_PIECE);
|
cur->hnext = P_SpawnMobjFromMobj(sign, 0, 0, 0, MT_SIGN_PIECE);
|
||||||
P_SetTarget(&cur->hnext->target, sign);
|
P_SetTarget(&cur->hnext->target, sign);
|
||||||
P_SetMobjState(cur->hnext, S_SIGN_FACE);
|
P_SetMobjState(cur->hnext, S_SIGN_FACE);
|
||||||
cur->hnext->extravalue1 = 6;
|
cur->hnext->extravalue1 = 6;
|
||||||
|
|
@ -3982,7 +3983,7 @@ static void P_SetupSignObject(mobj_t *sign, mobj_t *pmo, boolean error)
|
||||||
cur->hprev = prev;
|
cur->hprev = prev;
|
||||||
|
|
||||||
// Player icon
|
// Player icon
|
||||||
cur->hnext = P_SpawnMobj(sign->x, sign->y, sign->z, MT_SIGN_PIECE);
|
cur->hnext = P_SpawnMobjFromMobj(sign, 0, 0, 0, MT_SIGN_PIECE);
|
||||||
P_SetTarget(&cur->hnext->target, sign);
|
P_SetTarget(&cur->hnext->target, sign);
|
||||||
cur->hnext->skin = pmo->skin;
|
cur->hnext->skin = pmo->skin;
|
||||||
P_SetMobjState(cur->hnext, (error == true) ? S_SIGN_ERROR : S_KART_SIGN);
|
P_SetMobjState(cur->hnext, (error == true) ? S_SIGN_ERROR : S_KART_SIGN);
|
||||||
|
|
@ -3994,7 +3995,7 @@ static void P_SetupSignObject(mobj_t *sign, mobj_t *pmo, boolean error)
|
||||||
cur->hprev = prev;
|
cur->hprev = prev;
|
||||||
|
|
||||||
// Back
|
// Back
|
||||||
cur->hnext = P_SpawnMobj(sign->x, sign->y, sign->z, MT_SIGN_PIECE);
|
cur->hnext = P_SpawnMobjFromMobj(sign, 0, 0, 0, MT_SIGN_PIECE);
|
||||||
P_SetTarget(&cur->hnext->target, sign);
|
P_SetTarget(&cur->hnext->target, sign);
|
||||||
P_SetMobjState(cur->hnext, S_SIGN_BACK);
|
P_SetMobjState(cur->hnext, S_SIGN_BACK);
|
||||||
cur->hnext->extravalue1 = 6;
|
cur->hnext->extravalue1 = 6;
|
||||||
|
|
@ -4005,7 +4006,7 @@ static void P_SetupSignObject(mobj_t *sign, mobj_t *pmo, boolean error)
|
||||||
cur->hprev = prev;
|
cur->hprev = prev;
|
||||||
|
|
||||||
// Sides
|
// Sides
|
||||||
cur->hnext = P_SpawnMobj(sign->x, sign->y, sign->z, MT_SIGN_PIECE);
|
cur->hnext = P_SpawnMobjFromMobj(sign, 0, 0, 0, MT_SIGN_PIECE);
|
||||||
P_SetTarget(&cur->hnext->target, sign);
|
P_SetTarget(&cur->hnext->target, sign);
|
||||||
P_SetMobjState(cur->hnext, S_SIGN_SIDE);
|
P_SetMobjState(cur->hnext, S_SIGN_SIDE);
|
||||||
cur->hnext->extravalue1 = 30;
|
cur->hnext->extravalue1 = 30;
|
||||||
|
|
@ -4015,7 +4016,7 @@ static void P_SetupSignObject(mobj_t *sign, mobj_t *pmo, boolean error)
|
||||||
cur = cur->hnext;
|
cur = cur->hnext;
|
||||||
cur->hprev = prev;
|
cur->hprev = prev;
|
||||||
|
|
||||||
cur->hnext = P_SpawnMobj(sign->x, sign->y, sign->z, MT_SIGN_PIECE);
|
cur->hnext = P_SpawnMobjFromMobj(sign, 0, 0, 0, MT_SIGN_PIECE);
|
||||||
P_SetTarget(&cur->hnext->target, sign);
|
P_SetTarget(&cur->hnext->target, sign);
|
||||||
P_SetMobjState(cur->hnext, S_SIGN_SIDE);
|
P_SetMobjState(cur->hnext, S_SIGN_SIDE);
|
||||||
cur->hnext->extravalue1 = 30;
|
cur->hnext->extravalue1 = 30;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue