Advertisement
Guest User

NEWPLAYER_possess

a guest
Apr 4th, 2012
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement