Core.Object | +--Engine.Actor | +--Engine.Effects | +--RuneI.EffectSkeleton | +--RuneI.EffectSkelFlameSword
int
FireJoint
simulated
Spawned()
Timer()
00001 //============================================================================= 00002 // EffectSkelFlameSword. 00003 //============================================================================= 00004 class EffectSkelFlameSword expands EffectSkeleton; 00005 00006 var(Sounds) sound IgniteSound; 00007 00008 var int FireJoint; 00009 00010 simulated function Spawned() 00011 { 00012 FireJoint = 2; // First Joint on flame sword 00013 SetTimer(0.1, true); 00014 00015 } 00016 00017 simulated function Timer() 00018 { 00019 local actor fire; 00020 00021 fire = Spawn(class'TorchFire', self,, GetJointPos(FireJoint)); 00022 if(fire != None) 00023 { 00024 AttachActorToJoint(fire, FireJoint); 00025 fire.RemoteRole = ROLE_None; 00026 fire.bStasis = false; 00027 00028 if(FireJoint > 3) 00029 AmbientSound = None; 00030 else 00031 PlaySound(IgniteSound, SLOT_Interface); 00032 } 00033 00034 FireJoint++; 00035 if(FireJoint > 6) 00036 SetTimer(0, false); 00037 } 00038 00039 defaultproperties 00040 { 00041 IgniteSound=Sound'EnvironmentalSnd.Fire.fireignite01' 00042 DrawScale=0.650000 00043 }