class SBFireFly expands FlockPawn; // originally taken from: //============================================================================= // FireFly. // // Actor Created by Steve Nabors // Feb 2001 // http://www.planetunreal.com/slick // slickWilly@planetunreal.com // // Add to level and Adjust CircleRadius and Vertical Range. // CircleRadius determines how far out the firefly will // fly from the central location where it was placed. Vertical // Range Determines the Vertical Radius it will fly up and down. // // Be Careful not to place the FireFlies where they will // run into stuff like walls. They aren't very smart // and will get stuck. // //============================================================================= var() int CircleRadius; var() int VerticalRange; var vector CircleCenter; auto state circle { ignores seeplayer, enemynotvisible; begin: SetPhysics(PHYS_Flying); CircleCenter = Location; wander: Destination = Vrand() * CircleRadius + CircleCenter; Destination.Z = CircleCenter.Z + RandRange(-VerticalRange,VerticalRange); MoveTo(Destination); Goto('Wander'); } defaultproperties { CircleRadius=128 VerticalRange=128 AirSpeed=250.00 AccelRate=1000.00 SightRadius=2000.00 AttitudeToPlayer=ATTITUDE_Friendly Land=None bCanTeleport=False Physics=PHYS_Flying Style=STY_Translucent Sprite=Texture'Botpack.FlakGlow.fglow_a00' Texture=Texture'Botpack.FlakGlow.fglow_a00' DrawScale=0.20 bUnlit=True bGameRelevant=False bIsKillGoal=False CollisionRadius=1.00 CollisionHeight=1.00 bCollideActors=False bBlockActors=False bBlockPlayers=False bProjTarget=False LightType=LT_Steady LightEffect=13 LightBrightness=255 LightHue=30 LightSaturation=64 LightRadius=4 LightCone=128 bRotateToDesired=False RotationRate=(Pitch=50000,Yaw=50000,Roll=20000), }