10.08.2009, 17:46 | #1 |
Местный
|
сброс бомб по ведущему
народ как можно сделать чтобы аи бросало бомбы по ведущему?
там есть команда сбрость баки может как то можно в нее вписать код чтобы он не только танки сбрасывал но и бомбы? ВОТ КОД: /* OrderDrop_Tanks - Decompiled by JODE * Visit http://jode.sourceforge.net/ */ package com.maddox.il2.game.order; import com.maddox.il2.ai.air.Pilot; import com.maddox.il2.engine.Actor; import com.maddox.il2.objects.air.Aircraft; import com.maddox.il2.objects.sounds.Voice; class OrderDrop_Tanks extends Order { public OrderDrop_Tanks() { super("Drop_Tanks"); } public void run() { Voice.setSyncMode(1); for (int i = 0; i < CommandSet().length; i++) { Aircraft aircraft = CommandSet()[i]; if (Actor.isAlive(aircraft) && (Object) aircraft.FM instanceof Pilot) { if (((Pilot) (Object) aircraft.FM).CT.dropFuelTanks()) { if (isEnableVoice() && aircraft != Player() && (aircraft.getWing() == Player().getWing() || aircraft.aircIndex() == 0)) Voice.speakDropTanks(aircraft); } else if (isEnableVoice() && aircraft != Player() && (aircraft.getWing() == Player().getWing() || aircraft.aircIndex() == 0)) Voice.speakUnable(aircraft); } } Voice.setSyncMode(0); } } |
Здесь присутствуют: 1 (пользователей: 0 , гостей: 1) | |
|
|