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

JBAddonLlama.JBInterfaceLlamaHUDOverlay


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
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109
00110
00111
00112
00113
00114
00115
00116
00117
00118
00119
00120
00121
00122
00123
00124
00125
00126
00127
00128
00129
00130
00131
00132
00133
00134
00135
00136
00137
00138
00139
00140
00141
00142
00143
00144
00145
00146
00147
00148
00149
00150
00151
00152
00153
00154
00155
00156
00157
00158
00159
00160
00161
00162
00163
00164
00165
00166
00167
00168
00169
00170
00171
00172
00173
00174
00175
00176
00177
00178
00179
00180
00181
00182
00183
00184
00185
00186
00187
00188
00189
00190
00191
00192
00193
00194
00195
00196
00197
00198
00199
00200
00201
00202
00203
00204
00205
00206
00207
00208
00209
00210
00211
00212
00213
00214
00215
00216
00217
00218
00219
00220
00221
00222
00223
00224
00225
00226
00227
00228
00229
00230
00231
00232
00233
00234
00235
00236
00237
00238
00239
00240
00241
00242
00243
00244
00245
00246
00247
00248
00249
00250
00251
00252
00253
00254
00255
00256
00257
00258
00259
00260
00261
00262
00263
00264
00265
00266
00267
00268
00269
00270
00271
00272
00273
00274
00275
00276
00277
00278
00279
00280
00281
00282
00283
00284
00285
00286
00287
00288
00289
00290
00291
00292
00293
00294
00295
00296
00297
00298
00299
00300
00301
00302
00303
00304
00305
00306
00307
00308
00309
00310
00311
00312
00313
00314
00315
00316
00317
00318
00319
00320
00321
00322
00323
00324
00325
00326
00327
00328
00329
00330
00331
00332
00333
00334
00335
00336
00337
00338
00339
00340
00341
00342
00343
00344
00345
00346
00347
00348
00349
00350
00351
00352
00353
00354
00355
00356
00357
00358
00359
00360
00361
00362
00363
00364
00365
00366
00367
00368
00369
00370
00371
00372
00373
00374
00375
00376
00377
00378
00379
00380
00381
00382
00383
00384
00385
00386
00387
00388
00389
00390
00391
00392
00393
00394
00395
00396
00397
00398
00399
00400
00401
00402
00403
00404
00405
00406
00407
00408
00409
00410
00411
00412
00413
00414
00415
00416
00417
00418
00419
00420
00421
00422
00423
00424
00425
00426
00427
00428
00429
00430
00431
00432
00433
00434
00435
00436
00437
00438
00439
00440
00441
00442
00443
00444
00445
00446
00447
00448
00449
00450
00451
00452
00453
00454
00455
00456
00457
00458
00459
00460
00461
00462
00463
00464
00465
00466
00467
00468
00469
00470
00471
00472
00473
00474
00475
00476
00477
00478
00479
00480
00481
00482
00483
00484
00485
00486
00487
00488
00489
00490
00491
00492
00493
00494
00495
00496
00497
00498
00499
00500
00501
00502
00503
00504
00505
00506
00507
00508
00509
00510
00511
00512
00513
00514
00515
00516
00517
00518
00519
00520
00521
00522
00523
00524
00525
00526
00527
00528
00529
00530
00531
00532
00533
00534
00535
00536
00537
00538
00539
00540
00541
00542
00543
00544
00545
00546
00547
00548
00549
00550
00551
00552
00553
00554
00555
00556
00557
00558
00559
00560
00561
00562
00563
00564
00565
00566
00567
00568
00569
00570
00571
00572
00573
00574
00575
00576
00577
00578
00579
00580
00581
00582
00583
00584
00585
00586
00587
00588
00589
00590
00591
00592
00593
00594
00595
00596
00597
00598
00599
00600
00601
00602
00603
00604
00605
00606
00607
00608
00609
00610
00611
00612
00613
00614
00615
00616
00617
00618
00619
00620
00621
00622
00623
00624
00625
00626
00627
00628
00629
00630
00631
00632
00633
00634
//=============================================================================
// JBInterfaceLlamaHUDOverlay
// Copyright 2003 by Wormbo <wormbo@onlinehome.de>
// $Id: JBInterfaceLlamaHUDOverlay.uc,v 1.12 2007-02-16 10:03:37 wormbo Exp $
//
// Registered as overlay for the Jailbreak HUD to draw the llama effects.
// Spawned client-side through the static function FindLlamaHUDOverlay called
// by a JBLlamaTag actor.
//=============================================================================


class JBInterfaceLlamaHUDOverlay extends Info notplaceable;


//=============================================================================
// Imports
//=============================================================================

#exec Texture Import File=Textures\Llama.dds Mips=Off Alpha=1 Group=LlamaCompass
//#exec Texture Import File=Textures\LlamaIconMask.dds Mips=Off Alpha=1 Group=LlamaCompass
#exec Texture Import File=Textures\LlamaScreenOverlay.dds Mips=Off Alpha=1 Group=LlamaHudOverlay
#exec Audio Import File=Sounds\Heartbeat.wav
#exec obj load file=..\Textures\HudContent.utx


//=============================================================================
// Variables
//=============================================================================

var private JBInterfaceHud       JailbreakHUD;          // local player's Jailbreak HUD
var private array<JBLlamaArrow>  LlamaArrows;           // a spinning arrow over the Llama's head
var private JBLlamaTag           LocalLlamaTag;         // llama tag of local player (if any)
var private float                TimeIndexLocalLlamaStart;
var GameEngine                   GameEngine;            // reference to the GameEngine object
var MotionBlur                   MotionBlur;            // a motion blur effect for the llama
var CameraOverlay                CameraOverlay;         // an overlay camera effect for the llama
var bool                         bCameraEffectsEnabled; // whether the motion blur and overlay is active
var private float                HUDCanvasScale;
var private bool                 bHeartbeatPlayed;

// llama compass
var private HudBase.SpriteWidget LlamaCompassIcon;    // the llama icon
var private HudBase.SpriteWidget LlamaCompassIconBG;  // black circle background
var private HudBase.SpriteWidget LlamaCompassBG;      // connection between canvas border and actual compass
var private HudBase.SpriteWidget LlamaCompassDot;     // compas dot showing llamas
var private Material LlamaizedCompassIcon;            // the llama icon material when player is a llama
var private Material LlamaScreenOverlayMaterial;      // screen overlay material when player is a llama
var private float LlamaCompassSlideDistance;          // relative horizontal distance the llama compass is moved
var private float LlamaCompassSlidePosition;          // 0.0 = completely hidden, 1.0 = fully visible
var private float LlamaIconPulseRateR;
var private float LlamaIconPulseRateG;
var private float LlamaIconPulseRateB;


//=============================================================================
// HueToRGB
//
// Converts a LightHue value to a color assuming full saturation.
// Adapted from inio's implementation of the Chroma2RGB function at
// http://wiki.beyondunreal.com/wiki/HLS_To_RGB_Conversion
//=============================================================================

static final function color HueToRGB(float Hue)
{
  local color C;
  local float R,G,B;
  
  hue /= 85;
  if (hue <= 1)      { g = hue  ; r = 1-g; b = 0;}
  else if (hue <= 2) { b = hue-1; g = 1-b; r = 0;}
  else               { r = hue-2; b = 1-r; g = 0;}
  
  C.R = R * 255.0;
  C.G = G * 255.0;
  C.B = B * 255.0;
  C.A = 255;
  return C;
}


//=============================================================================
// FindCameraEffect
//
// Looks for an existing CameraEffect object in the CameraEffects array first.
// Only if it doesn't find one, it takes one from the ObjectPool.
// That CameraEffect will be returned.
//=============================================================================

simulated function CameraEffect FindCameraEffect(class<CameraEffect> CameraEffectClass)
{
  local PlayerController PlayerControllerLocal;
  local CameraEffect CameraEffectFound;
  local int i;
  
  PlayerControllerLocal = Level.GetLocalPlayerController();
  if ( PlayerControllerLocal != None ) {
    for (i = 0; i < PlayerControllerLocal.CameraEffects.Length; i++)
      if ( PlayerControllerLocal.CameraEffects[i].Class == CameraEffectClass ) {
        CameraEffectFound = PlayerControllerLocal.CameraEffects[i];
        //log("Found"@CameraEffectFound@"in CammeraEffects array");
        break;
      }
    if ( CameraEffectFound == None ) {
      CameraEffectFound = CameraEffect(Level.ObjectPool.AllocateObject(CameraEffectClass));
      //log("Got"@CameraEffectFound@"from ObjectPool");
    }
    if ( CameraEffectFound != None )
      PlayerControllerLocal.AddCameraEffect(CameraEffectFound);
  }
  return CameraEffectFound;
}


//=============================================================================
// RemoveCameraEffect
//
// Removes one reference to the CameraEffect from the CameraEffects array. If
// there are any more references to the same CameraEffect object, they remain
// there. The CameraEffect will be put back in the ObjectPool if no other
// references to it are left in the CameraEffects array.
//=============================================================================

simulated function RemoveCameraEffect(CameraEffect CameraEffect)
{
  local PlayerController PlayerControllerLocal;
  local int i;
  
  PlayerControllerLocal = Level.GetLocalPlayerController();
  if ( PlayerControllerLocal != None ) {
    PlayerControllerLocal.RemoveCameraEffect(CameraEffect);
    for (i = 0; i < PlayerControllerLocal.CameraEffects.Length; i++)
      if ( PlayerControllerLocal.CameraEffects[i] == CameraEffect ) {
        //log(CameraEffect@"still in CameraEffects array");
        return;
      }
    //log("Freeing"@CameraEffect);
    Level.ObjectPool.FreeObject(CameraEffect);
  }
}


//=============================================================================
// PostBeginPlay
//
// Registers this actor as HUD overlay.
//=============================================================================

simulated function PostBeginPlay()
{
  local PlayerController PlayerControllerLocal;
  
  PlayerControllerLocal = Level.GetLocalPlayerController();
  if ( PlayerControllerLocal != None ) {
    JailbreakHUD = JBInterfaceHud(PlayerControllerLocal.myHud);
    JBInterfaceHud(PlayerControllerLocal.myHud).RegisterOverlay(Self);
  }
}


//=============================================================================
// Destroyed
//
// Automatically unregisters this actor.
//=============================================================================

simulated event Destroyed()
{
  if ( JailbreakHUD != None ) {
    if ( HUDCanvasScale != 0 && JailbreakHUD.HUDCanvasScale != HUDCanvasScale ) {
      JailbreakHUD.HUDCanvasScale = HUDCanvasScale;
      JailbreakHUD.SaveConfig();
    }
    JailbreakHUD.UnregisterOverlay(Self);
  }
  
  if ( bCameraEffectsEnabled ) {
    if ( CameraOverlay != None )
      RemoveCameraEffect(CameraOverlay);
    if ( MotionBlur != None )
      RemoveCameraEffect(MotionBlur);
    MotionBlur = None;
    CameraOverlay = None;
  }
}


//=============================================================================
// Tick
//
// Updates the relative positions of the llama HUD elements.
//=============================================================================

simulated event Tick(float DeltaTime)
{
  local float HeartbeatTime;
  local PlayerController PlayerControllerLocal;
  
  PlayerControllerLocal = Level.GetLocalPlayerController();
  
  // update Llama compass position
  if ( ShouldDisplayLlamaCompass() ) {
    if ( LlamaCompassSlidePosition < 1.0 ) {
      LlamaCompassSlidePosition += DeltaTime;
      if ( LlamaCompassSlidePosition > 1.0 )
        LlamaCompassSlidePosition = 1.0;
    }
  }
  else {
    if ( LlamaCompassSlidePosition > 0.0 ) {
      LlamaCompassSlidePosition -= DeltaTime;
      if ( LlamaCompassSlidePosition < 0.0 )
        LlamaCompassSlidePosition = 0.0;
    }
  }
  
  if ( LocalLlamaTag != None && Pawn(PlayerControllerLocal.ViewTarget) != None
      && Pawn(PlayerControllerLocal.ViewTarget).Controller == PlayerControllerLocal
      && (MotionBlur == None && MotionBlurWanted() || CameraOverlay == None) ) {
    if ( MotionBlur == None && MotionBlurWanted() ) {
      MotionBlur = MotionBlur(FindCameraEffect(class'MotionBlur'));
      MotionBlur.Alpha = 1.0;
      MotionBlur.BlurAlpha = 128;
      MotionBlur.FinalEffect = False;
    }
    if ( CameraOverlay == None ) {
      CameraOverlay = CameraOverlay(FindCameraEffect(class'CameraOverlay'));
      CameraOverlay.OverlayMaterial = LlamaScreenOverlayMaterial;
      CameraOverlay.Alpha = 1.0;
      CameraOverlay.FinalEffect = False;
    }
    bCameraEffectsEnabled = True;
    if ( JailbreakHUD != None )
      HUDCanvasScale = JailbreakHUD.HUDCanvasScale;
  }
  else if ( bCameraEffectsEnabled && (LocalLlamaTag == None || Pawn(PlayerControllerLocal.ViewTarget) == None
      || Pawn(PlayerControllerLocal.ViewTarget).Controller != PlayerControllerLocal) ) {
    if ( CameraOverlay != None )
      RemoveCameraEffect(CameraOverlay);
    if ( MotionBlur != None )
      RemoveCameraEffect(MotionBlur);
    MotionBlur = None;
    CameraOverlay = None;
    bCameraEffectsEnabled = False;
    if ( JailbreakHUD != None ) {
      JailbreakHUD.HUDCanvasScale = HUDCanvasScale;
      JailbreakHUD.SaveConfig();
    }
  }
  
  if ( JailbreakHUD != None && LocalLlamaTag != None
      && PlayerControllerLocal.ViewTarget == PlayerControllerLocal.Pawn ) {
    HeartbeatTime = ((Level.TimeSeconds - LocalLlamaTag.LlamaStartTime) / Level.TimeDilation) % 1.0;
    if ( HeartbeatTime < 0.05 ) {
      JailbreakHUD.HUDCanvasScale = HUDCanvasScale + 2 * HeartbeatTime;
      if ( !bHeartbeatPlayed ) {
        PlayerController(JailbreakHUD.Owner).ViewTarget.PlayOwnedSound(sound'Heartbeat', SLOT_Misc);
        bHeartbeatPlayed = True;
      }
    }
    else {
      bHeartbeatPlayed = False;
      if ( HeartbeatTime < 0.35 )
        JailbreakHUD.HUDCanvasScale = HUDCanvasScale + (0.35 - HeartbeatTime) / 3;
      else if ( HeartbeatTime < 0.4 )
        JailbreakHUD.HUDCanvasScale = HUDCanvasScale + (HeartbeatTime - 0.35) * 2;
      else if ( HeartbeatTime < 0.7 )
        JailbreakHUD.HUDCanvasScale = HUDCanvasScale + (0.7 - HeartbeatTime) / 3;
      else
        JailbreakHUD.HUDCanvasScale = HUDCanvasScale;
    }
  }
  
  if ( CameraOverlay != None )
    CameraOverlay.OverlayColor = HueToRGB((Level.TimeSeconds * 100.0) % 256);
}


//=============================================================================
// MotionBlurWanted
//
// Returns whether MotionBlur should be used.
//=============================================================================

simulated function bool MotionBlurWanted()
{
  if ( GameEngine == None )
    foreach AllObjects(class'GameEngine', GameEngine)
      break;
  
  if ( GameEngine != None && GameEngine.GRenDev != None && !GameEngine.GRenDev.IsA('D3DRenderDevice')
      && !GameEngine.GRenDev.IsA('D3D9RenderDevice') )
    return false;
  
  return true;
}


//=============================================================================
// RenderOverlays
//
// Render the Llama effects.
//=============================================================================

simulated function RenderOverlays(Canvas C)
{
  local int i;
  local float AngleDot;
  local vector LocationOwner;
  local plane OldModulate;
  local Pawn thisLlama;
  
  if ( JailbreakHUD == None ) {
    warn("JailbreakHUD == None");
    return;
  }
  
  UpdateLlamaHUDElements();
  
  OldModulate = C.ColorModulate;
  C.ColorModulate.X = 1;
  C.ColorModulate.Y = 1;
  C.ColorModulate.Z = 1;
  C.ColorModulate.W = JailbreakHUD.HudOpacity / 255;
  
  if ( ShouldDisplayLlamaCompass() || LlamaCompassSlidePosition > 0.0 ) {
    JailbreakHUD.DrawSpriteWidget(C, LlamaCompassBG);
    JailbreakHUD.DrawSpriteWidget(C, LlamaCompassIconBG);
    JailbreakHUD.DrawSpriteWidget(C, LlamaCompassIcon);
  }
  
  if ( JailbreakHUD.PawnOwner != None)
    LocationOwner = JailbreakHUD.PawnOwner.Location;
  else
    LocationOwner = JailbreakHUD.PlayerOwner.Location;
  
  C.DrawColor = JailbreakHUD.GoldColor;
  for (i = 0; i < LlamaArrows.Length; i++) {
    if ( LlamaArrows[i].LlamaTag != None && LlamaArrows[i].GetArrowOwner() != None ) {
      if ( !LlamaArrows[i].GetArrowOwner().bHidden )
        thisLlama = LlamaArrows[i].GetArrowOwner();
      else if ( LlamaArrows[i].GetArrowOwner().Controller != None )
        thisLlama = LlamaArrows[i].GetArrowOwner().Controller.Pawn;
      
      if ( thisLlama != None && C.Viewport.Actor.LineOfSightTo(thisLlama) )
        LlamaArrows[i].DrawArrow(C, thisLlama.Location + vect(0,0,1) * (2 * thisLlama.default.CollisionHeight - thisLlama.CollisionHeight + 40));
      else
        LlamaArrows[i].DrawArrow(C);
    }
    else
      LlamaArrows[i].DrawArrow(C);
    
    if ( ShouldDisplayLlamaCompass() && LlamaArrows[i].LlamaTag != None && LlamaArrows[i].LlamaTag != LocalLlamaTag
        && LlamaArrows[i].LlamaTag.TagPlayer != None ) {
      AngleDot = ((rotator(LlamaArrows[i].LlamaTag.TagPlayer.GetLocationPawn() - LocationOwner).Yaw - JailbreakHUD.PlayerOwner.Rotation.Yaw) & 65535) * Pi / 32768;
      LlamaCompassDot.PosX = LlamaCompassIconBG.PosX + 0.0305 * Sin(AngleDot) * JailbreakHUD.HudScale;
      LlamaCompassDot.PosY = LlamaCompassIconBG.PosY - 0.0405 * Cos(AngleDot) * JailbreakHUD.HudScale;
      JailbreakHUD.DrawSpriteWidget(C, LlamaCompassDot);
    }
  }
  C.ColorModulate = OldModulate;
}


//=============================================================================
// UpdateLlamaHUDElements
//
// Updates the relative draw locations of the SpriteWidgets based on
// LlamaCompassSlidePosition and LlamaIconSlidePosition.
//=============================================================================

simulated function UpdateLlamaHUDElements()
{
  if ( LocalLlamaTag != None ) {
    LlamaCompassIcon.Tints[0].R = 255 * (0.85 + 0.15 * Cos(Level.TimeSeconds * Pi * LlamaIconPulseRateR));
    LlamaCompassIcon.Tints[0].G = 255 * (0.85 + 0.15 * Cos(Level.TimeSeconds * Pi * LlamaIconPulseRateG));
    LlamaCompassIcon.Tints[0].B = 255 * (0.85 + 0.15 * Cos(Level.TimeSeconds * Pi * LlamaIconPulseRateB));
    LlamaCompassIcon.Tints[1].R = 255 * (0.85 + 0.15 * Cos(Level.TimeSeconds * Pi * LlamaIconPulseRateR));
    LlamaCompassIcon.Tints[1].G = 255 * (0.85 + 0.15 * Cos(Level.TimeSeconds * Pi * LlamaIconPulseRateG));
    LlamaCompassIcon.Tints[1].B = 255 * (0.85 + 0.15 * Cos(Level.TimeSeconds * Pi * LlamaIconPulseRateB));
    LlamaCompassIcon.TextureScale = 0.28;
    LlamaCompassIcon.WidgetTexture = LlamaizedCompassIcon;
  }
  else {
    LlamaCompassIcon = Default.LlamaCompassIcon;
  }
  
  LlamaCompassIcon.PosX   = Default.LlamaCompassIcon.PosX   + Smerp(LlamaCompassSlidePosition, LlamaCompassSlideDistance, 0.0);
  LlamaCompassIconBG.PosX = Default.LlamaCompassIconBG.PosX + Smerp(LlamaCompassSlidePosition, LlamaCompassSlideDistance, 0.0);
  LlamaCompassBG.PosX     = Default.LlamaCompassBG.PosX     + Smerp(LlamaCompassSlidePosition, LlamaCompassSlideDistance, 0.0);
}


//=============================================================================
// ShouldDisplayLlamaCompass
//
// Returns whether the Llama compass should be displayed.
//=============================================================================

simulated function bool ShouldDisplayLlamaCompass()
{
  local int i;
  
  CleanArrowList();
  
  if ( JailbreakHUD == None || !JailbreakHUD.bShowPoints )
    return false;
  
  if ( LocalLlamaTag != None )
    return true;
  
  for (i = 0; i < LlamaArrows.Length; i++)
    if ( LlamaArrows[i].LlamaTag != None )
      return true;
  
  return false;
}


//=============================================================================
// FindLlamaHUDOverlay
//
// Returns an existing JBInterfaceLlamaHUDOverlay actor or spawns a new one if
// nothing was found.
//=============================================================================

static function JBInterfaceLlamaHUDOverlay FindLlamaHUDOverlay(Actor Requester)
{
  local JBInterfaceLlamaHUDOverlay thisLlamaHUDOverlay;
  
  if ( Requester == None ) {
    // can't work without an actor reference
    Warn("No requesting actor specified.");
    return None;
  }
  
  foreach Requester.DynamicActors(class'JBInterfaceLlamaHUDOverlay', thisLlamaHUDOverlay)
    break;
  
  if ( thisLlamaHUDOverlay == None ) {
    // no JBInterfaceLlamaHUDOverlay found, spawn a new one
    thisLlamaHUDOverlay = Requester.Spawn(Default.Class);
  }
  
  return thisLlamaHUDOverlay;
}


//=============================================================================
// SetLocalLlamaTag
//
// Sets LocalLlamaTag to the local player's JBLlamaTag.
//=============================================================================

simulated function SetLocalLlamaTag(JBLlamaTag newLlamaTag)
{
  if ( newLlamaTag != None ) {
    LocalLlamaTag = newLlamaTag;
    TimeIndexLocalLlamaStart = Level.TimeSeconds;
  }
}


//=============================================================================
// AddArrow
//
// Adds a JBLlamaArrow to the LlamaArrows array.
//=============================================================================

simulated function AddArrow(JBLlamaArrow newArrow)
{
  if ( newArrow != None )
    LlamaArrows[LlamaArrows.Length] = newArrow;
}


//=============================================================================
// CleanArrowList
//
// Removes empty array elements in LlamaArrows.
//=============================================================================

simulated function CleanArrowList()
{
  local int i;
  
  for (i = LlamaArrows.Length-1; i >= 0; i--)
    if ( LlamaArrows[i] == None )
      LlamaArrows.Remove(i, 1);
}


//=============================================================================
// Default properties
//=============================================================================

defaultproperties
{
  //===========================================================================
  // Llama icon textures
  //===========================================================================

  Begin Object Class=TexOscillator Name=LlamaIconOscillator
    UOscillationRate=0.7
    VOscillationRate=0.8
    UOscillationAmplitude=0.2
    VOscillationAmplitude=0.2
    UOscillationType=OT_Stretch
    VOscillationType=OT_Stretch
    UOffset=64.000000
    VOffset=64.000000
    Material=Texture'Llama'
    FallbackMaterial=Texture'Llama'
    Outer=LlamaCompass
  End Object
  
  Begin Object Class=TexRotator Name=LlamaIconRotator
    TexRotationType=TR_OscillatingRotation
    UOffset=64.0
    VOffset=64.0
    OscillationRate=(Yaw=20000)
    OscillationAmplitude=(Yaw=8000)
    Material=TexOscillator'LlamaIconOscillator'
    FallbackMaterial=TexOscillator'LlamaIconOscillator'
    Outer=LlamaCompass
  End Object
  
  Begin Object Class=Combiner Name=LlamaIconCombiner
    CombineOperation=CO_Multiply
    AlphaOperation=AO_Use_Alpha_From_Material1
    Material1=TexRotator'LlamaIconRotator'
    Material2=Texture'Llama'
    FallbackMaterial=TexOscillator'LlamaIconOscillator'
    Outer=LlamaCompass
  End Object
  
  Begin Object Class=FinalBlend Name=LlamaIconFinalBlend
    FrameBufferBlending=FB_Brighten
    Material=Combiner'LlamaIconCombiner'
    FallbackMaterial=TexOscillator'LlamaIconOscillator'
    Outer=LlamaCompass
  End Object
  
  
  //===========================================================================
  // Llama screen overlay textures
  //===========================================================================
  
  Begin Object Class=TexOscillator Name=OverlayOscillator1
    UOscillationRate=0.015
    VOscillationRate=0.020
    UOscillationPhase=0.1
    VOscillationPhase=0.7
    UOscillationAmplitude=0.5
    VOscillationAmplitude=0.5
    Material=Texture'LlamaScreenOverlay'
    FallbackMaterial=Texture'LlamaScreenOverlay'
    Outer=LlamaHudOverlay
  End Object
  
  Begin Object Class=TexOscillator Name=OverlayOscillator2
    UOscillationRate=0.020
    VOscillationRate=0.015
    UOscillationPhase=0.6
    VOscillationPhase=0.2
    UOscillationAmplitude=0.5
    VOscillationAmplitude=0.5
    Material=Texture'LlamaScreenOverlay'
    FallbackMaterial=Texture'LlamaScreenOverlay'
    Outer=LlamaHudOverlay
  End Object
  
  Begin Object Class=TexOscillator Name=Overlay1Scaler
    UOscillationRate=0.020
    VOscillationRate=0.015
    VOscillationPhase=0.1
    UOscillationAmplitude=0.3
    VOscillationAmplitude=0.3
    UOscillationType=OT_Stretch
    VOscillationType=OT_Stretch
    UOffset=128.0
    VOffset=128.0
    Material=TexOscillator'OverlayOscillator1'
    FallbackMaterial=TexOscillator'OverlayOscillator1'
    Outer=LlamaHudOverlay
  End Object
  
  Begin Object Class=TexOscillator Name=Overlay2Scaler
    UOscillationRate=0.004
    VOscillationRate=0.003
    UOscillationPhase=0.4
    VOscillationPhase=0.5
    UOscillationAmplitude=0.5
    VOscillationAmplitude=0.5
    UOscillationType=OT_Stretch
    VOscillationType=OT_Stretch
    UOffset=128.0
    VOffset=128.0
    Material=TexOscillator'OverlayOscillator2'
    FallbackMaterial=TexOscillator'OverlayOscillator2'
    Outer=LlamaHudOverlay
  End Object
  
  Begin Object Class=Combiner Name=OverlayCombiner
    CombineOperation=AO_Multiply
    AlphaOperation=CO_Add
    Material1=TexOscillator'Overlay1Scaler'
    Material2=TexOscillator'Overlay2Scaler'
    Outer=LlamaHudOverlay
  End Object
  
  Begin Object Class=FinalBlend Name=LlamaScreenOverlayFinal
    FrameBufferBlending=FB_Translucent
    Material=Combiner'OverlayCombiner'
    FallbackMaterial=TexOscillator'Overlay2Scaler'
    Outer=LlamaHudOverlay
  End Object
  
  
  //===========================================================================
  // HUD elements
  //===========================================================================
  
  LlamaCompassIcon=(WidgetTexture=Texture'Llama',RenderStyle=STY_Alpha,TextureCoords=(X1=0,Y1=0,X2=128,Y2=128),TextureScale=0.3,DrawPivot=DP_MiddleMiddle,PosX=0.93,PosY=0.7,Tints[0]=(R=255,G=255,B=255,A=255),Tints[1]=(R=255,G=255,B=255,A=255))
  LlamaCompassIconBG=(WidgetTexture=Texture'HUDContent.Generic.HUD',RenderStyle=STY_Alpha,TextureCoords=(X1=119,Y1=258,X2=173,Y2=313),TextureScale=0.85,DrawPivot=DP_MiddleMiddle,PosX=0.93,PosY=0.7,Tints[0]=(R=255,G=255,B=255,A=255),Tints[1]=(R=255,G=255,B=255,A=255))
  LlamaCompassBG=(WidgetTexture=Texture'HUDContent.Generic.HUD',RenderStyle=STY_Alpha,TextureCoords=(X1=168,Y1=211,X2=334,Y2=255),TextureScale=0.6,DrawPivot=DP_MiddleLeft,PosX=0.93,PosY=0.7,ScaleMode=SM_Right,Scale=1.0,Tints[0]=(R=0,G=0,B=0,A=150),Tints[1]=(R=0,G=0,B=0,A=150))
  LlamaCompassDot=(WidgetTexture=Texture'HUDContent.Generic.GlowCircle',RenderStyle=STY_Alpha,TextureCoords=(X1=0,Y1=0,X2=64,Y2=64),TextureScale=0.15,DrawPivot=DP_MiddleMiddle,Tints[0]=(R=255,G=255,B=0,A=255),Tints[1]=(R=255,G=255,B=0,A=255))
  LlamaizedCompassIcon=FinalBlend'LlamaIconFinalBlend'
  LlamaScreenOverlayMaterial=FinalBlend'LlamaScreenOverlayFinal'
  LlamaCompassSlideDistance=0.12
  LlamaIconPulseRateR=1.5317
  LlamaIconPulseRateG=2.6873
  LlamaIconPulseRateB=1.0912
  bAlwaysTick=True
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Fr 16.2.2007 12:03:38.000 - Creation time: Do 14.8.2014 09:58:42.641 - Created with UnCodeX