Zandronum Chat on our Discord Server Get the latest version: 3.1
Source Code

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000921Zandronum[All Projects] Suggestionpublic2012-07-14 02:402014-06-11 21:46
ReporterZzZombo 
Assigned To 
PrioritynormalSeverityminorReproducibilityN/A
StatusacknowledgedResolutionopen 
PlatformMicrosoftOSWindowsOS VersionXP/Vista/7
Product Version 
Target VersionFixed in Version 
Summary0000921: Allow spectators to be affected by most of ACS functions
DescriptionThe 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().
Additional InformationSo far, all information, sound, HUD, and most of ACS actor functions must affect spectators as well as players in the game.
Attached Files

- Relationships

-  Notes
User avatar (0004252)
Torr Samaho (administrator)
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.
User avatar (0004363)
ZzZombo (reporter)
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.

User avatar (0009118)
Watermelon (developer)
2014-06-11 21:46

Were in the process of discussing how to handle spectators now

Issue Community Support
Only registered users can voice their support. Click here to register, or here to log in.
Supporters: No one explicitly supports this issue yet.
Opponents: No one explicitly opposes this issue yet.

- Issue History
Date Modified Username Field Change
2012-07-14 02:40 ZzZombo New Issue
2012-08-05 08:22 Torr Samaho Note Added: 0004252
2012-08-05 08:22 Torr Samaho Status new => feedback
2012-08-13 14:16 ZzZombo Note Added: 0004362
2012-08-13 14:16 ZzZombo Status feedback => new
2012-08-13 14:16 ZzZombo Note Deleted: 0004362
2012-08-13 14:19 ZzZombo Note Added: 0004363
2012-08-13 14:20 ZzZombo Note Edited: 0004363 View Revisions
2014-06-11 21:46 Watermelon Note Added: 0009118
2014-06-11 21:46 Watermelon Status new => acknowledged






Questions or other issues? Contact Us.

Links


Copyright © 2000 - 2024 MantisBT Team
Powered by Mantis Bugtracker