mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Scale thrown items with grow/shrink
This commit is contained in:
parent
9a1c013cfc
commit
86edea91d4
1 changed files with 6 additions and 1 deletions
|
|
@ -3135,7 +3135,6 @@ static mobj_t *K_SpawnKartMissile(mobj_t *source, mobjtype_t type, angle_t an, I
|
|||
th = P_SpawnMobj(x, y, z, type);
|
||||
|
||||
th->flags2 |= flags2;
|
||||
|
||||
th->threshold = 10;
|
||||
|
||||
if (th->info->seesound)
|
||||
|
|
@ -3143,6 +3142,9 @@ static mobj_t *K_SpawnKartMissile(mobj_t *source, mobjtype_t type, angle_t an, I
|
|||
|
||||
P_SetTarget(&th->target, source);
|
||||
|
||||
P_SetScale(th, source->scale);
|
||||
th->destscale = source->destscale;
|
||||
|
||||
if (P_IsObjectOnGround(source))
|
||||
{
|
||||
// floorz and ceilingz aren't properly set to account for FOFs and Polyobjects on spawn
|
||||
|
|
@ -3802,6 +3804,9 @@ static mobj_t *K_ThrowKartItem(player_t *player, boolean missile, mobjtype_t map
|
|||
mo->threshold = 10;
|
||||
P_SetTarget(&mo->target, player->mo);
|
||||
|
||||
P_SetScale(mo, player->mo->scale);
|
||||
mo->destscale = player->mo->destscale;
|
||||
|
||||
if (P_IsObjectOnGround(player->mo))
|
||||
{
|
||||
// floorz and ceilingz aren't properly set to account for FOFs and Polyobjects on spawn
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue