diff --git a/Readme.md b/Readme.md index 1d51b4f..aab0136 100644 --- a/Readme.md +++ b/Readme.md @@ -89,3 +89,5 @@ This mod requires GZDoom g4.3pre-79-gbcef44051 or later. - Translocator allows telefragging other players in coop (no idea if I can even fix this) + - Biorifle sludge doesn't attach properly when it lands on the edge between + sectors. This is most noticeable with moving sectors and 3d floors. diff --git a/zscript/flakcannon.zsc b/zscript/flakcannon.zsc index d94ee67..53e7a93 100644 --- a/zscript/flakcannon.zsc +++ b/zscript/flakcannon.zsc @@ -109,19 +109,26 @@ Class ChunkTrail : Actor Class FlakAccumulator : Thinker { - Actor victim; - int amount; - int cnt; + Actor victim, inflictor, source; + Array amounts; + int total; + Name type; override void Tick() { Super.Tick(); - cnt++; - if ( cnt < 5 ) return; + bool oldxd = inflictor.bEXTREMEDEATH; + int gibhealth = victim.GetGibHealth(); + // おまえはもう死んでいる + if ( victim.health-total <= gibhealth ) inflictor.bEXTREMEDEATH = true; + // 何? + for ( int i=0; i