KF Remove turret's solidness against players but not against zombies?

  • Please make sure you are familiar with the forum rules. You can find them here: https://forums.tripwireinteractive.com/index.php?threads/forum-rules.2334636/

PissJar

FNG / Fresh Meat
Apr 6, 2013
21
1
0
Hello, i'm looking for someone who can make something so turrets aren't solid against players = they can walk through and for zeds they are just solid

I hope someone wants to do this as i have no clue :confused:
 

forrestmark9

FNG / Fresh Meat
Nov 29, 2011
1,110
40
0
Code:
simulated function Bump(actor Other)
{
	if( Other.IsA('KFMonster') )
		bBlockActors = false;
		
	Super.Bump(Other);
}

simulated function Touch(Actor Other)
{
	if( !bBlockActors && Other.IsA('KFPawn') )
		bBlockActors = true;
		
	Super.Touch(Other);
}