MantisBT - Zandronum
View Issue Details
0000921Zandronum[All Projects] Suggestionpublic2012-07-14 02:402014-06-11 21:46
ZzZombo 
 
normalminorN/A
acknowledgedopen 
MicrosoftWindowsXP/Vista/7
 
 
0000921: Allow spectators to be affected by most of ACS functions
The problem currently is that spectators can't be affected by functions affecting only that player, such as LocalSetMusic(), LocalAmbientSound(), Print(), etc. In my mod I change music to two teams independantly, and I wish dead spectators to be affected by music played to their team. Same applies to LocalAmbientSound(), I play different sounds in some cases to both teams. But my imagination is limited not only by these functions, I see no reason why I should be unable to use Player_SetTeam() on spectators or ClientCommand().
So far, all information, sound, HUD, and most of ACS actor functions must affect spectators as well as players in the game.
No tags attached.
Issue History
2012-07-14 02:40ZzZomboNew Issue
2012-08-05 08:22Torr SamahoNote Added: 0004252
2012-08-05 08:22Torr SamahoStatusnew => feedback
2012-08-13 14:16ZzZomboNote Added: 0004362
2012-08-13 14:16ZzZomboStatusfeedback => new
2012-08-13 14:16ZzZomboNote Deleted: 0004362
2012-08-13 14:19ZzZomboNote Added: 0004363
2012-08-13 14:20ZzZomboNote Edited: 0004363bug_revision_view_page.php?bugnote_id=4363#r2385
2014-06-11 21:46WatermelonNote Added: 0009118
2014-06-11 21:46WatermelonStatusnew => acknowledged

Notes
(0004252)
Torr Samaho   
2012-08-05 08:22   
After I quick look at the code I can say that LocalSetMusic() doesn't distinguish between players and spectators. The difference has to lie elsewhere. Please post a minimal example wad. Then I can say what's going on and we can discuss whether the current behavior should be changed or not.
(0004363)
ZzZombo   
2012-08-13 14:19   
(edited on: 2012-08-13 14:20)
After looking at the p_acs.cpp code I must admit that there is a little checks against spectators. The problem might be that I overlooked that I set TID of disconnected players to 0 so I can't call mentioned functions on them. I'll try investigate it further after I recover data from HDDs of my computer or the drives themselves.

(0009118)
Watermelon   
2014-06-11 21:46   
Were in the process of discussing how to handle spectators now