00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 00013 00014 00015 00016 00017 00018 00019 00020 00021 00022 00023 00024 00025 00026 00027 00028 00029 00030 00031 00032 00033 00034 00035 00036 00037 00038 00039 00040 00041 00042 00043 00044 00045 00046 00047 00048 | //============================================================================= // Spatial Fear // Name: SFPheromone // Description: A simple actor that represents a scent mark, constantly generated // by the main actor Jael during gameplay. These marks are used by // "smell enabled" scripted pawns, to track the player by scent. // // Author: Markus Nuebel //============================================================================= class SFPheromone extends Actor; var float m_fImportance; // Private: How important this pheromone is: Between 0.0 and 1.0 var Actor m_actInstigator; // Private: Source of scent function PostBeginPlay() { Velocity = (Vector(Rotation) + VRand()) * (80 * FRand() + 20); // Velocity.z += 18; // Call to base class Super.PostBeginPlay(); } simulated function Tick( float DeltaTime ) { if ( Level.NetMode != NM_DedicatedServer ) { m_fImportance = LifeSpan / Default.LifeSpan; ScaleGlow = Lifespan; AmbientGlow = ScaleGlow * 255; DrawScale = 4*m_fImportance; } // Call to base class Super.Tick(DeltaTime); } defaultproperties { bHidden=True LifeSpan=50.000000 DrawType=DT_Mesh Style=STY_Translucent Mesh=LodMesh'UnrealShare.BSpot' AmbientGlow=200 bGameRelevant=True CollisionRadius=0.000000 CollisionHeight=0.000000 } |