Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import BigWorld
- if 0:
- i11iIiiIii
- if 0:
- O0 / iIii1I11I1II1 % OoooooooOO - i1IIi
- if 0:
- II111iiii
- import Keys
- import ResMgr
- import Math
- import BattleReplay
- import Vehicle
- from gui.WindowsManager import g_windowsManager
- from AvatarInputHandler import AvatarInputHandler
- IiII1IiiIiI1 = AvatarInputHandler.onControlModeChanged
- from Avatar import PlayerAvatar
- iIiiiI1IiI1I1 = PlayerAvatar.handleKey
- o0OoOoOO00 = PlayerAvatar.onEnterWorld
- PlayerAvatar.enableTundra = True
- PlayerAvatar.enableFullTundra = False
- I11i = ResMgr.openSection('scripts/client/mods/Indigo_mod.xml')
- if I11i:
- if I11i.has_key('TKey'):
- PlayerAvatar.Key_Tundra2 = getattr(Keys, I11i.readString('TKey'))
- if 0:
- OOooo000oo0.i1 * ii1IiI1i % IIIiiIIii
- from debug_utils import *
- I11iIi1I = Keys.KEY_NUMPAD1
- IiiIII111iI = 0.1
- IiII = None
- iI1Ii11111iIi = True
- i1i1II = False
- O0oo0OO0 = ResMgr.openSection('Indigo_mod.xml')
- if O0oo0OO0 is not None:
- if O0oo0OO0.has_key('render_key'):
- I11iIi1I = getattr(Keys, O0oo0OO0.readString('render_key', 'KEY_NUMPAD1'))
- if 0:
- oooO0oo0oOOOO - ooO0oo0oO0 - i111I * II1Ii1iI1i
- else:
- PlayerAvatar.Key_Tundra2 = Keys.KEY_F2
- if 0:
- o0oOoO00o
- def i1oOOoo00O0O(self, eMode, **args):
- IiII1IiiIiI1(self, eMode, **args)
- if eMode == 'sniper':
- if PlayerAvatar.enableTundra:
- BigWorld.wg_setTreeHidingRadius(100, 0)
- BigWorld.wg_enableTreeTransparency(False)
- else:
- BigWorld.wg_setTreeHidingRadius(11, 15)
- BigWorld.wg_enableTreeTransparency(True)
- elif PlayerAvatar.enableFullTundra:
- BigWorld.wg_enableTreeHiding(True)
- BigWorld.wg_setTreeHidingRadius(100, 0)
- BigWorld.wg_enableTreeTransparency(False)
- else:
- BigWorld.wg_enableTreeHiding(False)
- BigWorld.wg_enableTreeTransparency(True)
- if 0:
- I11iii11IIi
- if 0:
- O0I11i1i11i1I * oo / OOO0O / I1ii * o0oOoO00o + OOooo000oo0
- def OOo0o0(self, isDown, key, mods):
- if key == PlayerAvatar.Key_Tundra2 and mods == 0 and isDown:
- if g_windowsManager.battleWindow is not None:
- O0OoOoo00o = BigWorld.player()
- if O0OoOoo00o.inputHandler.ctrl == O0OoOoo00o.inputHandler.ctrls['sniper']:
- if PlayerAvatar.enableTundra:
- BigWorld.wg_setTreeHidingRadius(15, 10)
- BigWorld.wg_enableTreeTransparency(True)
- g_windowsManager.battleWindow.call('battle.PlayerMessagesPanel.ShowMessage', ['0', 'Tundra OFF', 'red'])
- PlayerAvatar.enableTundra = False
- else:
- BigWorld.wg_setTreeHidingRadius(10000, 0)
- BigWorld.wg_enableTreeTransparency(False)
- g_windowsManager.battleWindow.call('battle.PlayerMessagesPanel.ShowMessage', ['0', 'Tundra ON', 'gold'])
- PlayerAvatar.enableTundra = True
- elif PlayerAvatar.enableFullTundra:
- BigWorld.wg_enableTreeHiding(False)
- BigWorld.wg_enableTreeTransparency(True)
- g_windowsManager.battleWindow.call('battle.PlayerMessagesPanel.ShowMessage', ['0', 'TundraFull OFF', 'red'])
- PlayerAvatar.enableFullTundra = False
- else:
- BigWorld.wg_enableTreeHiding(True)
- BigWorld.wg_setTreeHidingRadius(10000, 0)
- BigWorld.wg_enableTreeTransparency(False)
- g_windowsManager.battleWindow.call('battle.PlayerMessagesPanel.ShowMessage', ['0', 'TundraFull ON', 'gold'])
- PlayerAvatar.enableFullTundra = True
- self.soundNotifications.play('chat_shortcut_common_fx')
- return True
- if 0:
- II111iiii + ii1IiI1i.OOO0O
- iIiiiI1IiI1I1(self, isDown, key, mods)
- if 0:
- OOooo000oo0 - i11iIiiIii - ii1IiI1i / II1Ii1iI1i - ii1IiI1i + i1IIi
- if 0:
- OoooooooOO % oooO0oo0oOOOO.OOooo000oo0 - I11iii11IIi % i1IIi % OoooooooOO
- return
- def i1iIIi1(self, prereqs):
- o0OoOoOO00(self, prereqs)
- PlayerAvatar.enableTundra = True
- PlayerAvatar.enableFullTundra = False
- BigWorld.wg_enableTreeHiding(False)
- BigWorld.wg_enableTreeTransparency(True)
- if 0:
- i11iIiiIii - I11iii11IIi
- AvatarInputHandler.onControlModeChanged = i1oOOoo00O0O
- PlayerAvatar.handleKey = OOo0o0
- PlayerAvatar.onEnterWorld = i1iIIi1
- if 0:
- ii1IiI1i
- def Iii1I111():
- global IiII
- global iI1Ii11111iIi
- if iI1Ii11111iIi:
- O0OoOoo00o = BigWorld.player()
- if O0OoOoo00o is not None:
- if hasattr(O0OoOoo00o, 'isOnArena'):
- if O0OoOoo00o.isOnArena:
- for OO0O0O00OooO in BigWorld.entities.values():
- if type(OO0O0O00OooO) is Vehicle.Vehicle:
- if OO0O0O00OooO.isAlive():
- if OO0O0O00OooO.publicInfo['team'] is not BigWorld.player().team:
- OoooooOoo = BigWorld.target()
- if OoooooOoo is not None and OoooooOoo.id == OO0O0O00OooO.id:
- BigWorld.wgDelEdgeDetectEntity(OO0O0O00OooO)
- BigWorld.wgAddEdgeDetectEntity(OO0O0O00OooO, 1)
- else:
- BigWorld.wgDelEdgeDetectEntity(OO0O0O00OooO)
- BigWorld.wgAddEdgeDetectEntity(OO0O0O00OooO, 0)
- else:
- BigWorld.wgDelEdgeDetectEntity(OO0O0O00OooO)
- if 0:
- ii1IiI1i.ii1IiI1i - ii1IiI1i / ooO0oo0oO0 * II1Ii1iI1i
- if IiII is None or IiII + 1 < BigWorld.time():
- if BigWorld.isKeyDown(I11iIi1I):
- IiII = BigWorld.time()
- if iI1Ii11111iIi:
- if g_windowsManager.battleWindow is not None:
- g_windowsManager.battleWindow.call('battle.PlayerMessagesPanel.ShowMessage', ['0', 'RendenModel OFF', 'gold'])
- iI1Ii11111iIi = False
- for OO0O0O00OooO in BigWorld.entities.values():
- if type(OO0O0O00OooO) is Vehicle.Vehicle:
- BigWorld.wgDelEdgeDetectEntity(OO0O0O00OooO)
- if 0:
- i11iIiiIii + I11iii11IIi + I1ii * o0oOoO00o + oooO0oo0oOOOO
- elif g_windowsManager.battleWindow is not None:
- iI1Ii11111iIi = True
- g_windowsManager.battleWindow.call('battle.PlayerMessagesPanel.ShowMessage', ['0', 'RendenModel ON', 'gold'])
- BigWorld.callback(0.1, Iii1I111)
- return
- if 0:
- ii1IiI1i / i11iIiiIii
- if 0:
- OoooooooOO + iIii1I11I1II1 + i11iIiiIii - ooO0oo0oO0 + i11iIiiIii
- return
- Iii1I111()
- if 0:
- IIIiiIIii
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement