Added MF9_SHADOWBLOCK.
Actors in the line of fire with this flag trigger the MF_SHADOW aiming penalty. The shooter needs to have MF9_DOSHADOWBLOCK to check for actors with this flag.
This commit is contained in:
parent
162dbf0554
commit
c729b831af
5 changed files with 77 additions and 16 deletions
|
|
@ -6706,7 +6706,7 @@ AActor *P_SpawnMissileXYZ (DVector3 pos, AActor *source, AActor *dest, PClassAct
|
|||
}
|
||||
th->Vel = velocity.Resized(speed);
|
||||
|
||||
P_SpawnMissileXYZ_ShadowHandling(source,dest,th);
|
||||
P_SpawnMissileXYZ_ShadowHandling(source,dest,th,pos);
|
||||
|
||||
th->AngleFromVel();
|
||||
|
||||
|
|
@ -6828,7 +6828,7 @@ AActor *P_SpawnMissileZAimed (AActor *source, double z, AActor *dest, PClassActo
|
|||
|
||||
an = source->Angles.Yaw;
|
||||
|
||||
an += P_SpawnMissileZAimed_ShadowHandling(source,dest);
|
||||
an += P_SpawnMissileZAimed_ShadowHandling(source,dest,source->PosAtZ(z));
|
||||
|
||||
dist = source->Distance2D (dest);
|
||||
speed = GetDefaultSpeed (type);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue