MantisBT - Zandronum
View Issue Details
0002864Zandronum[All Projects] Bugpublic2016-10-07 17:072018-09-30 21:58
RusselCS 
 
normalminoralways
closedfixed 
MicrosoftWindowsXP/Vista/7
2.1 
3.03.0 
0002864: Seeking missiles do not work in Capture the Flag and One Flag CTF
When running the CTF game mode, projectiles that would ordinarily home in on a player simply do not do so.

They work in other game modes that involve teams, it is only in CTF modes where this issue occurs.
The given wad contains a modified rocket launcher to make the core rocket home in on other players and a simple one-room test map for CTF and One Flag CTF.

- Download the given wad
- Go to MAP01 in Offline Skirmish
- Add a bot
- Fire a rocket in its general direction
- The rocket should home in, but it does not
- Note that their rockets do not home in either
This issue occurs in Zandronum 2.1.2 and has been tested and still persists in Zandronum 3.0 Alpha 160814-2010.

Prior to Zandronum 2.0, Mega Man 8-Bit Deathmatch made use of the Bloodscourge homing for its homing projectiles and those also did not function properly in Capture the Flag and One Flag CTF.

This was tested on a Windows 7 installation but it seems to occur on all versions seeing as the same occurs online regardless of the server.
No tags attached.
? HomingCTFBug.pk3 (2,066) 2016-10-07 17:07
/tracker/file_download.php?file_id=1912&type=bug
? HomingCTFBug_2.pk3 (8,005) 2016-10-07 19:23
/tracker/file_download.php?file_id=1914&type=bug
Issue History
2016-10-07 17:07RusselCSNew Issue
2016-10-07 17:07RusselCSFile Added: HomingCTFBug.pk3
2016-10-07 17:12WaTaKiDProduct Version3.0-beta => 2.1
2016-10-07 17:47DuskNote Added: 0015783
2016-10-07 19:23RusselCSFile Added: HomingCTFBug_2.pk3
2016-10-07 19:27RusselCSNote Added: 0015785
2016-10-14 05:10Ru5tK1ngNote Added: 0015975
2016-10-18 19:18Ru5tK1ngNote Added: 0016049
2016-10-18 19:18Ru5tK1ngStatusnew => needs review
2016-10-18 19:18Ru5tK1ngTarget Version => 3.0
2016-10-23 18:53Ru5tK1ngNote Edited: 0016049bug_revision_view_page.php?bugnote_id=16049#r9811
2016-10-23 18:53Ru5tK1ngStatusneeds review => needs testing
2016-11-18 12:53RusselCSNote Added: 0016210
2016-11-19 18:56Ru5tK1ngStatusneeds testing => resolved
2016-11-19 18:56Ru5tK1ngResolutionopen => fixed
2016-11-19 18:56Ru5tK1ngFixed in Version => 3.0
2018-09-30 21:58Blzut3Statusresolved => closed

Notes
(0015783)
Dusk   
2016-10-07 17:47   
To me, it looks like:
· since you just replace the Rocket actor, the rocket is fired with the Doom's rocket launcher by the A_FireMissile codepointer, which is rather primitive and doesn't handle the case that the rocket would be a seeker missile.
· SMF_LOOK only looks for monsters, not players. That's pretty stupid and IMO is a bug in ZDoom's code.

I don't understand how does it manage to work outside CTF.
(0015785)
RusselCS   
2016-10-07 19:27   
I uploaded another test file to prove that the issue does not lay with A_FireMissile as it occurs using this weapon as well.

Be sure to test the wad using deathmatch on MAP02 as well to show that the projectiles home in on other players more reliably there than in CTF.
(0015975)
Ru5tK1ng   
2016-10-14 05:10   
Strange, if it does work with TDM, it's a bit hard to guess why it fails in CTF especially since a lot of people say 'CTF is just TDM with flags'.

Anyway, I tested the 2nd wad with ZDoom 2.7.1 and it homed in on targets like it does with 2.1.2.

As Dusk said, for some reason SMF_Look, or A_SeekerMissile, just has a stroke when the gamemode is CTF.
(0016049)
Ru5tK1ng   
2016-10-18 19:18   
(edited on: 2016-10-23 18:53)
'https://bitbucket.org/Torr_Samaho/zandronum/commits/8a30e291cb4cfefb8882d8a57abd6634640d9b23 [^]'

(0016210)
RusselCS   
2016-11-18 12:53   
I have tested this in Zandronum 3.0 beta 161030-2038 and the issue seems to be resolved.

Thanks a bunch!