mirror of
https://github.com/DrBeef/Raze.git
synced 2025-04-04 23:12:58 +00:00
- int_vel stuff with constants.
This commit is contained in:
parent
901728d88f
commit
4cb214f3ab
6 changed files with 13 additions and 13 deletions
|
@ -618,7 +618,7 @@ void playerisdead(int snum, int psectlotag, int fz, int cz)
|
|||
else
|
||||
{
|
||||
actor->spr.pos.Z -= 2;
|
||||
actor->set_int_zvel(-348);
|
||||
actor->vel.Z = -348 / 256.;
|
||||
}
|
||||
|
||||
Collision coll;
|
||||
|
|
|
@ -743,7 +743,7 @@ static void shootrpg(DDukeActor *actor, int p, int sx, int sy, int sz, int sa, i
|
|||
spawned->spr.yint = gs.numfreezebounces;
|
||||
spawned->spr.xrepeat >>= 1;
|
||||
spawned->spr.yrepeat >>= 1;
|
||||
spawned->add_int_zvel(- (2 << 4));
|
||||
spawned->vel.Z -= 0.25;
|
||||
}
|
||||
|
||||
if (p == -1)
|
||||
|
@ -2387,7 +2387,7 @@ static void operateweapon(int snum, ESyncBits actions)
|
|||
if (j)
|
||||
{
|
||||
j->spr.angle += DAngle180;
|
||||
j->add_int_xvel( 32);
|
||||
j->vel.X += 2.;
|
||||
j->spr.pos.Z += 3;
|
||||
ssp(j, CLIPMASK0);
|
||||
}
|
||||
|
|
|
@ -677,7 +677,7 @@ static void shootrpg(DDukeActor* actor, int p, int sx, int sy, int sz, int sa, i
|
|||
if (atwith == RRTILE1790)
|
||||
{
|
||||
spawned->spr.extra = 10;
|
||||
spawned->set_int_zvel(-(10 << 8));
|
||||
spawned->vel.Z = -10;
|
||||
}
|
||||
else if (atwith == RPG2)
|
||||
{
|
||||
|
@ -695,7 +695,7 @@ static void shootrpg(DDukeActor* actor, int p, int sx, int sy, int sz, int sa, i
|
|||
spawned->spr.yint = gs.numfreezebounces;
|
||||
spawned->spr.xrepeat >>= 1;
|
||||
spawned->spr.yrepeat >>= 1;
|
||||
spawned->add_int_zvel(- (2 << 4));
|
||||
spawned->vel.Z -= 0.125;
|
||||
}
|
||||
|
||||
if (p == -1)
|
||||
|
@ -2978,7 +2978,7 @@ static void operateweapon(int snum, ESyncBits actions, sectortype* psectp)
|
|||
{
|
||||
|
||||
j->set_int_ang((j->int_ang() + 1024) & 2047);
|
||||
j->add_int_xvel( 32);
|
||||
j->vel.X += 2.;
|
||||
j->spr.pos.Z += 3;
|
||||
ssp(j, CLIPMASK0);
|
||||
}
|
||||
|
|
|
@ -126,7 +126,7 @@ void DoSpawn(player_struct *p, int snum)
|
|||
{
|
||||
// like chaingun shells
|
||||
j->set_int_ang((j->int_ang() + 1024) & 2047);
|
||||
j->add_int_xvel( 32);
|
||||
j->vel.X += 2.;
|
||||
j->spr.pos.Z += 3;
|
||||
ssp(j,CLIPMASK0);
|
||||
}
|
||||
|
|
|
@ -517,8 +517,8 @@ DDukeActor* spawninit_d(DDukeActor* actj, DDukeActor* act, TArray<DDukeActor*>*
|
|||
case HELECOPT:
|
||||
act->spr.cstat = 0;
|
||||
act->spr.extra = 1;
|
||||
act->set_int_xvel(292);
|
||||
act->set_int_zvel(360);
|
||||
act->vel.X = 292 / 16.;
|
||||
act->vel.Z = 360 / 256.;
|
||||
[[fallthrough]];
|
||||
case RESPAWNMARKERRED:
|
||||
case BLIMP:
|
||||
|
@ -1000,7 +1000,7 @@ DDukeActor* spawninit_d(DDukeActor* actj, DDukeActor* act, TArray<DDukeActor*>*
|
|||
{
|
||||
act->spr.lotag = 0;
|
||||
act->spr.pos.Z -= 32;
|
||||
act->set_int_zvel(-1024);
|
||||
act->vel.Z = -4;
|
||||
ssp(act, CLIPMASK0);
|
||||
if (krand() & 4) act->spr.cstat |= CSTAT_SPRITE_XFLIP;
|
||||
}
|
||||
|
|
|
@ -547,8 +547,8 @@ DDukeActor* spawninit_r(DDukeActor* actj, DDukeActor* act, TArray<DDukeActor*>*
|
|||
}
|
||||
act->spr.cstat = 0;
|
||||
act->spr.extra = 1;
|
||||
act->set_int_xvel(292);
|
||||
act->set_int_zvel(360);
|
||||
act->vel.X = 292 / 16.;
|
||||
act->vel.Z = 360 / 256.;
|
||||
[[fallthrough]];
|
||||
case RESPAWNMARKERRED:
|
||||
if (act->spr.picnum == RESPAWNMARKERRED)
|
||||
|
@ -1156,7 +1156,7 @@ DDukeActor* spawninit_r(DDukeActor* actj, DDukeActor* act, TArray<DDukeActor*>*
|
|||
if (act->spr.picnum != BOWLINGBALLSPRITE)
|
||||
{
|
||||
act->spr.pos.Z -= 32;
|
||||
act->set_int_zvel(-(4 << 8));
|
||||
act->vel.Z = -4;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue