mirror of
https://github.com/DrBeef/Raze.git
synced 2025-03-02 23:32:01 +00:00
- eliminated all of add_int_zvel.
This commit is contained in:
parent
65b6b5ba71
commit
1814274124
4 changed files with 3 additions and 8 deletions
|
@ -122,11 +122,6 @@ public:
|
||||||
vel.Z = v * zinttoworld;
|
vel.Z = v * zinttoworld;
|
||||||
}
|
}
|
||||||
|
|
||||||
void add_int_zvel(int v)
|
|
||||||
{
|
|
||||||
vel.Z += v * zinttoworld;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Note: Both Duke and SW use Q12.4 for this, Exhumed doesn't seem to treat horizontal velocity with a fixed factor.
|
// Note: Both Duke and SW use Q12.4 for this, Exhumed doesn't seem to treat horizontal velocity with a fixed factor.
|
||||||
int int_xvel() const
|
int int_xvel() const
|
||||||
{
|
{
|
||||||
|
|
|
@ -3507,7 +3507,7 @@ void move_d(DDukeActor *actor, int playernum, int xvel)
|
||||||
if ((a & jumptoplayer) == jumptoplayer)
|
if ((a & jumptoplayer) == jumptoplayer)
|
||||||
{
|
{
|
||||||
if (actor->temp_data[0] < 16)
|
if (actor->temp_data[0] < 16)
|
||||||
actor->add_int_zvel(- bcos(actor->temp_data[0] << 4, -5));
|
actor->vel.Z += BobVal(512 + (actor->temp_data[0] << 4)) * 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (a & face_player_smart)
|
if (a & face_player_smart)
|
||||||
|
|
|
@ -805,7 +805,7 @@ static void shootrpg(DDukeActor *actor, int p, int sx, int sy, int sz, int sa, i
|
||||||
{
|
{
|
||||||
spawned->spr.extra >>= 2;
|
spawned->spr.extra >>= 2;
|
||||||
spawned->add_int_ang(16 - (krand() & 31));
|
spawned->add_int_ang(16 - (krand() & 31));
|
||||||
spawned->add_int_zvel( 256 - (krand() & 511));
|
spawned->vel.Z += 1 - krandf(2);
|
||||||
|
|
||||||
if (ps[p].hbomb_hold_delay)
|
if (ps[p].hbomb_hold_delay)
|
||||||
{
|
{
|
||||||
|
|
|
@ -716,7 +716,7 @@ static void shootrpg(DDukeActor* actor, int p, int sx, int sy, int sz, int sa, i
|
||||||
{
|
{
|
||||||
spawned->spr.extra >>= 2;
|
spawned->spr.extra >>= 2;
|
||||||
spawned->add_int_ang(16 - (krand() & 31));
|
spawned->add_int_ang(16 - (krand() & 31));
|
||||||
spawned->add_int_zvel( 256 - (krand() & 511));
|
spawned->vel.Z += 1 - krandf(2);
|
||||||
|
|
||||||
if (ps[p].hbomb_hold_delay)
|
if (ps[p].hbomb_hold_delay)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue