- Fixed: Floor and ceiling huggers' velocity was wrong when used with
P_SpawnPlayerMissile. - Fixed: When hitting a voodoo doll the real player needs to be checked for invulnerability. SVN r1885 (trunk)
This commit is contained in:
parent
c628ac48cd
commit
f2c77c5f08
3 changed files with 15 additions and 9 deletions
|
|
@ -5177,16 +5177,16 @@ AActor *P_SpawnPlayerMissile (AActor *source, fixed_t x, fixed_t y, fixed_t z,
|
|||
vz = -finesine[pitch>>ANGLETOFINESHIFT];
|
||||
speed = MissileActor->Speed;
|
||||
|
||||
MissileActor->velx = FixedMul (vx, speed);
|
||||
MissileActor->vely = FixedMul (vy, speed);
|
||||
FVector3 vec(vx, vy, vz);
|
||||
|
||||
if (MissileActor->flags3 & (MF3_FLOORHUGGER|MF3_CEILINGHUGGER))
|
||||
{
|
||||
MissileActor->velz = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
MissileActor->velz = FixedMul (vz, speed);
|
||||
vec.Z = 0;
|
||||
}
|
||||
vec.Resize(speed);
|
||||
MissileActor->velx = (fixed_t)vec.X;
|
||||
MissileActor->vely = (fixed_t)vec.Y;
|
||||
MissileActor->velz = (fixed_t)vec.Z;
|
||||
|
||||
if (MissileActor->flags4 & MF4_SPECTRAL)
|
||||
MissileActor->health = -1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue