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 |
//============================================================================= // rocket. //============================================================================= class GasBagBelch extends Projectile; var xEmitter SmokeTrail; var vector Dir; simulated function Destroyed() { if ( SmokeTrail != None ) SmokeTrail.mRegen = False; Super.Destroyed(); } simulated function PostBeginPlay() { if ( Level.NetMode != NM_DedicatedServer) { if ( !Level.bDropDetail ) spawn(class'RocketSmokeRing',,,Location, Rotation ); SmokeTrail = Spawn(class'BelchFlames',self); } Dir = vector(Rotation); Velocity = speed * Dir; if ( Level.bDropDetail ) { bDynamicLight = false; LightType = LT_None; } Super.PostBeginPlay(); } simulated function Landed( vector HitNormal ) { Explode(Location,HitNormal); } simulated function ProcessTouch (Actor Other, Vector HitLocation) { if ( (Other != instigator) && (!Other.IsA('Projectile') || Other.bProjTarget) ) Explode(HitLocation,Vect(0,0,1)); } function BlowUp(vector HitLocation) { HurtRadius(Damage, DamageRadius, MyDamageType, MomentumTransfer, HitLocation ); MakeNoise(1.0); } simulated function Explode(vector HitLocation, vector HitNormal) { PlaySound(sound'WeaponSounds.BExplosion3',,2.5*TransientSoundVolume); spawn(class'FlakExplosion',,,HitLocation + HitNormal*16 ); spawn(class'FlashExplosion',,,HitLocation + HitNormal*16 ); if ( (ExplosionDecal != None) && (Level.NetMode != NM_DedicatedServer) ) Spawn(ExplosionDecal,self,,Location, rotator(-HitNormal)); BlowUp(HitLocation); Destroy(); } defaultproperties { Speed=650.000000 MaxSpeed=650.000000 Damage=45.000000 DamageRadius=140.000000 MomentumTransfer=50000.000000 MyDamageType=Class'SkaarjPack.DamTypeBelch' ExplosionDecal=Class'XEffects.RocketMark' LightType=LT_Steady LightEffect=LE_QuadraticNonIncidence LightHue=28 LightBrightness=255.000000 LightRadius=5.000000 DrawType=DT_Sprite bHidden=Wahr bDynamicLight=Wahr AmbientSound=Sound'WeaponSounds.RocketLauncher.RocketLauncherProjectile' LifeSpan=6.000000 Texture=Texture'XEffectMat.Link.link_muz_red' DrawScale=0.300000 AmbientGlow=96 Style=STY_Translucent SoundVolume=255 SoundRadius=100.000000 bFixedRotationDir=Wahr RotationRate=(Roll=50000) DesiredRotation=(Roll=30000) ForceType=FT_Constant ForceRadius=100.000000 ForceScale=5.000000 } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |