From e77e0b59fff017808f45ad98a6875e641398315d Mon Sep 17 00:00:00 2001 From: Marisa Kirisame Date: Sat, 21 Jul 2018 16:53:59 +0200 Subject: [PATCH] Reduced smoke on enforcer. Removed wipe bug workaround. --- zscript/enforcer.zsc | 3 ++- zscript/uthud.zsc | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/zscript/enforcer.zsc b/zscript/enforcer.zsc index 469453f..3a81d26 100644 --- a/zscript/enforcer.zsc +++ b/zscript/enforcer.zsc @@ -341,12 +341,13 @@ Class Enforcer : UTWeapon replaces Pistol p.pitch = asin(-hitnormal.z); if ( d.HitLine ) d.HitLine.RemoteActivate(self,d.LineSide,SPAC_Impact,d.HitLocation); } - for ( int i=0; i<8; i++ ) + for ( int i=0; i<3; i++ ) { let s = Spawn("UTViewSmoke",origin); if ( alt ) UTViewSmoke(s).ofs = (10,ydir,-3); else UTViewSmoke(s).ofs = (10,4*ydir,-1); s.target = self; + s.alpha *= 0.5; } origin += x*8.0+ydir*y*6.0-z*2.0; let c = Spawn("UTCasing",origin); diff --git a/zscript/uthud.zsc b/zscript/uthud.zsc index 1de67e1..3a478a5 100644 --- a/zscript/uthud.zsc +++ b/zscript/uthud.zsc @@ -147,7 +147,6 @@ Class UTHud : BaseStatusBar override void Draw( int state, double TicFrac ) { Super.Draw(state,TicFrac); - if ( level.time < 2 ) return; // workaround for glitched wipe (no idea what causes it) if ( players[consoleplayer].camera is 'GuidedWarShell' ) return; HScale = Screen.GetWidth()/1280.; switch ( CVar.GetCVar('flak_colorprefs',CPlayer).GetInt() )