From 090768e544db42823f10c6d8d1a23c6c496a5169 Mon Sep 17 00:00:00 2001 From: Marisa Kirisame Date: Tue, 7 Jan 2020 13:59:30 +0100 Subject: [PATCH] 1.1.2, minor update (no need to change DR): - Increased ambient light on kinsie's test map. - Bullet trails now cause splashes when crossing 3D water. --- Readme.md | 2 +- zscript/utcommon.zsc | 45 +++++++++++++++++++++++++++++++++++++++++--- 2 files changed, 43 insertions(+), 4 deletions(-) diff --git a/Readme.md b/Readme.md index 8305b6f..05fd8a0 100644 --- a/Readme.md +++ b/Readme.md @@ -64,7 +64,7 @@ This mod requires GZDoom 4.2.4 or later. ## In progress - - N/A this is the 1.1.1 release. + - N/A this is the 1.1.2 release. ## Planned diff --git a/zscript/utcommon.zsc b/zscript/utcommon.zsc index dc4b0d7..4b6e30a 100644 --- a/zscript/utcommon.zsc +++ b/zscript/utcommon.zsc @@ -2783,10 +2783,28 @@ Class UTTeleParticle : UTMeshParticle } } +Class WaterHit +{ + Sector sect; + Vector3 hitpos; +} + +Class UTInvisibleSplasher : Actor +{ + States + { + Spawn: + TNT1 A 2; + Stop; + } +} + // Follows a single line trail, spawns bubbles if underwater // In addition, also activates shoot-through lines, since LineTrace can't do it +// Also spawns splashes when crossing water sectors Class UTBulletTrail : LineTracer { + Array WaterHitList; Array ShootThroughList; Actor ignoreme; @@ -2794,10 +2812,16 @@ Class UTBulletTrail : LineTracer { let t = new("UTBulletTrail"); t.ignoreme = target; + t.WaterHitList.Clear(); t.ShootThroughList.Clear(); t.Trace(pos,level.PointInSector(pos.xy),dir,dist,0); for ( int i=0; i