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

DeusEx.ShieldEffect


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
//=============================================================================
// ShieldEffect.
//=============================================================================
class ShieldEffect extends Effects;

// Player shield effect
var float TimeSinceStrong;
var DeusExPlayer AttachedPlayer;

simulated function Tick(float deltaTime)
{
   if (AttachedPlayer == None)
   {
      Destroy();
      return;
   }

   if (AttachedPlayer.ShieldStatus == SS_Strong)
      TimeSinceStrong = 1.0;
   else
      TimeSinceStrong = TimeSinceStrong - deltaTime;

   if (TimeSinceStrong < 0)
      TimeSinceStrong = 0;

   // DEUS_EX AMSD Won't work right on listen server yet, but this will be low bandwidth for
   // the moment for dedicated server.      
   ScaleGlow = 0.5 * (TimeSinceStrong / 1.0);

   SetLocation(AttachedPlayer.Location);
}

defaultproperties
{
     DrawType=DT_Mesh
     Style=STY_Translucent
     Mesh=LodMesh'DeusExItems.EllipseEffect'
     bUnlit=True
}

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:32.505 - Created with UnCodeX