diff --git a/sources/Zeds/Mean/MeanZombieStalker.uc b/sources/Zeds/Mean/MeanZombieStalker.uc index cb84cd5..53111d2 100644 --- a/sources/Zeds/Mean/MeanZombieStalker.uc +++ b/sources/Zeds/Mean/MeanZombieStalker.uc @@ -77,13 +77,14 @@ simulated function CloakStalker() SetOverlayMaterial(Material'KFX.FBDecloakShader', 0.25, true); } } + simulated function UnCloakStalker() { - if( bZapped ) + if (bZapped) { return; } - if( !bCrispified ) + if (!bCrispified) { LastUncloakTime = Level.TimeSeconds; @@ -92,8 +93,9 @@ simulated function UnCloakStalker() bUnlit = false; // 25% chance of our Enemy saying something about us being invisible - if( Level.NetMode!=NM_Client && !KFGameType(Level.Game).bDidStalkerInvisibleMessage && FRand()<0.25 && Controller.Enemy!=none && - PlayerController(Controller.Enemy.Controller)!=none ) + // added Controller check here + if (Level.NetMode!=NM_Client && !KFGameType(Level.Game).bDidStalkerInvisibleMessage && FRand()<0.25 && Controller != none && Controller.Enemy!=none && + PlayerController(Controller.Enemy.Controller)!=none) { PlayerController(Controller.Enemy.Controller).Speech('AUTO', 17, ""); KFGameType(Level.Game).bDidStalkerInvisibleMessage = true; @@ -115,6 +117,7 @@ simulated function UnCloakStalker() } } } + simulated function SetZappedBehavior() { super(NiceMonster).SetZappedBehavior(); diff --git a/sources/Zeds/Nice/NiceZombieStalker.uc b/sources/Zeds/Nice/NiceZombieStalker.uc index 3e2c054..fc8ab30 100644 --- a/sources/Zeds/Nice/NiceZombieStalker.uc +++ b/sources/Zeds/Nice/NiceZombieStalker.uc @@ -115,13 +115,14 @@ simulated function CloakStalker() SetOverlayMaterial(Material'KFX.FBDecloakShader', 0.25, true); } } + simulated function UnCloakStalker() { - if( bZapped ) + if (bZapped) { return; } - if( !bCrispified ) + if (!bCrispified) { LastUncloakTime = Level.TimeSeconds; @@ -130,8 +131,9 @@ simulated function UnCloakStalker() bUnlit = false; // 25% chance of our Enemy saying something about us being invisible - if( Level.NetMode!=NM_Client && !KFGameType(Level.Game).bDidStalkerInvisibleMessage && FRand()<0.25 && Controller.Enemy!=none && - PlayerController(Controller.Enemy.Controller)!=none ) + // added Controller check here + if (Level.NetMode!=NM_Client && !KFGameType(Level.Game).bDidStalkerInvisibleMessage && FRand()<0.25 && Controller != none && Controller.Enemy!=none && + PlayerController(Controller.Enemy.Controller) != none ) { PlayerController(Controller.Enemy.Controller).Speech('AUTO', 17, ""); KFGameType(Level.Game).bDidStalkerInvisibleMessage = true; @@ -153,6 +155,7 @@ simulated function UnCloakStalker() } } } + // Set the zed to the zapped behavior simulated function SetZappedBehavior() {