mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-03-26 21:01:19 +00:00
Time over cam & signposts support mobjscale
This commit is contained in:
parent
20d86f01c7
commit
cc5d248c90
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
|
||||
if (!mobj->extravalue1)
|
||||
{
|
||||
fixed_t mx = P_ReturnThrustX(NULL, mobj->angle, 32<<FRACBITS);
|
||||
fixed_t my = P_ReturnThrustY(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*mobj->scale);
|
||||
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);
|
||||
|
|
|
@ -3219,7 +3219,7 @@ void P_SetupSignExit(player_t *player)
|
|||
|
||||
// SRB2Kart: Set sign spinning variables
|
||||
thing->movefactor = thing->z;
|
||||
thing->z += (768<<FRACBITS) * P_MobjFlip(thing);
|
||||
thing->z += (768*thing->scale) * P_MobjFlip(thing);
|
||||
thing->movecount = 1;
|
||||
|
||||
++numfound;
|
||||
|
@ -3247,7 +3247,7 @@ void P_SetupSignExit(player_t *player)
|
|||
|
||||
// SRB2Kart: Set sign spinning variables
|
||||
thing->movefactor = thing->z;
|
||||
thing->z += (768<<FRACBITS) * P_MobjFlip(thing);
|
||||
thing->z += (768*thing->scale) * P_MobjFlip(thing);
|
||||
thing->movecount = 1;
|
||||
|
||||
++numfound;
|
||||
|
@ -3259,7 +3259,7 @@ void P_SetupSignExit(player_t *player)
|
|||
// SRB2Kart: FINALLY, add in an alternative if no place is found
|
||||
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_SetMobjState(sign, S_SIGN1);
|
||||
|
|
|
@ -8606,8 +8606,8 @@ boolean P_MoveChaseCamera(player_t *player, camera_t *thiscam, boolean resetcall
|
|||
|
||||
if (timeover == 1)
|
||||
{
|
||||
thiscam->momx = P_ReturnThrustX(NULL, mo->angle, 32<<FRACBITS); // Push forward
|
||||
thiscam->momy = P_ReturnThrustY(NULL, mo->angle, 32<<FRACBITS);
|
||||
thiscam->momx = P_ReturnThrustX(NULL, mo->angle, 32*mo->scale); // Push forward
|
||||
thiscam->momy = P_ReturnThrustY(NULL, mo->angle, 32*mo->scale);
|
||||
thiscam->momz = 0;
|
||||
}
|
||||
else if (player->exiting || timeover == 2)
|
||||
|
|
Loading…
Reference in a new issue