mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-18 14:41:55 +00:00
- use MultScale
This commit is contained in:
parent
e749a0e9a4
commit
fb164450a7
6 changed files with 9 additions and 18 deletions
|
@ -9190,8 +9190,7 @@ void callbackUniMissileBurst(DBloodActor* actor, sectortype*) // 22
|
|||
burstactor->clipdist = actor->clipdist * 0.25;
|
||||
burstactor->spr.flags = actor->spr.flags;
|
||||
burstactor->spr.CopyScale(&actor->spr);
|
||||
burstactor->spr.MultScaleX(0.5);
|
||||
burstactor->spr.MultScaleY(0.5);
|
||||
burstactor->spr.MultScale(0.5);
|
||||
|
||||
burstactor->spr.angle = actor->spr.angle + mapangle(missileInfo[actor->spr.type - kMissileBase].angleOfs);
|
||||
burstactor->SetOwner(actor);
|
||||
|
|
|
@ -2418,8 +2418,7 @@ void glasspieces(DDukeActor* actor)
|
|||
if (sectp->lotag == 2)
|
||||
actor->vel.Z *= 0.5;
|
||||
|
||||
actor->spr.MultScaleX(0.5);
|
||||
actor->spr.MultScaleY(0.5);
|
||||
actor->spr.MultScale(0.5);
|
||||
if (rnd(96))
|
||||
SetActor(actor, actor->spr.pos);
|
||||
actor->temp_data[0]++;//Number of bounces
|
||||
|
|
|
@ -1848,14 +1848,12 @@ static void rrra_specialstats()
|
|||
case MAMA:
|
||||
if (enemysizecheat == 3)
|
||||
{
|
||||
act->spr.MultScaleX(2);
|
||||
act->spr.MultScaleY(2);
|
||||
act->spr.MultScale(2);
|
||||
act->setClipDistFromTile();
|
||||
}
|
||||
else if (enemysizecheat == 2)
|
||||
{
|
||||
act->spr.MultScaleX(0.5);
|
||||
act->spr.MultScaleY(0.5);
|
||||
act->spr.MultScale(0.5);
|
||||
act->clipdist = MulScale(act->spr.xrepeat, tileHeight(act->spr.picnum), 7) * 0.25;
|
||||
}
|
||||
break;
|
||||
|
|
|
@ -760,8 +760,7 @@ static void shootrpg(DDukeActor *actor, int p, DVector3 pos, DAngle ang, int atw
|
|||
else
|
||||
{
|
||||
spawned->spr.yint = gs.numfreezebounces;
|
||||
spawned->spr.MultScaleX(0.5);
|
||||
spawned->spr.MultScaleY(0.5);
|
||||
spawned->spr.MultScale(0.5);
|
||||
spawned->vel.Z -= 0.25;
|
||||
}
|
||||
|
||||
|
@ -829,8 +828,7 @@ static void shootrpg(DDukeActor *actor, int p, DVector3 pos, DAngle ang, int atw
|
|||
DVector2 spawnofs(ang.Sin()* 4, ang.Cos() * -4);
|
||||
spawned->spr.pos += spawnofs;
|
||||
}
|
||||
spawned->spr.MultScaleX(0.5);
|
||||
spawned->spr.MultScaleY(0.5);
|
||||
spawned->spr.MultScale(0.5);
|
||||
}
|
||||
|
||||
spawned->spr.cstat = CSTAT_SPRITE_YCENTER;
|
||||
|
|
|
@ -692,8 +692,7 @@ static void shootrpg(DDukeActor* actor, int p, DVector3 pos, DAngle ang, int atw
|
|||
else
|
||||
{
|
||||
spawned->spr.yint = gs.numfreezebounces;
|
||||
spawned->spr.MultScaleX(0.5);
|
||||
spawned->spr.MultScaleY(0.5);
|
||||
spawned->spr.MultScale(0.5);
|
||||
spawned->vel.Z -= 0.125;
|
||||
}
|
||||
|
||||
|
@ -726,8 +725,7 @@ static void shootrpg(DDukeActor* actor, int p, DVector3 pos, DAngle ang, int atw
|
|||
DVector2 spawnofs(ang.Sin() * 4, ang.Cos() * -4);
|
||||
spawned->spr.pos += spawnofs;
|
||||
}
|
||||
spawned->spr.MultScaleX(0.5);
|
||||
spawned->spr.MultScaleY(0.5);
|
||||
spawned->spr.MultScale(0.5);
|
||||
}
|
||||
|
||||
spawned->spr.cstat = CSTAT_SPRITE_YCENTER;
|
||||
|
|
|
@ -253,8 +253,7 @@ DDukeActor* spawninit_r(DDukeActor* actj, DDukeActor* act, TArray<DDukeActor*>*
|
|||
rrra_badguy:
|
||||
if (act->spr.picnum == JIBS6)
|
||||
{
|
||||
act->spr.MultScaleX(0.5);
|
||||
act->spr.MultScaleY(0.5);
|
||||
act->spr.MultScale(0.5);
|
||||
}
|
||||
else if (isRRRA())
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue