MantisBT - Zandronum
View Issue Details
0000267Zandronum[All Projects] Bugpublic2011-01-24 03:362018-09-30 20:11
Mister Nobody 
Torr Samaho 
normalminoralways
closedfixed 
MicrosoftWindowsXP/Vista/7
98d 
1.0 
0000267: FadeTo doesn't reset on spectate.
If you use FadeTo, and then spectate, the screen will remain the faded color.
With the attatched wad file, enter a map, puke script 27, and then spectate. The screen will remain tinted blue.
No tags attached.
? fadeto.wad (260) 2011-01-24 03:36
/tracker/file_download.php?file_id=138&type=bug
? fadeto_test.wad (1,801) 2011-01-24 04:39
/tracker/file_download.php?file_id=139&type=bug
Issue History
2011-01-24 03:36Mister NobodyNew Issue
2011-01-24 03:36Mister NobodyFile Added: fadeto.wad
2011-01-24 03:47Torr SamahoNote Added: 0000860
2011-01-24 03:47Torr SamahoAssigned To => Torr Samaho
2011-01-24 03:47Torr SamahoStatusnew => feedback
2011-01-24 04:39unknownnaNote Added: 0000861
2011-01-24 04:39unknownnaFile Added: fadeto_test.wad
2011-01-24 12:14Torr SamahoNote Added: 0000864
2011-01-24 22:18unknownnaNote Added: 0000867
2011-01-24 22:19unknownnaNote Edited: 0000867bug_revision_view_page.php?bugnote_id=867#r400
2011-01-25 00:45Torr SamahoNote Added: 0000868
2011-01-25 02:06unknownnaNote Added: 0000871
2011-01-25 02:08unknownnaNote Edited: 0000871bug_revision_view_page.php?bugnote_id=871#r402
2011-01-26 02:44Torr SamahoNote Added: 0000875
2011-01-26 02:44Torr SamahoStatusfeedback => resolved
2011-01-26 02:44Torr SamahoFixed in Version => 1.0
2011-01-26 02:44Torr SamahoResolutionopen => fixed
2011-01-26 02:45Torr SamahoProduct Version => 98d
2012-06-09 13:22Torr SamahoCategoryGeneral => Bug
2018-09-30 20:11Blzut3Statusresolved => closed

Notes
(0000860)
Torr Samaho   
2011-01-24 03:47   
This should fix the issue, I tested the fix only very briefly though.
(0000861)
unknownna   
2011-01-24 04:39   
If you turn into a spectator before the fade fully fades in, the effect will not be cleared from the viewpoint. I made a new example WAD.
(0000864)
Torr Samaho   
2011-01-24 12:14   
Ah, I see. This should also cover these issues.
(0000867)
unknownna   
2011-01-24 22:18   
(edited on: 2011-01-24 22:19)
It fixed the issue, but are spectators supposed to be affected by the fade if they activate/puke the script?

And if a spectator activates the script before a player in-game does, the next time the script is activated by a player, the spectator will be affected by the fade, but the player will not. Perhaps this is due to the "suspend" function in the script.

Here is the script from the example WAD:

Script 1 (Void)
{
    Print (s:"\clRed");
    FadeTo (255, 0, 0, 0.20, 1.0);
    Suspend;
    Print (s:"\cdGreen");
    FadeTo (0, 255, 0, 0.20, 1.0);
    Suspend;
    Print (s:"\chBlue");
    FadeTo (0, 0, 255, 0.20, 1.0);
    Suspend;
    Print (s:"Normal");
    FadeTo (0, 0, 0, 0, 1.0);
}

(0000868)
Torr Samaho   
2011-01-25 00:45   
> It fixed the issue, but are spectators supposed to be affected by the fade if they activate/puke the script?

Well, AFAIK spectators can't activate scripts at all since they are not part of the game. The only exemption is the puke cheat. I don't think that there is anything I can do about this except for disallowing spectators from using the puke cheat.

> And if a spectator activates the script before a player in-game does, the next time the script is activated by a player, the spectator will be affected by the fade, but the player will not. Perhaps this is due to the "suspend" function in the script.

Yes, I'd say because the script is just suspended, the original activator is kept once the script resumes. So from what I can tell what's happening is the intended behavior.
(0000871)
unknownna   
2011-01-25 02:06   
(edited on: 2011-01-25 02:08)
> Well, AFAIK spectators can't activate scripts at all since they are not part of the game. The only exemption is the puke cheat. I don't think that there is anything I can do about this except for disallowing spectators from using the puke cheat.

Would it then be possible to have all cheats, minus the "chase" one, be disabled for spectators? Perhaps with a warning message along the lines of: "You cannot/can't use this cheat as a spectator!".

'http://www.skulltag.com/forum/viewtopic.php?f=33&t=22538 [^]'

> Yes, I'd say because the script is just suspended, the original activator is kept once the script resumes. So from what I can tell what's happening is the intended behavior.

Indeed, you are right.

(0000875)
Torr Samaho   
2011-01-26 02:44   
> Would it then be possible to have all cheats, minus the "chase" one, be disabled for spectators? Perhaps with a warning message along the lines of: "You cannot/can't use this cheat as a spectator!".

That's certainly possible, but let's continue this discussing in the thread you linked.

Since the FadeTo bug is fixed now, I'm marking this report as resolved.