Core.Object | +--Engine.Actor | +--Engine.Pawn | +--UnrealShare.ScriptedPawn | +--UnrealI.Gasbag | +--UnrealI.GiantGasbag
void
SpawnBelch()
00001 //============================================================================= 00002 // GiantGasbag. 00003 //============================================================================= 00004 class GiantGasbag extends Gasbag; 00005 00006 function SpawnBelch() 00007 { 00008 local Gasbag G; 00009 local vector X,Y,Z, projStart; 00010 local actor P; 00011 00012 GetAxes(Rotation,X,Y,Z); 00013 projStart = Location + 0.5 * CollisionRadius * X - 0.3 * CollisionHeight * Z; 00014 if ( (numChildren > 1) || (FRand() > 0.2) ) 00015 { 00016 P = spawn(RangedProjectile ,self,'',projStart,AdjustAim(ProjectileSpeed, projStart, 400, bLeadTarget, bWarnTarget)); 00017 if ( P != None ) 00018 P.DrawScale *= 2; 00019 } 00020 else 00021 { 00022 G = spawn(class 'Gasbag' ,,'',projStart + (0.6 * CollisionRadius + class'Gasbag'.Default.CollisionRadius) * X); 00023 if ( G != None ) 00024 { 00025 G.ParentBag = self; 00026 numChildren++; 00027 } 00028 } 00029 } 00030 00031 defaultproperties 00032 { 00033 PunchDamage=40 00034 PoundDamage=65 00035 Health=600 00036 CombatStyle=0.500000 00037 DrawScale=3.000000 00038 CollisionRadius=160.000000 00039 CollisionHeight=108.000000 00040 }