test fix for bloat BileExplosionLoc accessed none

This commit is contained in:
Shtoyan 2022-01-22 20:22:40 +04:00
parent 3120047995
commit b9fc5b8573

View File

@ -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 );