[DECORATE] +NOTAUTOAIMED is affecting monsters aim, too

Discuss all aspects related to modding Zandronum here.
Post Reply
User avatar
Empyre
Zandrone
Posts: 1316
Joined: Sun Jul 08, 2012 6:41 am
Location: Garland, TX, USA

[DECORATE] +NOTAUTOAIMED is affecting monsters aim, too

#1

Post by Empyre » Sat Jan 26, 2019 1:40 am

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?
"For the world is hollow, and I have touched the sky."

User avatar
Ivan
Addicted to Zandronum
Posts: 2219
Joined: Mon Jun 04, 2012 5:38 pm
Location: Omnipresent

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

#2

Post by Ivan » Sat Jan 26, 2019 1:10 pm

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.
=== RAGNAROK DM ON ... uh... dead forever? ===
=== ALWAYS BET ON ... uh... dead forever? ===
=== Who wanta sum wang? ===
=== Death and Decay - A new Monster/Weapon replacer ===

User avatar
Empyre
Zandrone
Posts: 1316
Joined: Sun Jul 08, 2012 6:41 am
Location: Garland, TX, USA

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

#3

Post by Empyre » Sat Jan 26, 2019 6:11 pm

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.
"For the world is hollow, and I have touched the sky."

User avatar
Empyre
Zandrone
Posts: 1316
Joined: Sun Jul 08, 2012 6:41 am
Location: Garland, TX, USA

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

#4

Post by Empyre » Tue Jan 29, 2019 10:44 pm

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.
"For the world is hollow, and I have touched the sky."

Post Reply