Advertisement
Guest User

Untitled

a guest
Nov 1st, 2017
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. simulated function ReadyForAnything_BuildVisualization(XComGameState VisualizeGameState)
  2. {
  3.     local XComGameStateHistory History;
  4.     local XComGameStateContext_Ability Context;
  5.     local StateObjectReference InteractingUnitRef;
  6.     local X2Action_PlaySoundAndFlyOver      SoundAndFlyOver;
  7. //  local XComGameState_Ability             Ability;
  8. //  local AbilityInputContext               AbilityContext;
  9.     local VisualizationActionMetadata EmptyTrack;
  10.     local VisualizationActionMetadata ActionMetadata;
  11.     local string FlyOverText;
  12.  
  13.     History = `XCOMHISTORY;
  14.  
  15.     Context = XComGameStateContext_Ability(VisualizeGameState.GetContext());
  16.     InteractingUnitRef = Context.InputContext.SourceObject;
  17.  
  18. //  Ability = XComGameState_Ability(History.GetGameStateForObjectID(AbilityContext.AbilityRef.ObjectID));
  19.    
  20.  
  21.     //Configure the visualization track for the shooter
  22.     //****************************************************************************************
  23.     ActionMetadata = EmptyTrack;
  24.     ActionMetadata.StateObject_OldState = History.GetGameStateForObjectID(InteractingUnitRef.ObjectID, eReturnType_Reference, VisualizeGameState.HistoryIndex - 1);
  25.     ActionMetadata.StateObject_NewState = VisualizeGameState.GetGameStateForObjectID(InteractingUnitRef.ObjectID);
  26.     ActionMetadata.VisualizeActor = History.GetVisualizer(InteractingUnitRef.ObjectID);
  27.  
  28.     FlyOverText = "Overwatch: Ready For Anything";
  29.  
  30.     Ability = XComGameState_Ability(History.GetGameStateForObjectID(Context.InputContext.AbilityRef.ObjectID, eReturnType_Reference, VisualizeGameState.HistoryIndex - 1));
  31.     SoundAndFlyOver = X2Action_PlaySoundAndFlyOver(class'X2Action_PlaySoundAndFlyOver'.static.AddToVisualizationTree(ActionMetadata, Context, false, ActionMetadata.LastActionAdded));
  32.     SoundAndFlyOver.SetSoundAndFlyOverParameters(SoundCue'SoundUI.OverWatchCue', FlyOverText, '', eColor_Alien, "img:///UILibrary_PerkIcons.UIPerk_overwatch");
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement