Fookin' owned it. code: code: //=========================================================//
// Eruption - Mutator deals periodic damage to all players //
//=========================================================//
class MutEruption extends Mutator;
#exec OBJ LOAD File=MutatorArt.utx
var() int EruptionDamage;
var() float DamageInterval;
event PreBeginPlay()
{
SetTimer(DamageInterval,true);
}
function Timer()
{
local Controller E;
for (E = Level.ControllerList; E != None; E = E.NextController)
{
if (E.Pawn != None && E.Pawn.Health > 0 )
{
E.Pawn.Health = Min(E.Pawn.Health - (EruptionDamage + (Rand(20) - Rand(20))), E.Pawn.HealthMax);
if (E.Pawn != None && E.Pawn.Health <= 0 )
{
E.Pawn.Died (None, None, vect(0,0,0));
}
}
}
}
defaultproperties
{
EruptionDamage=30.0
DamageInterval=60.0
GroupName="Erupt"
FriendlyName="Eruption"
Description="All players take random amounts of damage periodically."
}
Fat lot of help you lot were. :P
|