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

DeusEx.SpyDrone


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
//=============================================================================
// SpyDrone.
//=============================================================================
class SpyDrone extends ThrownProjectile;

auto state Flying
{
    function ProcessTouch (Actor Other, Vector HitLocation)
    {
        // do nothing
    }
    simulated function HitWall (vector HitNormal, actor HitWall)
    {
        // do nothing
    }
}

function Tick(float deltaTime)
{
    // do nothing
}

function TakeDamage(int Damage, Pawn instigatedBy, Vector HitLocation, Vector Momentum, name damageType)
{
    // fall to the ground if EMP'ed
    if ((DamageType == 'EMP') && !bDisabled)
    {
        SetPhysics(PHYS_Falling);
        bBounce = True;
        LifeSpan = 10.0;
    }

    if ( Level.NetMode != NM_Standalone )
    {
        if ( DeusExPlayer(Owner) != None )
            DeusExPlayer(Owner).ForceDroneOff();
        else
            log("Warning:Drone with no owner?" );
    }
    Super.TakeDamage(Damage, instigatedBy, HitLocation, Momentum, damageType);
}

function BeginPlay()
{
    // do nothing
}

function Destroyed()
{
    if ( DeusExPlayer(Owner) != None )
        DeusExPlayer(Owner).aDrone = None;

    Super.Destroyed();
}

defaultproperties
{
     elasticity=0.200000
     fuseLength=0.000000
     proxRadius=128.000000
     bHighlight=False
     bBlood=False
     bDebris=False
     blastRadius=128.000000
     DamageType=EMP
     bEmitDanger=False
     ItemName="Remote Spy Drone"
     MaxSpeed=0.000000
     Damage=20.000000
     ImpactSound=Sound'DeusExSounds.Generic.SmallExplosion2'
     Physics=PHYS_Projectile
     RemoteRole=ROLE_DumbProxy
     LifeSpan=0.000000
     Mesh=LodMesh'DeusExCharacters.SpyDrone'
     SoundRadius=24
     SoundVolume=192
     AmbientSound=Sound'DeusExSounds.Augmentation.AugDroneLoop'
     CollisionRadius=13.000000
     CollisionHeight=2.760000
     Mass=10.000000
     Buoyancy=2.000000
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Mon 8/11/2021 16:22:50.000 - Creation time: Mon 8/11/2021 16:31:32.995 - Created with UnCodeX