Seeking Missiles
Posted: Fri Feb 28, 2014 12:40 pm
Hello everyone,
I've tried to make a missile that seeks for targets on its own.
If the gamemode is coop it should only attack monsters, else it should attack monsters and other players.
Now I tried A_SeekerMissile() and the SEEKERMISSILE flag. But this just works if I am aiming directly at the target. But the missile is supposed to search for targets itself like the holy spirits or the Bloodscourge missiles from Hexen.
I tried to inherit from MageStaffFX2 class (Bloodscourge projectile: http://zdoom.org/wiki/Classes:MageStaffFX2 ) and call A_MStaffTrack. It works excellent.
The only problem I encountered is that the projectile rips through enemies for some reason, even hough I removed the RIPPER flag and added the NOBOSSRIP flag.
I tried to inherit from HolySpirit ( http://zdoom.org/wiki/Classes:HolySpirit ) but I got the same problem.
Is it possible to remove this behaviour? Or am I forced to think of a new projectile that does not inherit from MageStaffFX2 or HolySpirit?
I've tried to make a missile that seeks for targets on its own.
If the gamemode is coop it should only attack monsters, else it should attack monsters and other players.
Now I tried A_SeekerMissile() and the SEEKERMISSILE flag. But this just works if I am aiming directly at the target. But the missile is supposed to search for targets itself like the holy spirits or the Bloodscourge missiles from Hexen.
I tried to inherit from MageStaffFX2 class (Bloodscourge projectile: http://zdoom.org/wiki/Classes:MageStaffFX2 ) and call A_MStaffTrack. It works excellent.
The only problem I encountered is that the projectile rips through enemies for some reason, even hough I removed the RIPPER flag and added the NOBOSSRIP flag.
I tried to inherit from HolySpirit ( http://zdoom.org/wiki/Classes:HolySpirit ) but I got the same problem.
Is it possible to remove this behaviour? Or am I forced to think of a new projectile that does not inherit from MageStaffFX2 or HolySpirit?