mirror of
https://github.com/DrBeef/Raze.git
synced 2025-01-19 07:31:03 +00:00
- Duke3d: smooth movement of recons.
This commit is contained in:
parent
1389413ca1
commit
55408e6e3c
1 changed files with 5 additions and 3 deletions
|
@ -1781,9 +1781,11 @@ void recon(DDukeActor *actor, int explosion, int firelaser, int attacksnd, int p
|
|||
actor->temp_data[3] = getincangle(actor->spr.ang, a);
|
||||
actor->spr.ang += actor->temp_data[3] >> 3;
|
||||
|
||||
if (actor->spr.pos.Z < Owner->spr.pos.Z)
|
||||
actor->spr.pos.Z += 1024;
|
||||
else actor->spr.pos.Z -= 1024;
|
||||
if (actor->spr.pos.Z < Owner->spr.pos.Z - 512)
|
||||
actor->spr.pos.Z += 512;
|
||||
else if (actor->spr.pos.Z > Owner->spr.pos.Z + 512)
|
||||
actor->spr.pos.Z -= 512;
|
||||
else actor->spr.pos.Z = Owner->spr.pos.Z;
|
||||
}
|
||||
|
||||
if (roamsnd >= 0 && S_CheckActorSoundPlaying(actor, roamsnd) < 1)
|
||||
|
|
Loading…
Reference in a new issue