class end expan
local DeathMatchPlus DMP;
local PlayerPawn Player;
local pawn P, Best;
local beep be;
local smaller s;
local xtteleporteffect w;
DMP = DeathMatchPlus(Level.Game);
ScaleGlow -= Delta;
if (!bc)
{
for ( P=Level.PawnList; P!=None; P=P.nextPawn )
if ( P.bIsPlayer && !P.IsA('Spectator') && ((Best == None) || (P.PlayerReplicationInfo.Score > Best.PlayerReplicationInfo.Score)) )
Best = P;
spawningloc = best.location;
bc=true;
}
if (ScaleGlow <= 3 && !bdyne)
{
loopAnim('teleport', 0.45);
bdyne=true;
}
if (ScaleGlow <= 1.9 && !bsound )
{
be = spawn(class'beep',,,Location);
bsound=true;
}
if (ScaleGlow <= 1.5 && !bdone)
{
s = spawn(class'smaller',,,spawningloc);
w= spawn(class'xtteleporteffect',,,Location);
bdone=true;
}
}
simulated function PostBeginPlay()
{
local DeathMatchPlus DMP;
local int i;
DMP = DeathMatchPlus(Level.Game);
//Super.PostBeginPlay();
if ( Level.bDropDetail )
LightType = LT_None;
if ( Owner != None )
{
mesh = Owner.Mesh;
if ( !Owner.bIsPawn )
skin = Texture'vengeancex.Warlo';
else
skin =Texture'vengeancex.Warlo';
Style = STY_normal;
//scaleglow = 6;
if (Owner.IsA('Inventory'))
DrawScale = Inventory(Owner).PickupViewScale;
else
DrawScale = Inventory(Owner).PickupViewScale;
}
Playsound(sound'RespawnSound2');
scaleglow=dmp.restartwait-2;
LoopAnim('fly', 1.0);
}
function DropInventory()
{
if ( Pawn(Owner).Health > 0 )
Super.DropInventory();
else
Destroy();
}
function Destroyed()
{
local Pawn Victim;
local DeathWave DW;
local lach lk;
Victim = Pawn(Owner);
if ( (Victim != None) && (Victim.Health <= 0)&& (victim.enemy!=none) )
{
lk = Spawn(class'lach', , , Victim.Location + vect(0,0,50), Victim.Rotation);
DW = Spawn(class'DeathWave', , , Victim.Location + vect(0,0,50), Victim.Rotation);
DW.Instigator = Victim;
}
Super.Destroyed();
}
simulated function AnimEnd()
{
if (scaleglow<=0.1)
Destroy();
}
defaultproperties
{
PickupMessage="The warlord will revenge your death!"
PickupViewMesh=LodMesh'warlordz'
PickupViewScale=0.50
bAlwaysRelevant=True
Physics=5
Texture=Texture'Warlo'
Mesh=LodMesh'warlordz'
CollisionRadius=0.00
RotationRate=(Pitch=0,Yaw=4000,Roll=0),
DesiredRotation=(Pitch=0,Yaw=30000,Roll=0),
}