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 | //============================================================================= // Spatial Fear // Class: SFMiteProjectile // Descripton: Projectile class, emitted by the mitein ranged attack mode. // Should mimic an acid spit. // // Author: Markus Nuebel //============================================================================= class SFMiteProjectile extends SFProjectile; #exec OBJ LOAD FILE=SPF-Content.uax PACKAGE=SPF-Content GROUP=Creatures auto state Flying { simulated function ProcessTouch (Actor Other, Vector HitLocation) { local vector momentum; if ((SFMite(Other) == None) && (SFMiteProjectile(Other) == None)) { if ( Role == ROLE_Authority ) { momentum = 10000.0 * Normal(Velocity); Other.TakeDamage(Damage, instigator, HitLocation, momentum, 'acid'); } Destroy(); } } simulated function Explode(vector HitLocation, vector HitNormal) { local SmallSpark2 s; PlaySound(ImpactSound); MakeNoise(1.0); s = spawn(class'SmallSpark2',,,HitLocation+HitNormal*5,rotator(HitNormal*2+VRand())); s.RemoteRole = ROLE_None; destroy(); } function BeginState() { Velocity = Vector(Rotation) * speed; PlaySound(SpawnSound); PlayAnim('Flying'); } Begin: } defaultproperties { speed=450.000000 MaxSpeed=450.000000 Damage=5.000000 MomentumTransfer=10000 SpawnSound=Sound'SPF-Content.Creatures.MiteSpit' ImpactSound=Sound'SPF-Content.Creatures.MiteSpitImpact' Physics=PHYS_Falling RemoteRole=ROLE_SimulatedProxy LifeSpan=15.000000 AnimSequence=Flying AnimRate=1.000000 Style=STY_Translucent Texture=Texture'Botpack.Effects.jenergy3' Mesh=LodMesh'Botpack.BioGelm' DrawScale=0.900000 AmbientGlow=255 bUnlit=True bBounce=True } |