From b9fc5b85739be737c95cfb49ffe228a046cc58b5 Mon Sep 17 00:00:00 2001 From: Shtoyan Date: Sat, 22 Jan 2022 20:22:40 +0400 Subject: [PATCH] test fix for bloat BileExplosionLoc accessed none --- sources/Zeds/Nice/NiceZombieBloat.uc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sources/Zeds/Nice/NiceZombieBloat.uc b/sources/Zeds/Nice/NiceZombieBloat.uc index 746d971..ef95593 100644 --- a/sources/Zeds/Nice/NiceZombieBloat.uc +++ b/sources/Zeds/Nice/NiceZombieBloat.uc @@ -200,7 +200,10 @@ simulated function Tick(float deltatime) { local vector BileExplosionLoc; local FleshHitEmitter GibBileExplosion; + Super.tick(deltatime); + + if( Role == ROLE_Authority && bMovingPukeAttack ) { // Keep moving toward the target until the timer runs out (anim finishes) @@ -243,7 +246,8 @@ simulated function Tick(float deltatime) { if ( !class'GameInfo'.static.UseLowGore() ) { - BileExplosionLoc = self.Location; + // remove self. + BileExplosionLoc = Location; BileExplosionLoc.z += (CollisionHeight - (CollisionHeight * 0.5)); if (bDecapitated) @@ -258,7 +262,7 @@ simulated function Tick(float deltatime) } else { - BileExplosionLoc = self.Location; + BileExplosionLoc = Location; BileExplosionLoc.z += (CollisionHeight - (CollisionHeight * 0.5)); GibBileExplosion = Spawn(class 'LowGoreBileExplosion',self,, BileExplosionLoc );