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:
inkoalawetrust 2023-01-16 22:49:47 +02:00 committed by Rachael Alexanderson
commit c729b831af
5 changed files with 77 additions and 16 deletions

View file

@ -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);