Core.Object | +--Engine.Actor | +--Engine.Projectile | +--Botpack.UTFlakShell | +--Botpack.MortarShell
int
BlastRadius
void
Explode(vector HitLocation, vector HitNormal)
00001 //============================================================================= 00002 // MortarShell. 00003 //============================================================================= 00004 class MortarShell extends UTFlakShell; 00005 00006 var() int BlastRadius; 00007 00008 function Explode(vector HitLocation, vector HitNormal) 00009 { 00010 local vector start; 00011 local FlameExplosion F; 00012 00013 HurtRadius(damage, BlastRadius, 'mortared', MomentumTransfer, HitLocation); 00014 start = Location + 10 * HitNormal; 00015 F = Spawn( class'FlameExplosion',,,Start); 00016 if ( Level.NetMode != NM_DedicatedServer ) 00017 Spawn(class'Botpack.BlastMark',self,,Location, rotator(HitNormal)); 00018 if ( F != None ) 00019 F.DrawScale *= 2.5; 00020 Destroy(); 00021 } 00022 00023 defaultproperties 00024 { 00025 BlastRadius=150 00026 MomentumTransfer=150000 00027 }