mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-18 23:41:48 +00:00
Scale explosions properly
This commit is contained in:
parent
c5e30aa018
commit
d51e4c3140
1 changed files with 4 additions and 0 deletions
|
@ -2168,6 +2168,7 @@ void K_SpawnMineExplosion(mobj_t *source, UINT8 color)
|
|||
dust->angle = (ANGLE_180/16) * i;
|
||||
P_SetScale(dust, source->scale);
|
||||
dust->destscale = source->scale*10;
|
||||
dust->scalespeed = FixedMul(dust->scalespeed, source->scale);
|
||||
P_InstaThrust(dust, dust->angle, FixedMul(20*FRACUNIT, source->scale));
|
||||
|
||||
truc = P_SpawnMobj(source->x + P_RandomRange(-radius, radius)*FRACUNIT,
|
||||
|
@ -2175,6 +2176,7 @@ void K_SpawnMineExplosion(mobj_t *source, UINT8 color)
|
|||
source->z + P_RandomRange(0, height)*FRACUNIT, MT_BOOMEXPLODE);
|
||||
P_SetScale(truc, source->scale);
|
||||
truc->destscale = source->scale*6;
|
||||
truc->scalespeed = FixedMul(truc->scalespeed, source->scale);
|
||||
speed = FixedMul(10*FRACUNIT, source->scale)>>FRACBITS;
|
||||
truc->momx = P_RandomRange(-speed, speed)*FRACUNIT;
|
||||
truc->momy = P_RandomRange(-speed, speed)*FRACUNIT;
|
||||
|
@ -2190,6 +2192,7 @@ void K_SpawnMineExplosion(mobj_t *source, UINT8 color)
|
|||
source->z + P_RandomRange(0, height)*FRACUNIT, MT_SMOKE);
|
||||
P_SetScale(dust, source->scale);
|
||||
dust->destscale = source->scale*10;
|
||||
dust->scalespeed = FixedMul(dust->scalespeed, source->scale);
|
||||
dust->tics = 30;
|
||||
dust->momz = P_RandomRange(FixedMul(3*FRACUNIT, source->scale)>>FRACBITS, FixedMul(7*FRACUNIT, source->scale)>>FRACBITS)*FRACUNIT;
|
||||
|
||||
|
@ -2198,6 +2201,7 @@ void K_SpawnMineExplosion(mobj_t *source, UINT8 color)
|
|||
source->z + P_RandomRange(0, height)*FRACUNIT, MT_BOOMPARTICLE);
|
||||
P_SetScale(truc, source->scale);
|
||||
truc->destscale = source->scale*5;
|
||||
truc->scalespeed = FixedMul(truc->scalespeed, source->scale);
|
||||
speed = FixedMul(20*FRACUNIT, source->scale)>>FRACBITS;
|
||||
truc->momx = P_RandomRange(-speed, speed)*FRACUNIT;
|
||||
truc->momy = P_RandomRange(-speed, speed)*FRACUNIT;
|
||||
|
|
Loading…
Reference in a new issue