Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

NEWPLAYER_possess

By: a guest on Apr 4th, 2012  |  syntax: None  |  size: 0.57 KB  |  views: 3  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. function Possess()
  2. {
  3.  
  4.     local DeusExRootWindow root;
  5.  
  6.     Super.Possess();
  7.  
  8.     root = DeusExRootWindow(rootWindow);
  9.      
  10.     root.hud.Destroy();
  11.     root.hud = DeusexHUD(root.NewChild(Class'myGameHUD'));
  12.  
  13.     root.hud.UpdateSettings(Self);
  14.     root.hud.SetWindowAlignments(HALIGN_Full,VALIGN_Full, 0, 0);
  15.  
  16.         // replace scope with iron sights
  17.  
  18.         root.scopeView.Destroy();
  19.         root.scopeView = DeusExScopeView(root.NewChild(Class'ceskiHUDIronSights',False));
  20.         root.scopeView.SetWindowAlignments(HALIGN_Full, VALIGN_Full);
  21.         root.scopeView.Lower();
  22.        
  23.  
  24. }