MantisBT - Zandronum
View Issue Details
0003076Zandronum[All Projects] Bugpublic2017-04-19 09:392018-09-30 21:46
Fused 
Torr Samaho 
normalminoralways
closedfixed 
3.0-beta 
3.03.0 
0003076: Custom pain states appear to "leak" into main pain state, calling A_SetBlend
This is a bit weird to explain.
Basically, when you have a_setblend as the very first function in your main pain state, it seems to be called from custom pain states aswell when playing online. the moment I put it later on and put frames before it, it doesn't happen anymore.
Get to a map with a crusher, for example map06. When getting rushed, notice how A_SetBlend is being called, despite pain.crush not having it.
Does not happen offline.

The moment I switch the two frames (TNT1 A 0 A_SetBlend ("20 00 00", 0.8, 10) & PLAY G 8 A_Scream), it doesn't happen. Neither does A_Scream get called.
No tags attached.
? example.pk3 (428) 2017-04-19 09:39
/tracker/file_download.php?file_id=2070&type=bug
? crushtest.wad (4,438) 2017-04-22 20:15
/tracker/file_download.php?file_id=2074&type=bug
Issue History
2017-04-19 09:39FusedNew Issue
2017-04-19 09:39FusedFile Added: example.pk3
2017-04-19 18:19Torr SamahoNote Added: 0017218
2017-04-19 18:20Torr SamahoStatusnew => feedback
2017-04-19 19:34FusedNote Added: 0017224
2017-04-19 19:34FusedStatusfeedback => new
2017-04-19 19:35FusedNote Edited: 0017224bug_revision_view_page.php?bugnote_id=17224#r10361
2017-04-22 12:55Torr SamahoNote Added: 0017254
2017-04-22 12:55Torr SamahoAssigned To => Torr Samaho
2017-04-22 12:55Torr SamahoStatusnew => feedback
2017-04-22 20:15FusedFile Added: crushtest.wad
2017-04-22 20:15FusedNote Added: 0017264
2017-04-22 20:15FusedStatusfeedback => assigned
2017-04-23 10:08Torr SamahoNote Added: 0017266
2017-04-23 10:12Torr SamahoStatusassigned => needs testing
2017-04-23 10:12Torr SamahoTarget Version => 3.0
2017-04-23 20:39FusedNote Added: 0017298
2017-04-23 20:40FusedNote Edited: 0017298bug_revision_view_page.php?bugnote_id=17298#r10385
2017-04-23 23:17Ru5tK1ngStatusneeds testing => resolved
2017-04-23 23:17Ru5tK1ngResolutionopen => fixed
2017-04-23 23:17Ru5tK1ngFixed in Version => 3.0
2018-09-30 21:46Blzut3Statusresolved => closed

Notes
(0017218)
Torr Samaho   
2017-04-19 18:19   
Is this any different in 2.1.2?
(0017224)
Fused   
2017-04-19 19:34   
(edited on: 2017-04-19 19:35)
In Zan 2.1.2 I do not get any effect from A_Blend. I do get the default blend, but I guess Player.DamageScreenColor is not supported, or it happends to be'https://forum.zdoom.org/viewtopic.php?f=2&t=32645 [^]' by any chance...?

(0017254)
Torr Samaho   
2017-04-22 12:55   
Could be.

Can you include a small crusher map in the example?
(0017264)
Fused   
2017-04-22 20:15   
Added.
(0017266)
Torr Samaho   
2017-04-23 10:08   
Thanks! Should be fixed now. The underlying problem was also in 2.1.2.
(0017298)
Fused   
2017-04-23 20:39   
(edited on: 2017-04-23 20:40)
Using the example wad with the build from'http://zandronum.com/tracker/view.php?id=2594#c17282 [^]' which has the commit, fixes the issue.