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

U2Pawns.U2Rammer


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
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108
//=============================================================================
// U2Rammer.
//=============================================================================

class U2Rammer extends U2PawnBasic;

#exec OBJ LOAD FILE=..\Sounds\U2Rammer.uax

var float MeleeDamageRange;

//-----------------------------------------------------------------------------

function bool FilterMeleeAttack( Actor TargetActor )
{
	local vector EnemyVector2D;
	local vector PawnVector2D;

	EnemyVector2D = TargetActor.Location - Location;
	EnemyVector2D.Z = 0;
	PawnVector2D = vector(Rotation);
	PawnVector2D.Z = 0;

	return ( (Normal( TargetActor.Location - Location ) dot Normal( PawnVector2D )) <= 0.866 );
}

//-----------------------------------------------------------------------------

function float GetMeleeDamageRange()
{
	return MeleeDamageRange;
}

//-----------------------------------------------------------------------------

	

defaultproperties
{
	MeleeDamageRange=125.000000
     AttackActiveBehaviors(0)=(StateName=AttackCloseCharge,TimeMin=40.000000,TimeMax=400.000000)
     AttackActiveBehaviors(1)=(StateName=AttackTacticalRetreat,TimeMin=1.000000,TimeMax=2.000000)
     AttackActiveCantReachBehaviors(0)=(StateName=AttackStationary,Odds=1.000000,TimeMin=3.000000,TimeMax=3.000000)
     AttackActiveCantReachBehaviors(1)=(StateName=AttackTacticalMove,StateLabel=DontClose,Odds=1.000000,TimeMin=2.000000,TimeMax=2.000000)
     AttackActiveEnemyNotVisibleBehaviors(0)=(StateName=AttackHunt,Odds=1.000000,TimeMin=20.000000,TimeMax=20.000000)
     AttackActiveMeleeBehaviors(0)=(StateName=AttackMelee,TimeMin=3.000000,TimeMax=3.000000)
     AttackPassiveBehaviors(0)=(StateName=AttackMoveToCoverCombat,Odds=0.400000,TimeMin=7.000000,TimeMax=7.000000)
     AttackPassiveBehaviors(1)=(StateName=AttackStationary,Odds=0.060000,TimeMin=1.000000,TimeMax=3.000000)
     AttackPassiveBehaviors(2)=(StateName=AttackFallback,Odds=0.240000,TimeMin=2.500000,TimeMax=7.000000)
     AttackPassiveCantReachBehaviors(0)=(StateName=AttackStationary,Odds=0.500000,TimeMin=1.000000)
     AttackPassiveCantReachBehaviors(1)=(StateName=AttackFallback,Odds=1.000000,TimeMin=2.000000,TimeMax=7.000000)
     AttackPassiveEnemyNotVisibleBehaviors(0)=(StateName=AttackFallback,Odds=1.000000,TimeMin=20.000000,TimeMax=20.000000)
     AttackPassiveUseCoverBehaviors(0)=(StateName=AttackStakeOutCover,TimeMin=2.000000,TimeMax=5.000000)
     AttackPassiveUseCoverBehaviors(1)=(StateName=AttackRecoverEnemy,TimeMin=2.000000,TimeMax=4.000000)
     AttackPassiveUseCoverBehaviors(2)=(StateName=AttackStationary,TimeMin=1.000000,TimeMax=4.000000)
     AttackPassiveUseCoverBehaviors(3)=(StateName=AttackFallback,TimeMin=10.000000,TimeMax=20.000000)
     AttackPassiveUseCoverBehaviors(4)=(StateName=AttackMoveToCoverCombat,TimeMin=7.000000,TimeMax=7.000000)
     AttackPassiveMeleeBehaviors(0)=(StateName=AttackMelee,TimeMin=1.000000,TimeMax=2.000000)
     AttackPassiveMeleeBehaviors(1)=(StateName=AttackFallback,TimeMin=2.000000,TimeMax=5.000000)
	bPredictChargeLocation=true
	bKamikazeClosing=true
	MaxTacticalRetreatDistance=1024.000000
	Melee01MaxDamage=50
	Melee01MomentumPerUnitDamage=3500
	ChargeMinDamage=10.000000
	ChargeMaxDamage=50.000000
	ChargeMaxMomentumTransfer=25000.000000
	ChargeMaxChangeSize=64.000000
	ChargeHeadSize=30.000000
     StepSounds(0)="U2RammerA.Footstep1"
     StepSounds(1)="U2RammerA.Footstep2"
     StepSounds(2)="U2RammerA.Footstep3"
     StepSounds(3)="U2RammerA.Footstep4"
	StepShakeRadius=1024.000000
	StepShakeMagnitude=5.000000
	StepShakeDuration=0.400000
	BecomeAggressiveHealthRatio=0.800000
	WanderPauseOdds=0.100000
	WanderPauseMax=15.000000
	WanderSpeedMin=0.250000
	WanderSpeedMax=0.250000
	WanderSpreadAngle=30.000000
	WanderViewBlockedTurnOdds=0.250000
	VoicePackage="U2RammerA"
	MinKnockDownMomentumThreshold=100.000000
	CosMinMoveForwardAngle=-1.000000
	bCanStrafe=false
	bAmbientCreature=true
	SightRadiusFriend=1024.000000
	SightRadiusFriendAlert=2500.000000
	GroundSpeed=560.000000
	AccelRate=1000.000000
	WalkingPct=0.137500
	Health=300
	ControllerClass=Class'U2Pawns.U2RammerController'
	CarcassCollisionRadius=100.000000
	CarcassCollisionHeight=40.000000
	Mesh=LegendMesh'GlmCreaturesG.Rammer'
	TransientSoundRadius=400.000000
	CollisionRadius=75.000000
	CollisionHeight=65.000000
	Mass=250.000000
     UseReticleOnEvents(0)="UseReticleText"
     UseReticleOnEvents(1)="UseReticleCorners"
     UseReticleOnEvents(2)="UseReticleSideBars"
     ProximityReticleOnEvents(0)="ProximityReticleCorners"
     ProximityReticleOnEvents(1)="ProximityReticleSideBars"
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: sk 3-1-2016 10:38:44.000 - Creation time: sk 3-1-2016 10:48:43.416 - Created with UnCodeX