MantisBT - Zandronum
View Issue Details
0001255Zandronum[All Projects] Bugpublic2013-01-21 08:402014-12-20 22:46
DartPower 
 
lowmajorsometimes
closedno change required 
WIntel and Apple (Intel)Windows and OS X Mountain LionXP and 10.8.2
1.0 
 
0001255: Occasional buggy behavior in Master/Children relationship
When using A_KillMaster in DECORATE statements between tho MONSTER's actual damaging/killing does not happen - leading to unavailability of stable feature of Master/Children relationship

Also buggy with A_KillChildren but it generally works when A_KillMaster generally won't work.
Actor Looper
{

 +ISMONSTER
 
 States
 {
 Spawn:
 CEYE A 4
 CEYE AAAAA 0 A_SpawnItemEx("zombieman",random(-75,75),random(-75,75),10,0,0,0,0, SXF_SETMASTER)
 CEYE B 4
 CEYE C 4 A_KillChildren
 Loop
 }
}

It works fine. But if you place actor to be children and call A_KillMaster it is broken:

Actor [Something]
{
...
States
{
...
Spawn:
...
XXXX X 0 A_SpawnItemEx("Looper",random(-75,75),random(-75,75),10,0,0,0,0, SXF_SETMASTER)
...
}
...
}

Actor Looper
{

 +ISMONSTER
 
 States
 {
 Spawn:
 CEYE A 4
 CEYE AAAAA 0
 CEYE B 4
 CEYE C 4 A_KillMaster
 Loop
 }
}

Will not work at all!
Tried many variants with completelly rewrited actors and with default monsters to make e.g. zombieman spawned by shotgunguy with A_SpawnItemEx to kill it's spawner shotgunguy
All the same result... Really frustrating.

Also, would be well if A_SpawnItemEx flag SXF_TRANSFERPOINTERS be backported from ZDoom
No tags attached.
Issue History
2013-01-21 08:40DartPowerNew Issue
2014-06-13 15:59WatermelonNote Added: 0009203
2014-06-13 15:59WatermelonAssigned To => Watermelon
2014-06-13 15:59WatermelonStatusnew => feedback
2014-06-15 22:12WatermelonAssigned ToWatermelon =>
2014-12-20 21:57MinigunnerNote Added: 0011079
2014-12-20 22:46DuskNote Added: 0011080
2014-12-20 22:46DuskStatusfeedback => closed
2014-12-20 22:46DuskResolutionopen => no change required

Notes
(0009203)
Watermelon   
2014-06-13 15:59   
Does it happen in 2.0?
(0011079)
Minigunner   
2014-12-20 21:57   
I've found that this issue is what causes the elevator in one of WhoDunIt's maps to not function properly online. Not only that, but it seems that the A_RemoveChildren function doesn't work on server setups like Best-Ever's, but it works just fine when I run it on a personal server with some other players. I can't test the former with 2.0, but I have tested the latter with 2.0 and it works properly just the same.
(0011080)
Dusk   
2014-12-20 22:46   
User error - both actors need +ISMONSTER to work and your "[Something]" does not appear to have it. If this is still a problem, please reopen and attach a minimal, working testcase.