- added an override for NOTAUTOAIMED flag when using P_AimLineAttack for informative CCMDs.

The flag is explicitly blocked for script use.
This commit is contained in:
Christoph Oelckers 2022-06-16 10:07:22 +02:00
commit de4627a477
6 changed files with 6 additions and 2 deletions

View file

@ -4192,7 +4192,7 @@ struct aim_t
dist = attackrange * in->frac;
// Don't autoaim certain special actors
if (!cl_doautoaim && th->flags6 & MF6_NOTAUTOAIMED)
if (!cl_doautoaim && !(flags & ALF_IGNORENOAUTOAIM) && th->flags6 & MF6_NOTAUTOAIMED)
{
continue;
}