Page 1 of 1

[DECORATE] +NOTAUTOAIMED is affecting monsters aim, too

Posted: Sat Jan 26, 2019 1:40 am
by Empyre
I had a problem with my OPWeapons. When a player shot a homing rocket near another player, it would start orbiting that other player. I fixed it by putting the +NOTAUTOAIMED flag on the player.

Now, I notice that hitscan monsters are not aiming at the player. I can stand in front of a mastermind and take no damage, unless I jump, because he is shooting over my head. I finally figured out that it is the =NOTAUTOAIMED flag that is causing it.

If there is a flag or property to put on the homing rocket to make it home only on hostile monsters, I could then remove +NOTAUTOAIMED from the player. Can this be done?

[DECORATE] Re: +NOTAUTOAIMED is affecting monsters aim, too

Posted: Sat Jan 26, 2019 1:10 pm
by Ivan
You can try changing the monsters to use A_FaceTarget(0, 0) instead. It's the pitch property that makes them not aim properly at you probably.

[DECORATE] Re: +NOTAUTOAIMED is affecting monsters aim, too

Posted: Sat Jan 26, 2019 6:11 pm
by Empyre
Thanks I didn't know that A_FaceTarget even had parameters. Unfortunately, it didn't fix the problem. The monster is still shooting over my head.

I just realized something, only hitscan attacks are affected. The monsters' projectiles and railguns correctly aim for me, and their homing projectiles home on me correctly.

[DECORATE] Re: +NOTAUTOAIMED is affecting monsters aim, too

Posted: Tue Jan 29, 2019 10:44 pm
by Empyre
I have come up with a solution of sorts. I just need to always have sv_smartaim 3 on the server, then I can remove +NOTAUTOAIMED from the OPPlayer class.