rott/kf_sources/KFChar/Classes/GorefastController.uc
2026-07-14 20:27:09 +07:00

30 lines
730 B
Ucode

// Custom code to make the Gorefast act abit more interesting.
class GorefastController extends KFMonsterController;
var bool bDoneSpottedCheck;
state ZombieHunt
{
event SeePlayer(Pawn SeenPlayer)
{
if ( !bDoneSpottedCheck && PlayerController(SeenPlayer.Controller) != none )
{
// 25% chance of first player to see this Gorefast saying something
if ( !KFGameType(Level.Game).bDidSpottedGorefastMessage && FRand() < 0.25 )
{
PlayerController(SeenPlayer.Controller).Speech('AUTO', 13, "");
KFGameType(Level.Game).bDidSpottedGorefastMessage = true;
}
bDoneSpottedCheck = true;
}
global.SeePlayer(SeenPlayer);
}
}
defaultproperties
{
StrafingAbility=0.500000
}