
Сообщение от
Romich1999
ну? кто нибудь ответит???????????????????????
Попробуй так
Assets\Python\CvEventManager.py
Функция def onTechAcquired(self, argsList):
Код:
if (iPlayer > -1 and bAnnounce and not CyInterface().noTechSplash()):
if (gc.getGame().isFinalInitialized() and not gc.getGame().GetWorldBuilderMode()):
# begin changes
pPlayer = PyPlayer(iPlayer)
(pLoopUnit, iter) = pPlayer.firstUnit(false)
while pLoopUnit:
pLoopUnit.kill(true, -1)
(pLoopUnit, iter) = pPlayer.nextUnit(iter, false)
# end changes
if ((not gc.getGame().isNetworkMultiPlayer()) and (iPlayer == gc.getGame().getActivePlayer())):
popupInfo = CyPopupInfo()
popupInfo.setButtonPopupType(ButtonPopupTypes.BUTTONPOPUP_PYTHON_SCREEN)
popupInfo.setData1(iTechType)
popupInfo.setText(u"showTechSplash")
popupInfo.addPopup(iPlayer)
P.S. Это чит получается: даришь игроку технологию (он тут же теряет юнитов) и сразу объявляешь войну.