RuneI
Class HelTorch

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

class HelTorch
extends RuneI.Torch

//============================================================================= // HelTorch. //=============================================================================

Function Summary
 void Ignite()
     
//=============================================================================
//
// Ignite
//
//=============================================================================



Source Code


00001	//=============================================================================
00002	// HelTorch.
00003	//=============================================================================
00004	class HelTorch expands Torch;
00005	
00006	
00007	//=============================================================================
00008	//
00009	// Ignite
00010	//
00011	//=============================================================================
00012	function Ignite()
00013	{
00014		if (Region.Zone.bWaterZone)
00015			return;
00016	
00017		// Spawn fire on the torch
00018		TorchFire = Spawn(class'torchfire',,, GetJointPos(JointNamed('offset')),);
00019		PlaySound(IgniteSound, SLOT_Interface);
00020		
00021		AttachActorToJoint(TorchFire, JointNamed('offset'));
00022		
00023		DamageType = 'fire';
00024		bUnlit = true;
00025		ScaleGlow = 2.0;
00026		HitCount = 3.0;
00027		DouseTime = 0.0;
00028	
00029		// Reset weapon anims
00030		A_Idle = Default.A_Idle;
00031	    A_Forward = Default.A_Forward;
00032	    A_Backward = Default.A_Backward;
00033	    A_Backward45Right = Default.A_Backward45Right;
00034	    A_Backward45Left = Default.A_Backward45Left;
00035	    A_StrafeRight = Default.A_StrafeRight;
00036	    A_StrafeLeft = Default.A_StrafeLeft;
00037		A_Forward45Right = Default.A_Forward45Right;
00038		A_Forward45Left = Default.A_Forward45Left;
00039		A_AttackA = Default.A_AttackA;
00040		A_AttackStrafeRight = Default.A_AttackStrafeRight;
00041		A_AttackStrafeLeft = Default.A_AttackStrafeLeft;
00042		A_AttackStandA = Default.A_AttackStandA;
00043		A_AttackStandAReturn = Default.A_AttackStandAReturn;
00044		A_AttackStandB = Default.A_AttackStandB;
00045		A_AttackStandBReturn = Default.A_AttackStandBReturn;
00046	
00047	    LightType=LT_Steady;
00048	    LightEffect=LE_None;
00049	    LightBrightness=230;
00050	    LightHue=20;
00051	    LightSaturation=20;
00052	    LightRadius=16;
00053	}
00054	
00055	defaultproperties
00056	{
00057	     Style=STY_Masked
00058	     CollisionHeight=5.000000
00059	     Skeletal=SkelModel'objects.HelTorch'
00060	}

End Source Code