mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Time over cam & signposts support mobjscale
This commit is contained in:
parent
f5be6fb910
commit
b08fb14d62
3 changed files with 7 additions and 7 deletions
|
|
@ -8509,8 +8509,8 @@ void P_MobjThinker(mobj_t *mobj)
|
||||||
case MT_FZEROBOOM: // F-Zero explosion
|
case MT_FZEROBOOM: // F-Zero explosion
|
||||||
if (!mobj->extravalue1)
|
if (!mobj->extravalue1)
|
||||||
{
|
{
|
||||||
fixed_t mx = P_ReturnThrustX(NULL, mobj->angle, 32<<FRACBITS);
|
fixed_t mx = P_ReturnThrustX(NULL, mobj->angle, 32*mobj->scale);
|
||||||
fixed_t my = P_ReturnThrustY(NULL, mobj->angle, 32<<FRACBITS);
|
fixed_t my = P_ReturnThrustY(NULL, mobj->angle, 32*mobj->scale);
|
||||||
mobj_t *explosion = P_SpawnMobj(mobj->x + (2*mx), mobj->y + (2*my), mobj->z+(mobj->height/2), MT_THOK);
|
mobj_t *explosion = P_SpawnMobj(mobj->x + (2*mx), mobj->y + (2*my), mobj->z+(mobj->height/2), MT_THOK);
|
||||||
|
|
||||||
P_SetMobjState(explosion, S_FZEROBOOM1);
|
P_SetMobjState(explosion, S_FZEROBOOM1);
|
||||||
|
|
|
||||||
|
|
@ -3219,7 +3219,7 @@ void P_SetupSignExit(player_t *player)
|
||||||
|
|
||||||
// SRB2Kart: Set sign spinning variables
|
// SRB2Kart: Set sign spinning variables
|
||||||
thing->movefactor = thing->z;
|
thing->movefactor = thing->z;
|
||||||
thing->z += (768<<FRACBITS) * P_MobjFlip(thing);
|
thing->z += (768*thing->scale) * P_MobjFlip(thing);
|
||||||
thing->movecount = 1;
|
thing->movecount = 1;
|
||||||
|
|
||||||
++numfound;
|
++numfound;
|
||||||
|
|
@ -3247,7 +3247,7 @@ void P_SetupSignExit(player_t *player)
|
||||||
|
|
||||||
// SRB2Kart: Set sign spinning variables
|
// SRB2Kart: Set sign spinning variables
|
||||||
thing->movefactor = thing->z;
|
thing->movefactor = thing->z;
|
||||||
thing->z += (768<<FRACBITS) * P_MobjFlip(thing);
|
thing->z += (768*thing->scale) * P_MobjFlip(thing);
|
||||||
thing->movecount = 1;
|
thing->movecount = 1;
|
||||||
|
|
||||||
++numfound;
|
++numfound;
|
||||||
|
|
@ -3259,7 +3259,7 @@ void P_SetupSignExit(player_t *player)
|
||||||
// SRB2Kart: FINALLY, add in an alternative if no place is found
|
// SRB2Kart: FINALLY, add in an alternative if no place is found
|
||||||
if (player->mo)
|
if (player->mo)
|
||||||
{
|
{
|
||||||
mobj_t *sign = P_SpawnMobj(player->mo->x, player->mo->y, player->mo->z + (768<<FRACBITS), MT_SIGN);
|
mobj_t *sign = P_SpawnMobj(player->mo->x, player->mo->y, player->mo->z + (768*mapheaderinfo[gamemap-1]->mobj_scale), MT_SIGN);
|
||||||
|
|
||||||
P_SetTarget(&sign->target, player->mo);
|
P_SetTarget(&sign->target, player->mo);
|
||||||
P_SetMobjState(sign, S_SIGN1);
|
P_SetMobjState(sign, S_SIGN1);
|
||||||
|
|
|
||||||
|
|
@ -8606,8 +8606,8 @@ boolean P_MoveChaseCamera(player_t *player, camera_t *thiscam, boolean resetcall
|
||||||
|
|
||||||
if (timeover == 1)
|
if (timeover == 1)
|
||||||
{
|
{
|
||||||
thiscam->momx = P_ReturnThrustX(NULL, mo->angle, 32<<FRACBITS); // Push forward
|
thiscam->momx = P_ReturnThrustX(NULL, mo->angle, 32*mo->scale); // Push forward
|
||||||
thiscam->momy = P_ReturnThrustY(NULL, mo->angle, 32<<FRACBITS);
|
thiscam->momy = P_ReturnThrustY(NULL, mo->angle, 32*mo->scale);
|
||||||
thiscam->momz = 0;
|
thiscam->momz = 0;
|
||||||
}
|
}
|
||||||
else if (player->exiting || timeover == 2)
|
else if (player->exiting || timeover == 2)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue