Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |
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 00049 00050 00051 00052 00053 00054 00055 00056 00057 00058 00059 00060 00061 00062 00063 00064 00065 00066 00067 00068 00069 00070 00071 00072 00073 00074 00075 00076 00077 00078 00079 00080 00081 00082 00083 00084 00085 00086 00087 00088 00089 00090 00091 00092 00093 00094 00095 00096 00097 00098 00099 00100 00101 00102 00103 00104 00105 00106 00107 00108 00109 00110 00111 00112 00113 00114 00115 00116 00117 00118 00119 00120 00121 00122 00123 00124 00125 00126 00127 00128 00129 00130 00131 00132 00133 00134 00135 00136 00137 00138 00139 00140 00141 00142 00143 00144 00145 00146 00147 00148 00149 00150 00151 00152 00153 00154 00155 00156 00157 00158 00159 00160 00161 00162 00163 00164 00165 00166 |
//============================================================================= // rocketmk2. //============================================================================= class RocketMk2 extends Projectile; #exec MESH IMPORT MESH=UTRocket ANIVFILE=MODELS\eightballrocket_a.3D DATAFILE=MODELS\eightballrocket_d.3D X=0 Y=0 Z=0 #exec MESH ORIGIN MESH=UTRocket X=0 Y=-250 Z=-30 YAW=-64 #exec MESH SEQUENCE MESH=UTRocket SEQ=All STARTFRAME=0 NUMFRAMES=2 #exec MESH SEQUENCE MESH=UTRocket SEQ=Still STARTFRAME=0 NUMFRAMES=1 #exec MESH SEQUENCE MESH=UTRocket SEQ=Wing STARTFRAME=1 NUMFRAMES=1 #exec TEXTURE IMPORT NAME=JuRocket1 FILE=MODELS\eightballrocket.PCX LODSET=2 #exec MESHMAP SCALE MESHMAP=UTRocket X=2.2 Y=2.2 Z=4.5 YAW=128 #exec MESHMAP SETTEXTURE MESHMAP=UTRocket NUM=1 TEXTURE=Jurocket1 #exec AUDIO IMPORT FILE="Sounds\RocketLauncher\brufly1c.Wav" NAME=RocketFly1 GROUP="RocketLauncher" var float SmokeRate; var bool bRing,bHitWater,bWaterStart; var int NumExtraRockets; var rockettrail trail; simulated function Destroyed() { if ( Trail != None ) Trail.Destroy(); Super.Destroyed(); } simulated function PostBeginPlay() { Trail = Spawn(class'RocketTrail',self); if ( Level.bHighDetailMode ) { SmokeRate = (200 + (0.5 + 2 * FRand()) * NumExtraRockets * 24)/Speed; if ( Level.bDropDetail ) { SoundRadius = 6; LightRadius = 3; } } else { SmokeRate = 0.15 + FRand()*(0.02+NumExtraRockets); LightRadius = 3; } SetTimer(SmokeRate, true); } simulated function Timer() { local ut_SpriteSmokePuff b; if ( Region.Zone.bWaterZone || (Level.NetMode == NM_DedicatedServer) ) Return; if ( Level.bHighDetailMode ) { if ( Level.bDropDetail || ((NumExtraRockets > 0) && (FRand() < 0.5)) ) Spawn(class'LightSmokeTrail'); else Spawn(class'UTSmokeTrail'); SmokeRate = 152/Speed; } else { SmokeRate = 0.15 + FRand()*(0.01+NumExtraRockets); b = Spawn(class'ut_SpriteSmokePuff'); b.RemoteRole = ROLE_None; } SetTimer(SmokeRate, false); } auto state Flying { simulated function ZoneChange( Zoneinfo NewZone ) { local waterring w; if (!NewZone.bWaterZone || bHitWater) Return; bHitWater = True; if ( Level.NetMode != NM_DedicatedServer ) { w = Spawn(class'WaterRing',,,,rot(16384,0,0)); w.DrawScale = 0.2; w.RemoteRole = ROLE_None; PlayAnim( 'Still', 3.0 ); } Velocity=0.6*Velocity; } simulated function ProcessTouch (Actor Other, Vector HitLocation) { if ( (Other != instigator) && !Other.IsA('Projectile') ) Explode(HitLocation,Normal(HitLocation-Other.Location)); } function BlowUp(vector HitLocation) { HurtRadius(Damage,220.0, MyDamageType, MomentumTransfer, HitLocation ); MakeNoise(1.0); } simulated function Explode(vector HitLocation, vector HitNormal) { local UT_SpriteBallExplosion s; s = spawn(class'UT_SpriteBallExplosion',,,HitLocation + HitNormal*16); s.RemoteRole = ROLE_None; BlowUp(HitLocation); Destroy(); } function BeginState() { local vector Dir; Dir = vector(Rotation); Velocity = speed * Dir; Acceleration = Dir * 50; PlayAnim( 'Wing', 0.2 ); if (Region.Zone.bWaterZone) { bHitWater = True; Velocity=0.6*Velocity; } } } defaultproperties { speed=900.000000 MaxSpeed=1600.000000 Damage=75.000000 MomentumTransfer=80000 MyDamageType=RocketDeath SpawnSound=Sound'UnrealShare.Eightball.Ignite' ImpactSound=Sound'UnrealShare.Eightball.GrenadeFloor' ExplosionDecal=Class'Botpack.BlastMark' RemoteRole=ROLE_SimulatedProxy LifeSpan=6.000000 AnimSequence=Wing AmbientSound=Sound'Botpack.RocketLauncher.RocketFly1' Mesh=LodMesh'Botpack.UTRocket' DrawScale=0.020000 AmbientGlow=96 bUnlit=True SoundRadius=14 SoundVolume=255 SoundPitch=100 LightType=LT_Steady LightEffect=LE_NonIncidence LightBrightness=255 LightHue=28 LightRadius=6 bBounce=True bFixedRotationDir=True RotationRate=(Roll=50000) DesiredRotation=(Roll=30000) } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |