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

DeusEx.LAM


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

var float   mpBlastRadius;
var float   mpProxRadius;
var float   mpLAMDamage;
var float   mpFuselength;

simulated function Tick(float deltaTime)
{
    local float blinkRate;

    Super.Tick(deltaTime);

    if (bDisabled)
    {
        Skin = Texture'BlackMaskTex';
        return;
    }

    // flash faster as the time expires
    if (fuseLength - time <= 0.75)
        blinkRate = 0.1;
    else if (fuseLength - time <= fuseLength * 0.5)
        blinkRate = 0.3;
    else
        blinkRate = 0.5;

   if ((Level.NetMode == NM_Standalone) || (Role < ROLE_Authority) || (Level.NetMode == NM_ListenServer))
   {
      if (Abs((fuseLength - time)) % blinkRate > blinkRate * 0.5)
         Skin = Texture'BlackMaskTex';
      else
         Skin = Texture'LAM3rdTex1';
   }
}

simulated function PreBeginPlay()
{
    Super.PreBeginPlay();

    if ( Level.NetMode != NM_Standalone )
    {
        blastRadius=mpBlastRadius;
        proxRadius=mpProxRadius;
        Damage=mpLAMDamage;
        fuseLength=mpFuselength;
        bIgnoresNanoDefense=True;
    }
}

defaultproperties
{
     mpBlastRadius=512.000000
     mpProxRadius=128.000000
     mpLAMDamage=500.000000
     mpFuselength=1.500000
     fuseLength=3.000000
     proxRadius=128.000000
     blastRadius=384.000000
     spawnWeaponClass=Class'DeusEx.WeaponLAM'
     ItemName="Lightweight Attack Munition (LAM)"
     speed=1000.000000
     MaxSpeed=1000.000000
     Damage=500.000000
     MomentumTransfer=50000
     ImpactSound=Sound'DeusExSounds.Weapons.LAMExplode'
     ExplosionDecal=Class'DeusEx.ScorchMark'
     LifeSpan=0.000000
     Mesh=LodMesh'DeusExItems.LAMPickup'
     CollisionRadius=4.300000
     CollisionHeight=3.800000
     Mass=5.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:52.000 - Creation time: Mon 8/11/2021 16:31:27.979 - Created with UnCodeX