17 lines
333 B
Ucode
17 lines
333 B
Ucode
class NiceAvoidMarkerCarnage extends NiceAvoidMarker;
|
|
|
|
var float healthLevel;
|
|
|
|
function bool RelevantTo(Pawn P){
|
|
local NiceMonster niceZed;
|
|
niceZed = NiceMonster(P);
|
|
if (niceZed != none && niceZed.default.health <= healthLevel)
|
|
{
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
defaultproperties
|
|
{
|
|
lifespan = 2.5
|
|
} |