Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

Botpack.ShockProj


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
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
//=============================================================================
// ShockProj.
//=============================================================================
class ShockProj extends Projectile;

#exec OBJ LOAD FILE=textures\ASMDAlt.utx PACKAGE=Botpack.ASMDAlt

var() Sound ExploSound;

simulated function PostBeginPlay()
{
    Super.PostBeginPlay();
    if ( Level.bDropDetail )
        LightType = LT_None;
}

function SuperExplosion()
{
    HurtRadius(Damage*3, 250, MyDamageType, MomentumTransfer*2, Location );
    
    Spawn(Class'ut_ComboRing',,'',Location, Instigator.ViewRotation);
    PlaySound(ExploSound,,20.0,,2000,0.6);  
    
    Destroy(); 
}

auto state Flying
{
    function ProcessTouch (Actor Other, vector HitLocation)
    {
        If ( (Other!=Instigator) && (!Other.IsA('Projectile') || (Other.CollisionRadius > 0)) )
            Explode(HitLocation,Normal(HitLocation-Other.Location));
    }

    function BeginState()
    {
        Velocity = vector(Rotation) * speed;    
    }
}


function Explode(vector HitLocation,vector HitNormal)
{
    PlaySound(ImpactSound, SLOT_Misc, 0.5,,, 0.5+FRand());
    HurtRadius(Damage, 70, MyDamageType, MomentumTransfer, Location );
    if (Damage > 60)
        Spawn(class'ut_RingExplosion3',,, HitLocation+HitNormal*8,rotator(HitNormal));
    else
        Spawn(class'ut_RingExplosion',,, HitLocation+HitNormal*8,rotator(Velocity));        

    Destroy();
}

defaultproperties
{
     ExploSound=Sound'UnrealShare.General.SpecialExpl'
     speed=1000.000000
     Damage=55.000000
     MomentumTransfer=70000
     MyDamageType=jolted
     ImpactSound=Sound'UnrealShare.General.Expla02'
     ExplosionDecal=Class'Botpack.EnergyImpact'
     bNetTemporary=False
     RemoteRole=ROLE_SimulatedProxy
     LifeSpan=10.000000
     DrawType=DT_Sprite
     Style=STY_Translucent
     Texture=Texture'Botpack.ASMDAlt.ASMDAlt_a00'
     DrawScale=0.400000
     bUnlit=True
     CollisionRadius=12.000000
     CollisionHeight=12.000000
     bProjTarget=True
     LightType=LT_Steady
     LightEffect=LE_NonIncidence
     LightBrightness=255
     LightHue=165
     LightSaturation=72
     LightRadius=6
     bFixedRotationDir=True
     RotationRate=(Pitch=45345,Yaw=33453,Roll=63466)
     DesiredRotation=(Pitch=23442,Yaw=34234,Roll=34234)
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Do 19.5.2005 19:42:14.000 - Creation time: Fr 7.6.2013 13:15:59.579 - Created with UnCodeX