Core.Object | +--Engine.Actor | +--Engine.Projectile | +--UnrealShare.SkaarjProjectile | +--UnrealI.QueenProjectile
00001 //============================================================================= 00002 // QueenProjectile. 00003 //============================================================================= 00004 class QueenProjectile extends SkaarjProjectile; 00005 00006 auto state Flying 00007 { 00008 simulated function ProcessTouch (Actor Other, Vector HitLocation) 00009 { 00010 local vector momentum; 00011 00012 if ( !Other.IsA('Queen') ) 00013 { 00014 if ( Role == ROLE_Authority ) 00015 { 00016 momentum = 10000.0 * Normal(Velocity); 00017 Other.TakeDamage(Damage, instigator, HitLocation, momentum, 'zapped'); 00018 } 00019 Destroy(); 00020 } 00021 } 00022 } 00023 00024 defaultproperties 00025 { 00026 MaxSpeed=2000.000000 00027 }