CyToTV Posted May 24, 2017 Share Posted May 24, 2017 Помогите хукнуть функцию которая отвечает за переключения типа снарядов) @ Quote Link to comment Short link Share on other sites More sharing options...
TornadoCat Posted May 24, 2017 Share Posted May 24, 2017 Get over here ! @ Quote Link to comment Short link Share on other sites More sharing options...
spoter Posted May 24, 2017 Share Posted May 24, 2017 (edited) def hookedOnCurrentShellChanged(intCD): ctrl = BigWorld.player().guiSessionProvider.shared.ammo if ctrl is not None: quantity, quantityInClip = ctrl.getCurrentShells() print intCD, quantity, quantityInClip ammoCtrl = BigWorld.player().guiSessionProvider.shared.ammo if ammoCtrl is not None: ammoCtrl.onCurrentShellChanged += hookedOnCurrentShellChanged Edited May 24, 2017 by spoter 1 @ Quote Link to comment Short link Share on other sites More sharing options...
CyToTV Posted May 24, 2017 Author Share Posted May 24, 2017 def hookedOnCurrentShellChanged(intCD): ctrl = BigWorld.player().guiSessionProvider.shared.ammo if ctrl is not None: quantity, quantityInClip = ctrl.getCurrentShells() print intCD, quantity, quantityInClip ammoCtrl = BigWorld.player().guiSessionProvider.shared.ammo if ammoCtrl is not None: ammoCtrl.onCurrentShellChanged += hookedOnCurrentShellChanged Большое спасибо! Ток самое важное то (для меня в данный момент) не работает. quantityInClip постоянно 0 выдает 'Кусок лога' 2017-05-24 21:07:02.066: INFO: intCD - 210022017-05-24 21:07:02.066: INFO: quantity - 29 2017-05-24 21:07:02.066: INFO: quantityInClip - 0 2017-05-24 21:07:12.770: INFO: intCD - 21514 2017-05-24 21:07:12.770: INFO: quantity - 21 2017-05-24 21:07:12.770: INFO: quantityInClip - 0 2017-05-24 21:07:36.224: INFO: intCD - 21002 2017-05-24 21:07:36.224: INFO: quantity - 29 2017-05-24 21:07:36.224: INFO: quantityInClip - 0 @ Quote Link to comment Short link Share on other sites More sharing options...
spoter Posted May 24, 2017 Share Posted May 24, 2017 на барабанщике пробуешь? @ Quote Link to comment Short link Share on other sites More sharing options...
CyToTV Posted May 24, 2017 Author Share Posted May 24, 2017 на барабанщике пробуешь? на тетрархе я может просто не так понял) мне нужен id снаряда в панельке (допустим ББ - 1, ОФ - 2, Голда - 3) @ Quote Link to comment Short link Share on other sites More sharing options...
spoter Posted May 25, 2017 Share Posted May 25, 2017 intCD вот тебе id @ Quote Link to comment Short link Share on other sites More sharing options...
CyToTV Posted May 25, 2017 Author Share Posted May 25, 2017 intCD вот тебе id последний вопрос. а как по нему узнать тип снаряда? @ Quote Link to comment Short link Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.