From 670bbb37d982367b2b52c70e615e8ca6a6df18b6 Mon Sep 17 00:00:00 2001 From: Marisa Kirisame Date: Thu, 12 Sep 2019 20:21:14 +0200 Subject: [PATCH] Flak chunk damage accumulator works properly now. --- Readme.md | 2 ++ zscript/flakcannon.zsc | 51 ++++++++++++++++++++++++++++-------------- 2 files changed, 36 insertions(+), 17 deletions(-) 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