RuneI
Class FireObject

source: c:\runehov\RuneI\Classes\FireObject.uc
Core.Object
   |
   +--Engine.Actor
      |
      +--Engine.Decoration
         |
         +--RuneI.DecorationRune
            |
            +--RuneI.FireObject
Direct Known Subclasses:GoblinHeadSconce, GoblinTorch, Hotbowl, LionHead, LokiSconce1, LokiSconce2, ShortBrazer, TallBrazer, Tstadt_torch

class FireObject
extends RuneI.DecorationRune

//============================================================================= // FireObject. //=============================================================================
Variables
 ParticleSystem Fire
 class FireClass
 name FireJoint
 bool bLit


Function Summary
 
simulated
PostBeginPlay()
     
//===================================================================
//
// PostBeginPlay
//
//===================================================================
 
simulated
SpawnFire()
     
//===================================================================
//
// SpawnFire
//
//===================================================================



Source Code


00001	//=============================================================================
00002	// FireObject.
00003	//=============================================================================
00004	class FireObject expands DecorationRune
00005		abstract;
00006	
00007	var() bool bLit;
00008	var() class<ParticleSystem> FireClass;
00009	var() name FireJoint;
00010	
00011	var ParticleSystem Fire;
00012	
00013	//===================================================================
00014	//
00015	// PostBeginPlay
00016	//
00017	//===================================================================
00018	
00019	simulated function PostBeginPlay()
00020	{
00021		Super.PostBeginPlay();
00022	
00023		if(bLit)
00024			SpawnFire();
00025	}
00026	
00027	//===================================================================
00028	//
00029	// SpawnFire
00030	//
00031	//===================================================================
00032	
00033	simulated function SpawnFire()
00034	{
00035		local int jointIndex;
00036	
00037		if(FireClass == None || FireJoint == '')
00038			return;
00039	
00040		jointIndex = JointNamed(FireJoint);
00041		Fire = Spawn(FireClass, self,, Location);
00042		AttachActorToJoint(Fire, jointIndex);
00043	}
00044	
00045	defaultproperties
00046	{
00047	     bLit=True
00048	     FireClass=Class'RuneI.SmallFire'
00049	     FireJoint=offset
00050	     DrawType=DT_SkeletalMesh
00051	     bCollideActors=True
00052	     bCollideWorld=True
00053	}

End Source Code