mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-01 14:11:01 +00:00
- some quick'n easy replacements.
This commit is contained in:
parent
cd70818d54
commit
b5309a6410
2 changed files with 50 additions and 49 deletions
|
@ -196,27 +196,28 @@ static void shootflamethrowerflame(int i, int p, int sx, int sy, int sz, int sa)
|
||||||
sprite[k].xvel = (short)vel;
|
sprite[k].xvel = (short)vel;
|
||||||
sprite[k].zvel = (short)zvel;
|
sprite[k].zvel = (short)zvel;
|
||||||
}
|
}
|
||||||
|
auto spawned = &hittype[k];
|
||||||
|
|
||||||
sprite[k].x = sx + sintable[(sa + 630) & 0x7FF] / 448;
|
spawned->s.x = sx + sintable[(sa + 630) & 0x7FF] / 448;
|
||||||
sprite[k].y = sy + sintable[(sa + 112) & 0x7FF] / 448;
|
spawned->s.y = sy + sintable[(sa + 112) & 0x7FF] / 448;
|
||||||
sprite[k].z = sz - 256;
|
spawned->s.z = sz - 256;
|
||||||
sprite[k].sectnum = s->sectnum;
|
spawned->s.sectnum = s->sectnum;
|
||||||
sprite[k].cstat = 0x80;
|
spawned->s.cstat = 0x80;
|
||||||
sprite[k].ang = sa;
|
spawned->s.ang = sa;
|
||||||
sprite[k].xrepeat = 2;
|
spawned->s.xrepeat = 2;
|
||||||
sprite[k].yrepeat = 2;
|
spawned->s.yrepeat = 2;
|
||||||
sprite[k].clipdist = 40;
|
spawned->s.clipdist = 40;
|
||||||
sprite[k].yvel = p;
|
spawned->s.yvel = p;
|
||||||
sprite[k].owner = (short)i;
|
spawned->s.owner = (short)i;
|
||||||
|
|
||||||
if (p == -1)
|
if (p == -1)
|
||||||
{
|
{
|
||||||
if (sprite[i].picnum == BOSS5)
|
if (sprite[i].picnum == BOSS5)
|
||||||
{
|
{
|
||||||
sprite[k].x -= sintable[sa & 2047] / 56;
|
spawned->s.x -= sintable[sa & 2047] / 56;
|
||||||
sprite[k].y -= sintable[(sa + 1024 + 512) & 2047] / 56;
|
spawned->s.y -= sintable[(sa + 1024 + 512) & 2047] / 56;
|
||||||
sprite[k].xrepeat = 10;
|
spawned->s.xrepeat = 10;
|
||||||
sprite[k].yrepeat = 10;
|
spawned->s.yrepeat = 10;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -725,15 +726,15 @@ static void shootrpg(int i, int p, int sx, int sy, int sz, int sa, int atwith)
|
||||||
l = j;
|
l = j;
|
||||||
else l = -1;
|
else l = -1;
|
||||||
|
|
||||||
j = EGS(sect,
|
auto spawned = EGS(sect,
|
||||||
sx + (sintable[(348 + sa + 512) & 2047] / 448),
|
sx + (sintable[(348 + sa + 512) & 2047] / 448),
|
||||||
sy + (sintable[(sa + 348) & 2047] / 448),
|
sy + (sintable[(sa + 348) & 2047] / 448),
|
||||||
sz - (1 << 8), atwith, 0, 14, 14, sa, vel, zvel, i, 4);
|
sz - (1 << 8), atwith, 0, 14, 14, sa, vel, zvel, &hittype[i], 4);
|
||||||
|
|
||||||
auto spj = &sprite[j];
|
auto spj = &spawned->s;
|
||||||
spj->extra += (krand() & 7);
|
spj->extra += (krand() & 7);
|
||||||
if (atwith != FREEZEBLAST)
|
if (atwith != FREEZEBLAST)
|
||||||
hittype[j].temp_actor = l >= 0? &hittype[l] : nullptr;// sprite[j].yvel = l;
|
spawned->temp_actor = l >= 0? &hittype[l] : nullptr;// spawned->s.yvel = l;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
spj->yvel = numfreezebounces;
|
spj->yvel = numfreezebounces;
|
||||||
|
|
|
@ -680,76 +680,76 @@ static void shootrpg(int i, int p, int sx, int sy, int sz, int sa, int atwith)
|
||||||
vel <<= 1;
|
vel <<= 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
j = EGS(sect,
|
auto spawned = EGS(sect,
|
||||||
sx + (sintable[(348 + sa + 512) & 2047] / 448),
|
sx + (sintable[(348 + sa + 512) & 2047] / 448),
|
||||||
sy + (sintable[(sa + 348) & 2047] / 448),
|
sy + (sintable[(sa + 348) & 2047] / 448),
|
||||||
sz - (1 << 8), atwith, 0, 14, 14, sa, vel, zvel, i, 4);
|
sz - (1 << 8), atwith, 0, 14, 14, sa, vel, zvel, &hittype[i], 4);
|
||||||
|
|
||||||
if (isRRRA())
|
if (isRRRA())
|
||||||
{
|
{
|
||||||
if (atwith == RRTILE1790)
|
if (atwith == RRTILE1790)
|
||||||
{
|
{
|
||||||
sprite[j].extra = 10;
|
spawned->s.extra = 10;
|
||||||
sprite[j].zvel = -(10 << 8);
|
spawned->s.zvel = -(10 << 8);
|
||||||
}
|
}
|
||||||
else if (atwith == RPG2)
|
else if (atwith == RPG2)
|
||||||
{
|
{
|
||||||
sprite[j].lotag = var90;
|
spawned->s.lotag = var90;
|
||||||
sprite[j].hitag = 0;
|
spawned->s.hitag = 0;
|
||||||
fi.lotsofmoney(&hittype[j], (krand() & 3) + 1);
|
fi.lotsofmoney(spawned, (krand() & 3) + 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sprite[j].extra += (krand() & 7);
|
spawned->s.extra += (krand() & 7);
|
||||||
if (atwith != FREEZEBLAST)
|
if (atwith != FREEZEBLAST)
|
||||||
hittype[j].temp_actor = l >= 0? &hittype[l] : nullptr;// sprite[j].yvel = l;
|
spawned->temp_actor = l >= 0? &hittype[l] : nullptr;// spawned->s.yvel = l;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
sprite[j].yvel = numfreezebounces;
|
spawned->s.yvel = numfreezebounces;
|
||||||
sprite[j].xrepeat >>= 1;
|
spawned->s.xrepeat >>= 1;
|
||||||
sprite[j].yrepeat >>= 1;
|
spawned->s.yrepeat >>= 1;
|
||||||
sprite[j].zvel -= (2 << 4);
|
spawned->s.zvel -= (2 << 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (p == -1)
|
if (p == -1)
|
||||||
{
|
{
|
||||||
if (s->picnum == HULK)
|
if (s->picnum == HULK)
|
||||||
{
|
{
|
||||||
sprite[j].xrepeat = 8;
|
spawned->s.xrepeat = 8;
|
||||||
sprite[j].yrepeat = 8;
|
spawned->s.yrepeat = 8;
|
||||||
}
|
}
|
||||||
else if (atwith != FREEZEBLAST)
|
else if (atwith != FREEZEBLAST)
|
||||||
{
|
{
|
||||||
sprite[j].xrepeat = 30;
|
spawned->s.xrepeat = 30;
|
||||||
sprite[j].yrepeat = 30;
|
spawned->s.yrepeat = 30;
|
||||||
sprite[j].extra >>= 2;
|
spawned->s.extra >>= 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (ps[p].curr_weapon == TIT_WEAPON)
|
else if (ps[p].curr_weapon == TIT_WEAPON)
|
||||||
{
|
{
|
||||||
sprite[j].extra >>= 2;
|
spawned->s.extra >>= 2;
|
||||||
sprite[j].ang += 16 - (krand() & 31);
|
spawned->s.ang += 16 - (krand() & 31);
|
||||||
sprite[j].zvel += 256 - (krand() & 511);
|
spawned->s.zvel += 256 - (krand() & 511);
|
||||||
|
|
||||||
if (ps[p].hbomb_hold_delay)
|
if (ps[p].hbomb_hold_delay)
|
||||||
{
|
{
|
||||||
sprite[j].x -= sintable[sa & 2047] / 644;
|
spawned->s.x -= sintable[sa & 2047] / 644;
|
||||||
sprite[j].y -= sintable[(sa + 1024 + 512) & 2047] / 644;
|
spawned->s.y -= sintable[(sa + 1024 + 512) & 2047] / 644;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
sprite[j].x += sintable[sa & 2047] >> 8;
|
spawned->s.x += sintable[sa & 2047] >> 8;
|
||||||
sprite[j].y += sintable[(sa + 1024 + 512) & 2047] >> 8;
|
spawned->s.y += sintable[(sa + 1024 + 512) & 2047] >> 8;
|
||||||
}
|
}
|
||||||
sprite[j].xrepeat >>= 1;
|
spawned->s.xrepeat >>= 1;
|
||||||
sprite[j].yrepeat >>= 1;
|
spawned->s.yrepeat >>= 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
sprite[j].cstat = 128;
|
spawned->s.cstat = 128;
|
||||||
if (atwith == RPG || (atwith == RPG2 && isRRRA()))
|
if (atwith == RPG || (atwith == RPG2 && isRRRA()))
|
||||||
sprite[j].clipdist = 4;
|
spawned->s.clipdist = 4;
|
||||||
else
|
else
|
||||||
sprite[j].clipdist = 40;
|
spawned->s.clipdist = 40;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue