RuneI
Class Fire

source: c:\runehov\RuneI\Classes\Fire.uc
Core.Object
   |
   +--Engine.Actor
      |
      +--Engine.ParticleSystem
         |
         +--RuneI.Fire
Direct Known Subclasses:BigFire, PawnFire, RespawnFire, SmallFire, TorchFire, TrailFire, ZombieChangeFire

class Fire
extends Engine.ParticleSystem

//============================================================================= // Fire. //=============================================================================

Function Summary
 bool CanBeUsed(Actor Other)
     
//============================================================================
//
// CanBeUsed
//
// Whether the actor can be used.
//============================================================================
 int GetUsePriority()
     
//============================================================================
//
// GetUsePriority
//
// Returns the priority of the weapon, lower is better
//============================================================================



Source Code


00001	//=============================================================================
00002	// Fire.
00003	//=============================================================================
00004	class Fire expands ParticleSystem;
00005	
00006	//============================================================================
00007	//
00008	// CanBeUsed
00009	//
00010	// Whether the actor can be used.
00011	//============================================================================
00012	
00013	function bool CanBeUsed(Actor Other)
00014	{
00015		local Weapon W;
00016	
00017		if(Other == None || !Other.IsA('PlayerPawn'))
00018			return(false);
00019	
00020		W = PlayerPawn(Other).Weapon;
00021	
00022		// Fire can only be used if the player is facing it
00023		if(!Other.ActorInSector(self, ANGLE_45))
00024			return(false);
00025	
00026		if(W != None && W.IsA('Torch') && Torch(W).TorchFire == None)
00027			return(true);
00028		else
00029			return(false);
00030	}
00031	
00032	//============================================================================
00033	//
00034	// GetUsePriority
00035	//
00036	// Returns the priority of the weapon, lower is better
00037	//============================================================================
00038	
00039	function int GetUsePriority()
00040	{
00041		return(8);
00042	}
00043	
00044	defaultproperties
00045	{
00046	     ParticleCount=20
00047	     ParticleTexture(0)=Texture'RuneFX.flame_orange'
00048	     ShapeVector=(X=7.000000,Y=7.000000,Z=2.000000)
00049	     VelocityMin=(X=0.300000,Y=0.300000,Z=80.000000)
00050	     VelocityMax=(X=2.500000,Y=2.500000,Z=150.000000)
00051	     ScaleMin=0.700000
00052	     ScaleMax=1.000000
00053	     ScaleDeltaX=0.900000
00054	     ScaleDeltaY=1.200000
00055	     LifeSpanMin=0.200000
00056	     LifeSpanMax=0.500000
00057	     AlphaStart=60
00058	     bAlphaFade=True
00059	     bApplyGravity=True
00060	     GravityScale=-0.100000
00061	     bApplyZoneVelocity=True
00062	     ZoneVelocityScale=0.750000
00063	     bConvergeX=True
00064	     bConvergeY=True
00065	     SpawnOverTime=0.500000
00066	     Style=STY_Translucent
00067	     bUnlit=True
00068	     SoundRadius=14
00069	     AmbientSound=Sound'EnvironmentalSnd.Fire.fire04L'
00070	}

End Source Code