From 951de234eddae81038f39ec6547cb51c4ab97ad1 Mon Sep 17 00:00:00 2001 From: Marisa Kirisame Date: Fri, 17 Aug 2018 21:07:30 +0200 Subject: [PATCH 1/2] Note to self: the checkradius parameter of blockthingsiterator is a lie. --- zscript/utcommon.zsc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zscript/utcommon.zsc b/zscript/utcommon.zsc index dc68027..61f946e 100644 --- a/zscript/utcommon.zsc +++ b/zscript/utcommon.zsc @@ -933,7 +933,7 @@ Class UTMainHandler : StaticEventHandler while ( bi.Next() ) { Actor a = bi.Thing; - if ( !a || !a.bSHOOTABLE || !Source.CheckSight(a,0xf) || (a == Source) ) + if ( !a || !a.bSHOOTABLE || !Source.CheckSight(a,0xf) || (a == Source) || (Source.Distance3D(a) > ExplosionRadius) ) continue; Vector3 midpoint = a.Vec3Offset(0,0,a.height*0.5); a.vel += Level.Vec3Diff(Source.pos,midpoint).unit()*(MomentumTransfer/(Thinker.TICRATE*a.mass)); From ac71b65cae7d6f1aa3abf14584b129448db6c2a4 Mon Sep 17 00:00:00 2001 From: Marisa Kirisame Date: Sat, 18 Aug 2018 00:02:23 +0200 Subject: [PATCH 2/2] Rebalanced splash damages. Restored vanilla UT damage radii. Corrected Ripper alt projectile damage. They actually do deal both direct hit and splash damage. Made UDamage and Enhanced Shock Rifle last longer outside of deathmatch. --- Readme.md | 3 ++- zscript/biorifle.zsc | 4 ++-- zscript/eightball.zsc | 12 ++++++------ zscript/flakcannon.zsc | 6 +++--- zscript/powerups.zsc | 1 + zscript/ripper.zsc | 4 +--- zscript/shockrifle.zsc | 28 +++++++++++++++++++++------- 7 files changed, 36 insertions(+), 22 deletions(-) diff --git a/Readme.md b/Readme.md index 99ee5f4..2e69b0e 100644 --- a/Readme.md +++ b/Readme.md @@ -47,7 +47,7 @@ This mod requires GZDoom 3.5.0 or later. ## In progress - - General polishing and bugfixing + - General polishing, bugfixing and rebalancing - Add some more effects - Visual recoil affecting aim (time to recycle SM's A_Swing once again) - Lava/Slime footstep sounds? @@ -65,6 +65,7 @@ This mod requires GZDoom 3.5.0 or later. scripted textures are implemented. - Add player models + weapon attachment support when that is also added in. - Add option to have UT-like player movement physics. + - Migrate RandomSpawners to CheckReplacement. ## Known bugs diff --git a/zscript/biorifle.zsc b/zscript/biorifle.zsc index caff9cd..97f46b0 100644 --- a/zscript/biorifle.zsc +++ b/zscript/biorifle.zsc @@ -411,8 +411,8 @@ Class BioGel : Actor s.args[3] = int(s.args[3]*Scale.x); invoker.deadtimer = -2; if ( invoker.atline ) invoker.atline.RemoteActivate(target,invoker.atside,SPAC_Impact,pos); - UTMainHandler.DoBlast(self,Min(150,int(Scale.x*25)),20000*Scale.x); - A_Explode(int(Random[GES](18,22)*max(1,(Scale.x-1)**2)),Min(150,int(Scale.x*25))); + UTMainHandler.DoBlast(self,Min(250,int(Scale.x*75)),20000*Scale.x); + A_Explode(int(Random[GES](18,26)*Scale.x),Min(250,int(Scale.x*75))); A_PlaySound("ges/explode",CHAN_VOICE); int numpt = Min(300,int(Scale.x*30))+Random[GES](-10,10); for ( int i=0; i