Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

skaarjpack.RazorFly


00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
class RazorFly extends Monster;

simulated function PostBeginPlay()
{
	Super.PostBeginPlay();
	PlayAnim('Fly');
}

function SetMovementPhysics()
{
	SetPhysics(PHYS_Flying); 
	PlayAnim('Fly');
}

singular function Falling()
{
	SetPhysics(PHYS_Flying);
}

simulated function AnimEnd(int Channel)
{
	if ( bShotAnim )
		bShotAnim = false;
	LoopAnim('Fly',1,0.05);
}

simulated function PlayDirectionalDeath(Vector HitLoc)
{
	PlayAnim('Dead');
}

simulated function PlayDirectionalHit(Vector HitLoc)
{
	TweenAnim('TakeHit', 0.05);
}

function RangedAttack(Actor A)
{
	if ( VSize(A.Location - Location) < MeleeRange + CollisionRadius + A.CollisionRadius )
	{
		bShotAnim = true;
		PlayAnim('Shoot1');
		if ( MeleeDamageTarget(10, (15000.0 * Normal(A.Location - Location))) )
			PlaySound(sound'injur1rf', SLOT_Talk); 
			
		Controller.Destination = Location + 110 * (Normal(Location - A.Location) + VRand());
		Controller.Destination.Z = Location.Z + 70;
		Velocity = AirSpeed * normal(Controller.Destination - Location);
		Controller.GotoState('TacticalMove', 'DoMove');
	}
}

defaultproperties
{
	bCanFly=true
	bCanDodge=false
	bPhysicsAnimUpdate=false
	bAlwaysStrafe=true
     Health=35
     bCanStrafe=True
     MeleeRange=+00040.000000
     AirSpeed=+00300.000000
     AccelRate=+00600.000000
     Mesh=FlyM
     Skins(0)=JFly1
     Skins(1)=JFly1
     AmbientSound=buzz3rf
     DrawScale=+1.0
     CollisionRadius=+00018.000000
     CollisionHeight=+0011.000000
     RotationRate=(Pitch=6000,Yaw=65000,Roll=8192)
     
     HitSound(0)=injur1rf
     HitSound(1)=injur2rf
     HitSound(2)=injur1rf
     HitSound(3)=injur2rf
     DeathSound(0)=death1rf
     DeathSound(1)=death1rf
     DeathSound(2)=death1rf
     DeathSound(3)=death1rf
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Di 5.9.2006 22:31:54.000 - Creation time: Do 14.8.2014 09:58:49.023 - Created with UnCodeX