33 lines
992 B
Ucode
33 lines
992 B
Ucode
// Allows to adjust KFLevelRules_Story.Rules_Monsters
|
|
|
|
class ACTION_STORY_MonsterRules extends ScriptedAction;
|
|
|
|
/* absolute maximum number of zombies we can have in this story map at one time */
|
|
var(Action) int MaxEnemiesAtOnce;
|
|
|
|
/* should the game kill off ZEDs which haven't been seen by players for a while? */
|
|
var(Action) bool bAutoKillStragglers;
|
|
|
|
/* Auto Kill threshold if bAutoKilLStragglers is true */
|
|
var(Action) int MaxStragglers;
|
|
|
|
function bool InitActionFor(ScriptedController C)
|
|
{
|
|
local KFLevelRules_Story KFLR;
|
|
|
|
foreach C.AllActors(class'KFLevelRules_Story', KFLR) {
|
|
if ( MaxEnemiesAtOnce > 0 )
|
|
KFLR.MaxEnemiesAtOnce = MaxEnemiesAtOnce;
|
|
KFLR.bAutoKillStragglers = bAutoKillStragglers;
|
|
KFLR.MaxStragglers = MaxStragglers;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
defaultproperties
|
|
{
|
|
bAutoKillStragglers=True
|
|
MaxStragglers=5
|
|
ActionString="story monster rules"
|
|
}
|