Местный
Регистрация: 26.12.2013
Адрес: Донецьк Україна
Сообщений: 1,848
|
Доброго времени суток. Переписал вооружение "по модному"  Вот как получилось:
Было
PHP код:
Property.set(var_class, "LOSElevation", 0.87195F);
weaponTriggersRegister(var_class, new int[] { 0, 10, 3, 3, 3 });
weaponHooksRegister(var_class,
new String[] { "_MGUN01", "_MGUN02",
"_ExternalBomb02",
"_ExternalBomb03",
"_ExternalBomb01" });
weaponsRegister(var_class, "default",
(new String[]
{ "MGunVikkersKsi 600",
"MGunVikkersKt 600", null, null, null }));
weaponsRegister(var_class, "1x250",
new String[] { "MGunVikkersKsi 600",
"MGunVikkersKt 600", null, null,
"BombGun250kgJ 1" });
weaponsRegister(var_class, "1x2502x30",
new String[] { "MGunVikkersKsi 600",
"MGunVikkersKt 600", "BombGun30kgJ 1",
"BombGun30kgJ 1", "BombGun250kgJ 1" });
weaponsRegister(var_class, "1x2502x60",
new String[] { "MGunVikkersKsi 600",
"MGunVikkersKt 600", "BombGun60kgJ 1",
"BombGun60kgJ 1", "BombGun250kgJ 1" });
weaponsRegister(var_class, "none",
new String[] { null, null, null, null, null });
}
}
Стало
PHP код:
Property.set(var_class, "LOSElevation", 0.87195F);
Aircraft.weaponTriggersRegister(var_class, new int[] { 0, 10, 3, 3, 3 });
Aircraft.weaponHooksRegister(var_class,
(new String[] { "_MGUN01", "_MGUN02",
"_ExternalBomb02",
"_ExternalBomb03",
"_ExternalBomb01" }));
try {
ArrayList arraylist = new ArrayList();
Property.set(var_class, "weaponsList", arraylist);
HashMapInt hashmapint = new HashMapInt();
Property.set(var_class, "weaponsMap", hashmapint);
int i = 5;
Aircraft._WeaponSlot[] var__WeaponSlots
= new Aircraft._WeaponSlot[i];
String string = "default";
var__WeaponSlots = new Aircraft._WeaponSlot[i];
var__WeaponSlots[0]
= new Aircraft._WeaponSlot(0, "MGunVikkerssi", 400);
var__WeaponSlots[1]
= new Aircraft._WeaponSlot(10, "MGunVikkersKt", 420);
var__WeaponSlots[2] = null;
var__WeaponSlots[3] = null;
var__WeaponSlots[4] = null;
for (int i_1_ = 5; i_1_ < i; i_1_++)
var__WeaponSlots[i_1_] = null;
arraylist.add(string);
hashmapint.put(Finger.Int(string), var__WeaponSlots);
string = "1x250";
var__WeaponSlots = new Aircraft._WeaponSlot[i];
var__WeaponSlots[0]
= new Aircraft._WeaponSlot(0, "MGunVikkerssi", 400);
var__WeaponSlots[1]
= new Aircraft._WeaponSlot(10, "MGunVikkersKt", 420);
var__WeaponSlots[2]
= new Aircraft._WeaponSlot(3, "BombGun250kgJ", 1);
var__WeaponSlots[3] = null;
var__WeaponSlots[4] = null;
for (int i_2_ = 5; i_2_ < i; i_2_++)
var__WeaponSlots[i_2_] = null;
arraylist.add(string);
hashmapint.put(Finger.Int(string), var__WeaponSlots);
} catch (Exception exception) {
/* empty */
}
}
}
Класс экспериментальный. Пока только два пулемета как и в реале и одна двухсот пятидесяти килограммовка.
Самолет все равно не собирается. Посмотрю правильность наименования мешей и хуков.
|