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. }