rott/kf_sources/ScrnBalanceSrv/Classes/ScrnS6Rocket.uc
2026-07-14 20:27:09 +07:00

28 lines
906 B
Ucode

class ScrnS6Rocket extends SeekerSixRocketProjectile;
//don't blow up on minor damage
function TakeDamage( int Damage, Pawn InstigatedBy, Vector Hitlocation, Vector Momentum, class<DamageType> damageType, optional int HitIndex)
{
if( damageType == class'SirenScreamDamage')
{
// disable disintegration by dead Siren scream
if ( InstigatedBy != none && InstigatedBy.Health > 0 )
Disintegrate(HitLocation, vect(0,0,1));
}
else if ( !bDud && Damage >= 10 ) {
if ( (VSizeSquared(Location - OrigLoc) < ArmDistSquared) || OrigLoc == vect(0,0,0))
Disintegrate(HitLocation, vect(0,0,1));
else
Explode(HitLocation, vect(0,0,0));
}
}
defaultproperties
{
ImpactDamage=32
Damage=130.000000
DamageRadius=200.000000
MyDamageType=Class'ScrnBalanceSrv.ScrnDamTypeSeekerSixRocket'
}