mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-31 04:20:42 +00:00
- Duke: Replace sprite z pos numeric values with correct enum values for each game.
This commit is contained in:
parent
6cebd7fca2
commit
2176435831
6 changed files with 8 additions and 8 deletions
|
@ -178,7 +178,7 @@ void animatesprites_d(spritetype* tsprite, int& spritesortcnt, int x, int y, int
|
||||||
t->x -= MulScale(MaxSmoothRatio - smoothratio, ps[s->yvel].posx - ps[s->yvel].oposx, 16);
|
t->x -= MulScale(MaxSmoothRatio - smoothratio, ps[s->yvel].posx - ps[s->yvel].oposx, 16);
|
||||||
t->y -= MulScale(MaxSmoothRatio - smoothratio, ps[s->yvel].posy - ps[s->yvel].oposy, 16);
|
t->y -= MulScale(MaxSmoothRatio - smoothratio, ps[s->yvel].posy - ps[s->yvel].oposy, 16);
|
||||||
t->z = interpolatedvalue(ps[s->yvel].oposz, ps[s->yvel].posz, smoothratio);
|
t->z = interpolatedvalue(ps[s->yvel].oposz, ps[s->yvel].posz, smoothratio);
|
||||||
t->z += (40 << 8);
|
t->z += PHEIGHT_DUKE;
|
||||||
}
|
}
|
||||||
else if (s->picnum != CRANEPOLE)
|
else if (s->picnum != CRANEPOLE)
|
||||||
{
|
{
|
||||||
|
@ -330,7 +330,7 @@ void animatesprites_d(spritetype* tsprite, int& spritesortcnt, int x, int y, int
|
||||||
{
|
{
|
||||||
t->x = interpolatedvalue(omyx, myx, smoothratio);
|
t->x = interpolatedvalue(omyx, myx, smoothratio);
|
||||||
t->y = interpolatedvalue(omyy, myy, smoothratio);
|
t->y = interpolatedvalue(omyy, myy, smoothratio);
|
||||||
t->z = interpolatedvalue(omyz, myz, smoothratio) + (40 << 8);
|
t->z = interpolatedvalue(omyz, myz, smoothratio) + PHEIGHT_DUKE;
|
||||||
t->ang = interpolatedangle(omyang, myang, smoothratio).asbuild();
|
t->ang = interpolatedangle(omyang, myang, smoothratio).asbuild();
|
||||||
t->sectnum = mycursectnum;
|
t->sectnum = mycursectnum;
|
||||||
}
|
}
|
||||||
|
|
|
@ -164,7 +164,7 @@ void animatesprites_r(spritetype* tsprite, int& spritesortcnt, int x, int y, int
|
||||||
t->x -= MulScale(MaxSmoothRatio - smoothratio, ps[s->yvel].posx - ps[s->yvel].oposx, 16);
|
t->x -= MulScale(MaxSmoothRatio - smoothratio, ps[s->yvel].posx - ps[s->yvel].oposx, 16);
|
||||||
t->y -= MulScale(MaxSmoothRatio - smoothratio, ps[s->yvel].posy - ps[s->yvel].oposy, 16);
|
t->y -= MulScale(MaxSmoothRatio - smoothratio, ps[s->yvel].posy - ps[s->yvel].oposy, 16);
|
||||||
t->z = interpolatedvalue(ps[s->yvel].oposz, ps[s->yvel].posz, smoothratio);
|
t->z = interpolatedvalue(ps[s->yvel].oposz, ps[s->yvel].posz, smoothratio);
|
||||||
t->z += (40 << 8);
|
t->z += PHEIGHT_RR;
|
||||||
s->xrepeat = 24;
|
s->xrepeat = 24;
|
||||||
s->yrepeat = 17;
|
s->yrepeat = 17;
|
||||||
}
|
}
|
||||||
|
@ -376,7 +376,7 @@ void animatesprites_r(spritetype* tsprite, int& spritesortcnt, int x, int y, int
|
||||||
{
|
{
|
||||||
t->x = interpolatedvalue(omyx, myx, smoothratio);
|
t->x = interpolatedvalue(omyx, myx, smoothratio);
|
||||||
t->y = interpolatedvalue(omyy, myy, smoothratio);
|
t->y = interpolatedvalue(omyy, myy, smoothratio);
|
||||||
t->z = interpolatedvalue(omyz, myz, smoothratio) + (40 << 8);
|
t->z = interpolatedvalue(omyz, myz, smoothratio) + PHEIGHT_RR;
|
||||||
t->ang = interpolatedangle(omyang, myang, smoothratio).asbuild();
|
t->ang = interpolatedangle(omyang, myang, smoothratio).asbuild();
|
||||||
t->sectnum = mycursectnum;
|
t->sectnum = mycursectnum;
|
||||||
}
|
}
|
||||||
|
|
|
@ -174,7 +174,7 @@ int hits(DDukeActor* actor)
|
||||||
int zoff;
|
int zoff;
|
||||||
DDukeActor* d;
|
DDukeActor* d;
|
||||||
|
|
||||||
if (sp->picnum == TILE_APLAYER) zoff = (40 << 8);
|
if (sp->picnum == TILE_APLAYER) zoff = isRR() ? PHEIGHT_RR : PHEIGHT_DUKE;
|
||||||
else zoff = 0;
|
else zoff = 0;
|
||||||
|
|
||||||
hitscan(sp->x, sp->y, sp->z - zoff, sp->sectnum, bcos(sp->ang), bsin(sp->ang), 0, §, &hw, &d, &sx, &sy, &sz, CLIPMASK1);
|
hitscan(sp->x, sp->y, sp->z - zoff, sp->sectnum, bcos(sp->ang), bsin(sp->ang), 0, §, &hw, &d, &sx, &sy, &sz, CLIPMASK1);
|
||||||
|
|
|
@ -306,7 +306,7 @@ void spawntransporter(DDukeActor *actj, DDukeActor* acti, bool beam)
|
||||||
{
|
{
|
||||||
sp->xrepeat = 31;
|
sp->xrepeat = 31;
|
||||||
sp->yrepeat = 1;
|
sp->yrepeat = 1;
|
||||||
sp->z = sector[spj->sectnum].floorz - (40 << 8);
|
sp->z = sector[spj->sectnum].floorz - isRR() ? PHEIGHT_RR : PHEIGHT_DUKE;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -210,7 +210,7 @@ int spawn_d(int j, int pn)
|
||||||
case TONGUE:
|
case TONGUE:
|
||||||
if(j >= 0)
|
if(j >= 0)
|
||||||
sp->ang = spj->ang;
|
sp->ang = spj->ang;
|
||||||
sp->z -= 38<<8;
|
sp->z -= PHEIGHT_DUKE;
|
||||||
sp->zvel = 256-(krand()&511);
|
sp->zvel = 256-(krand()&511);
|
||||||
sp->xvel = 64-(krand()&127);
|
sp->xvel = 64-(krand()&127);
|
||||||
changespritestat(i,4);
|
changespritestat(i,4);
|
||||||
|
|
|
@ -293,7 +293,7 @@ int spawn_r(int j, int pn)
|
||||||
case TONGUE:
|
case TONGUE:
|
||||||
if(j >= 0)
|
if(j >= 0)
|
||||||
sp->ang = spj->ang;
|
sp->ang = spj->ang;
|
||||||
sp->z -= 38<<8;
|
sp->z -= PHEIGHT_RR;
|
||||||
sp->zvel = 256-(krand()&511);
|
sp->zvel = 256-(krand()&511);
|
||||||
sp->xvel = 64-(krand()&127);
|
sp->xvel = 64-(krand()&127);
|
||||||
changespritestat(i,4);
|
changespritestat(i,4);
|
||||||
|
|
Loading…
Reference in a new issue