RuneI
Class DwarfBattleAxe

source: c:\runehov\RuneI\Classes\DwarfBattleAxe.uc
Core.Object
   |
   +--Engine.Actor
      |
      +--Engine.Inventory
         |
         +--Engine.Weapon
            |
            +--RuneI.Axe
               |
               +--RuneI.DwarfBattleAxe
Direct Known Subclasses:None

class DwarfBattleAxe
extends RuneI.Axe

//============================================================================= // DwarfBattleAxe. //=============================================================================

Function Summary
 int CalculateDamage(Actor Victim)
 void PowerupEnded()
 void PowerupEndingPulseOff()
 void PowerupEndingPulseOn()
 void PowerupInit()
     
//=============================================================================
//
// Powerup: Gib Damage
//
//=============================================================================
 
simulated
RemovePowerupEffect()
 
simulated
SpawnPowerupEffect()



Source Code


00001	//=============================================================================
00002	// DwarfBattleAxe.
00003	//=============================================================================
00004	class DwarfBattleAxe expands axe;
00005	
00006	//=============================================================================
00007	//
00008	// Powerup: Gib Damage
00009	//
00010	//=============================================================================
00011	function PowerupInit()
00012	{	
00013		SpawnPowerupEffect();
00014		SwipeClass = PoweredUpSwipeClass;
00015		DesiredColorAdjust.X = 140;
00016	}
00017	
00018	function PowerupEndingPulseOn()
00019	{
00020		DesiredFatness = 140;
00021		DesiredColorAdjust.X = 0;
00022		DesiredColorAdjust.Y = 0;
00023		DesiredColorAdjust.Z = 0;
00024		PlaySound(PoweredUpEndingSound, SLOT_None);
00025	}
00026	
00027	function PowerupEndingPulseOff()
00028	{
00029		DesiredFatness = 128;
00030		DesiredColorAdjust.X = 140;
00031		DesiredColorAdjust.Y = 80;
00032		DesiredColorAdjust.Z = 80;
00033	}
00034	
00035	function PowerupEnded()
00036	{
00037		Super.PowerupEnded();
00038		DesiredColorAdjust.X = 0;
00039		DesiredColorAdjust.Y = 0;
00040		DesiredColorAdjust.Z = 0;
00041	}
00042	
00043	
00044	simulated function SpawnPowerupEffect()
00045	{
00046		local EffectSkeleton ES;
00047	
00048		// Spawn an EffectSkeleton that will display all powered up effects
00049		ES = Spawn(class'EffectSkelGibAxe', self);
00050		if (ES != None)
00051		{
00052			AttachActorToJoint(ES, 0);
00053		}
00054	}
00055	
00056	simulated function RemovePowerupEffect()
00057	{
00058		local actor A;
00059		// Remove Effect skeleton
00060		A = DetachActorFromJoint(0);
00061		A.Destroy();
00062	}
00063	
00064	
00065	
00066	function int CalculateDamage(actor Victim)
00067	{
00068		local int dam;
00069	
00070		dam = Super.CalculateDamage(Victim);
00071	
00072		if(bPoweredUp && dam != 0)
00073		{
00074			if (ScriptPawn(Victim)!=None && ScriptPawn(Victim).bIsBoss)
00075				return dam;
00076	
00077			dam = 1000;
00078		}
00079	
00080		return(dam);
00081	}
00082	
00083	defaultproperties
00084	{
00085	     StowMesh=1
00086	     Damage=40
00087	     BloodTexture=Texture'weapons.BattleAxeD_Battle_axeblood'
00088	     rating=4
00089	     RunePowerRequired=100
00090	     RunePowerDuration=15.000000
00091	     PowerupMessage="Super Damage!"
00092	     ThroughAir(0)=Sound'WeaponsSnd.Swings.swing02'
00093	     ThroughAirBerserk(0)=Sound'WeaponsSnd.Swings.bswing15'
00094	     HitFlesh(0)=Sound'WeaponsSnd.ImpFlesh.impfleshaxe01'
00095	     HitWood(0)=Sound'WeaponsSnd.ImpWood.impactwood06'
00096	     HitStone(0)=Sound'WeaponsSnd.ImpStone.impactstone05'
00097	     HitMetal(0)=Sound'WeaponsSnd.ImpMetal.impactcombo02'
00098	     HitDirt(0)=Sound'WeaponsSnd.ImpEarth.impactearth05'
00099	     HitShield=Sound'WeaponsSnd.Shields.shield15'
00100	     HitWeapon=Sound'WeaponsSnd.Swords.sword15'
00101	     HitBreakableWood=Sound'WeaponsSnd.ImpWood.impactwood12'
00102	     HitBreakableStone=Sound'WeaponsSnd.ImpStone.impactstone13'
00103	     SheathSound=Sound'WeaponsSnd.Stows.xstow06'
00104	     UnsheathSound=Sound'WeaponsSnd.Stows.xunstow06'
00105	     ThrownSoundLOOP=Sound'WeaponsSnd.Throws.throw03L'
00106	     PowerUpSound=Sound'WeaponsSnd.PowerUps.powerstart22'
00107	     PoweredUpSoundLOOP=Sound'WeaponsSnd.PowerUps.power39L'
00108	     PowerupIcon=Texture'RuneFX2.baxe'
00109	     PowerupIconAnim=Texture'RuneFX2.baxe1a'
00110	     PoweredUpSwipeClass=Class'RuneI.WeaponSwipeRed'
00111	     A_Idle=H5_Idle
00112	     A_Forward=walkforwardTwohands
00113	     A_Backward=H5_Backup
00114	     A_Forward45Right=H5_Walk45Right
00115	     A_Forward45Left=H5_Walk45Left
00116	     A_Backward45Right=H5_BackupRight
00117	     A_Backward45Left=H5_BackupLeft
00118	     A_StrafeRight=H5_StrafeRight
00119	     A_StrafeLeft=H5_StrafeLeft
00120	     A_Jump=H5_Jump
00121	     A_AttackA=X5_attackA
00122	     A_AttackAReturn=X5_attackAreturn
00123	     A_AttackB=X5_attackB
00124	     A_AttackBReturn=X5_attackBreturn
00125	     A_AttackC=None
00126	     A_AttackCReturn=None
00127	     A_AttackStandA=X5_StandingattackA
00128	     A_AttackStandAReturn=X5_StandingattackAreturn
00129	     A_AttackStandB=X5_StandingattackB
00130	     A_AttackStandBReturn=X5_StandingattackBreturn
00131	     A_AttackBackupA=H5_Backupattack
00132	     A_AttackBackupAReturn=None
00133	     A_AttackStrafeRight=H5_StrafeRightAttack
00134	     A_AttackStrafeLeft=H5_StrafeLeftAttack
00135	     A_JumpAttack=H5_jumpattack
00136	     A_Throw=H5_Throw
00137	     A_Powerup=H5_Powerup
00138	     A_Defend=None
00139	     A_DefendIdle=None
00140	     A_PainFront=H5_painFront
00141	     A_PainBack=H5_painFront
00142	     A_PainLeft=H5_painFront
00143	     A_PainRight=H5_painFront
00144	     A_PickupGroundLeft=H5_PickupLeft
00145	     A_PickupHighLeft=H5_PickupLeftHigh
00146	     A_Taunt=x5_taunt
00147	     A_PumpTrigger=H5_PumpTrigger
00148	     A_LeverTrigger=H5_LeverTrigger
00149	     PickupMessage="You possess a Dwarven Battle Axe"
00150	     PickupSound=Sound'OtherSnd.Pickups.grab05'
00151	     DropSound=Sound'WeaponsSnd.Drops.axedrop01'
00152	     Mass=18.000000
00153	     Skeletal=SkelModel'weapons.BattleAxe'
00154	     SkelGroupSkins(0)=Texture'weapons.BattleAxesigaxe'
00155	     SkelGroupSkins(1)=Texture'weapons.BattleAxesigaxe'
00156	}

End Source Code