RuneI
Class GoblinAxePowerup

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

class GoblinAxePowerup
extends RuneI.GoblinAxe

//============================================================================= // GoblinAxePowerup. //=============================================================================
States
Throw, GoblinAxePowerup
State Throw Function Summary
 void ZoneChange(ZoneInfo NewZone)
 void Touch(Actor Other)
 void HitWall(vector HitNormal, Actor HitWall)
     
// Disappear immediately after hitting something


State GoblinAxePowerup Function Summary



Source Code


00001	//=============================================================================
00002	// GoblinAxePowerup.
00003	//=============================================================================
00004	class GoblinAxePowerup expands GoblinAxe;
00005	
00006	
00007	auto state GoblinAxePowerup
00008	{
00009		// avoid pickup state
00010	}
00011	
00012	state Throw
00013	{
00014		// Disappear immediately after hitting something
00015		function HitWall(vector HitNormal, actor HitWall)
00016		{
00017			Super.HitWall(HitNormal, HitWall);
00018			Destroy();
00019		}
00020	
00021		function Touch(Actor Other)
00022		{
00023			if(Other.IsA('ScriptPawn') && ScriptPawn(Other).bIsBoss) 
00024				Damage = 0; // Thrown goblin axes don't affect bosses
00025	
00026			Super.Touch(Other);
00027			if (Other.Owner==Owner || Other==Owner)
00028				return;
00029			Destroy();
00030		}
00031	}
00032	
00033	function ZoneChange(ZoneInfo NewZone)
00034	{
00035		Super.ZoneChange(NewZone);
00036	
00037		if(NewZone.bWaterZone)
00038			Destroy();
00039	}
00040	
00041	defaultproperties
00042	{
00043	     Style=STY_Translucent
00044	     ScaleGlow=0.700000
00045	     ColorAdjust=(X=128.000000,Y=128.000000)
00046	     DesiredColorAdjust=(X=128.000000,Y=128.000000)
00047	}

End Source Code