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

25 lines
724 B
Ucode

//=============================================================================
// FearSpot.
// Creatures will tend to back away when entering this spot
// To be effective, there should also not be any paths going through the area
//=============================================================================
class FearSpot extends AvoidMarker
placeable;
var() bool bInitiallyActive;
function Touch( actor Other )
{
if ( bInitiallyActive && (Pawn(Other) != None) && (Pawn(Other).Controller != None) )
Pawn(Other).Controller.FearThisSpot(self);
}
function Trigger( actor Other, pawn EventInstigator )
{
bInitiallyActive = !bInitiallyActive;
}
defaultproperties
{
CollisionRadius=+200.000
}