Advertisement
deutscher_Adler

Untitled

Feb 11th, 2015
367
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 6.94 KB | None | 0 0
  1. import BigWorld
  2. if 0:
  3.     i11iIiiIii
  4. if 0:
  5.     O0 / iIii1I11I1II1 % OoooooooOO - i1IIi
  6. if 0:
  7.     II111iiii
  8. import Keys
  9. import ResMgr
  10. import Math
  11. import BattleReplay
  12. import Vehicle
  13. from gui.WindowsManager import g_windowsManager
  14. from AvatarInputHandler import AvatarInputHandler
  15. IiII1IiiIiI1 = AvatarInputHandler.onControlModeChanged
  16. from Avatar import PlayerAvatar
  17. iIiiiI1IiI1I1 = PlayerAvatar.handleKey
  18. o0OoOoOO00 = PlayerAvatar.onEnterWorld
  19. PlayerAvatar.enableTundra = True
  20. PlayerAvatar.enableFullTundra = False
  21. I11i = ResMgr.openSection('scripts/client/mods/Indigo_mod.xml')
  22. if I11i:
  23.     if I11i.has_key('TKey'):
  24.         PlayerAvatar.Key_Tundra2 = getattr(Keys, I11i.readString('TKey'))
  25.         if 0:
  26.             OOooo000oo0.i1 * ii1IiI1i % IIIiiIIii
  27. from debug_utils import *
  28. I11iIi1I = Keys.KEY_NUMPAD1
  29. IiiIII111iI = 0.1
  30. IiII = None
  31. iI1Ii11111iIi = True
  32. i1i1II = False
  33. O0oo0OO0 = ResMgr.openSection('Indigo_mod.xml')
  34. if O0oo0OO0 is not None:
  35.     if O0oo0OO0.has_key('render_key'):
  36.         I11iIi1I = getattr(Keys, O0oo0OO0.readString('render_key', 'KEY_NUMPAD1'))
  37.         if 0:
  38.             oooO0oo0oOOOO - ooO0oo0oO0 - i111I * II1Ii1iI1i
  39. else:
  40.     PlayerAvatar.Key_Tundra2 = Keys.KEY_F2
  41.     if 0:
  42.         o0oOoO00o
  43.  
  44. def i1oOOoo00O0O(self, eMode, **args):
  45.     IiII1IiiIiI1(self, eMode, **args)
  46.     if eMode == 'sniper':
  47.         if PlayerAvatar.enableTundra:
  48.             BigWorld.wg_setTreeHidingRadius(100, 0)
  49.             BigWorld.wg_enableTreeTransparency(False)
  50.         else:
  51.             BigWorld.wg_setTreeHidingRadius(11, 15)
  52.             BigWorld.wg_enableTreeTransparency(True)
  53.     elif PlayerAvatar.enableFullTundra:
  54.         BigWorld.wg_enableTreeHiding(True)
  55.         BigWorld.wg_setTreeHidingRadius(100, 0)
  56.         BigWorld.wg_enableTreeTransparency(False)
  57.     else:
  58.         BigWorld.wg_enableTreeHiding(False)
  59.         BigWorld.wg_enableTreeTransparency(True)
  60.         if 0:
  61.             I11iii11IIi
  62.         if 0:
  63.             O0I11i1i11i1I * oo / OOO0O / I1ii * o0oOoO00o + OOooo000oo0
  64.  
  65.  
  66. def OOo0o0(self, isDown, key, mods):
  67.     if key == PlayerAvatar.Key_Tundra2 and mods == 0 and isDown:
  68.         if g_windowsManager.battleWindow is not None:
  69.             O0OoOoo00o = BigWorld.player()
  70.             if O0OoOoo00o.inputHandler.ctrl == O0OoOoo00o.inputHandler.ctrls['sniper']:
  71.                 if PlayerAvatar.enableTundra:
  72.                     BigWorld.wg_setTreeHidingRadius(15, 10)
  73.                     BigWorld.wg_enableTreeTransparency(True)
  74.                     g_windowsManager.battleWindow.call('battle.PlayerMessagesPanel.ShowMessage', ['0', 'Tundra OFF', 'red'])
  75.                     PlayerAvatar.enableTundra = False
  76.                 else:
  77.                     BigWorld.wg_setTreeHidingRadius(10000, 0)
  78.                     BigWorld.wg_enableTreeTransparency(False)
  79.                     g_windowsManager.battleWindow.call('battle.PlayerMessagesPanel.ShowMessage', ['0', 'Tundra  ON', 'gold'])
  80.                     PlayerAvatar.enableTundra = True
  81.             elif PlayerAvatar.enableFullTundra:
  82.                 BigWorld.wg_enableTreeHiding(False)
  83.                 BigWorld.wg_enableTreeTransparency(True)
  84.                 g_windowsManager.battleWindow.call('battle.PlayerMessagesPanel.ShowMessage', ['0', 'TundraFull OFF', 'red'])
  85.                 PlayerAvatar.enableFullTundra = False
  86.             else:
  87.                 BigWorld.wg_enableTreeHiding(True)
  88.                 BigWorld.wg_setTreeHidingRadius(10000, 0)
  89.                 BigWorld.wg_enableTreeTransparency(False)
  90.                 g_windowsManager.battleWindow.call('battle.PlayerMessagesPanel.ShowMessage', ['0', 'TundraFull  ON', 'gold'])
  91.                 PlayerAvatar.enableFullTundra = True
  92.             self.soundNotifications.play('chat_shortcut_common_fx')
  93.             return True
  94.             if 0:
  95.                 II111iiii + ii1IiI1i.OOO0O
  96.     iIiiiI1IiI1I1(self, isDown, key, mods)
  97.     if 0:
  98.         OOooo000oo0 - i11iIiiIii - ii1IiI1i / II1Ii1iI1i - ii1IiI1i + i1IIi
  99.     if 0:
  100.         OoooooooOO % oooO0oo0oOOOO.OOooo000oo0 - I11iii11IIi % i1IIi % OoooooooOO
  101.     return
  102.  
  103.  
  104. def i1iIIi1(self, prereqs):
  105.     o0OoOoOO00(self, prereqs)
  106.     PlayerAvatar.enableTundra = True
  107.     PlayerAvatar.enableFullTundra = False
  108.     BigWorld.wg_enableTreeHiding(False)
  109.     BigWorld.wg_enableTreeTransparency(True)
  110.     if 0:
  111.         i11iIiiIii - I11iii11IIi
  112.  
  113.  
  114. AvatarInputHandler.onControlModeChanged = i1oOOoo00O0O
  115. PlayerAvatar.handleKey = OOo0o0
  116. PlayerAvatar.onEnterWorld = i1iIIi1
  117. if 0:
  118.     ii1IiI1i
  119.  
  120. def Iii1I111():
  121.     global IiII
  122.     global iI1Ii11111iIi
  123.     if iI1Ii11111iIi:
  124.         O0OoOoo00o = BigWorld.player()
  125.         if O0OoOoo00o is not None:
  126.             if hasattr(O0OoOoo00o, 'isOnArena'):
  127.                 if O0OoOoo00o.isOnArena:
  128.                     for OO0O0O00OooO in BigWorld.entities.values():
  129.                         if type(OO0O0O00OooO) is Vehicle.Vehicle:
  130.                             if OO0O0O00OooO.isAlive():
  131.                                 if OO0O0O00OooO.publicInfo['team'] is not BigWorld.player().team:
  132.                                     OoooooOoo = BigWorld.target()
  133.                                     if OoooooOoo is not None and OoooooOoo.id == OO0O0O00OooO.id:
  134.                                         BigWorld.wgDelEdgeDetectEntity(OO0O0O00OooO)
  135.                                         BigWorld.wgAddEdgeDetectEntity(OO0O0O00OooO, 1)
  136.                                     else:
  137.                                         BigWorld.wgDelEdgeDetectEntity(OO0O0O00OooO)
  138.                                         BigWorld.wgAddEdgeDetectEntity(OO0O0O00OooO, 0)
  139.                             else:
  140.                                 BigWorld.wgDelEdgeDetectEntity(OO0O0O00OooO)
  141.                                 if 0:
  142.                                     ii1IiI1i.ii1IiI1i - ii1IiI1i / ooO0oo0oO0 * II1Ii1iI1i
  143.  
  144.     if IiII is None or IiII + 1 < BigWorld.time():
  145.         if BigWorld.isKeyDown(I11iIi1I):
  146.             IiII = BigWorld.time()
  147.             if iI1Ii11111iIi:
  148.                 if g_windowsManager.battleWindow is not None:
  149.                     g_windowsManager.battleWindow.call('battle.PlayerMessagesPanel.ShowMessage', ['0', 'RendenModel  OFF', 'gold'])
  150.                     iI1Ii11111iIi = False
  151.                     for OO0O0O00OooO in BigWorld.entities.values():
  152.                         if type(OO0O0O00OooO) is Vehicle.Vehicle:
  153.                             BigWorld.wgDelEdgeDetectEntity(OO0O0O00OooO)
  154.                             if 0:
  155.                                 i11iIiiIii + I11iii11IIi + I1ii * o0oOoO00o + oooO0oo0oOOOO
  156.  
  157.             elif g_windowsManager.battleWindow is not None:
  158.                 iI1Ii11111iIi = True
  159.                 g_windowsManager.battleWindow.call('battle.PlayerMessagesPanel.ShowMessage', ['0', 'RendenModel  ON', 'gold'])
  160.     BigWorld.callback(0.1, Iii1I111)
  161.     return
  162.     if 0:
  163.         ii1IiI1i / i11iIiiIii
  164.     if 0:
  165.         OoooooooOO + iIii1I11I1II1 + i11iIiiIii - ooO0oo0oO0 + i11iIiiIii
  166.     return
  167.  
  168.  
  169. Iii1I111()
  170. if 0:
  171.     IIIiiIIii
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement