mirror of
https://github.com/aimrebirth/tools.git
synced 2026-04-14 17:33:25 +00:00
Update.
This commit is contained in:
parent
d6b41db30c
commit
125bb3f740
3 changed files with 23 additions and 13 deletions
|
|
@ -255,6 +255,9 @@ int main(int argc, char *argv[]) {
|
||||||
mod.copy_weapon_from_aim2("GUN_GRAVITON");
|
mod.copy_weapon_from_aim2("GUN_GRAVITON");
|
||||||
after = mod.add_map_good("location1.mmo", "B_L1_BASE1", after, mmo_storage2::map_good("GUN_GRAVITON"));
|
after = mod.add_map_good("location1.mmo", "B_L1_BASE1", after, mmo_storage2::map_good("GUN_GRAVITON"));
|
||||||
|
|
||||||
|
//
|
||||||
|
mod.replace("under.scr", "_ADDSENSOR(T_L4_BASE_2)", "_ADDSENSOR(T_L4_BASE_2 )\n_MARK(T_L4_BASE_2)");
|
||||||
|
|
||||||
// does not work, crashes. Maybe different item size
|
// does not work, crashes. Maybe different item size
|
||||||
// or maybe too many goods
|
// or maybe too many goods
|
||||||
/*for (auto after = "EQP_POLYMER_ARMOR_S1"s; auto &&[n, _] : db["Оборудование"]) {
|
/*for (auto after = "EQP_POLYMER_ARMOR_S1"s; auto &&[n, _] : db["Оборудование"]) {
|
||||||
|
|
|
||||||
|
|
@ -601,16 +601,21 @@ struct mod_maker {
|
||||||
quest().copy_from_aim2("INFORMATION", object);
|
quest().copy_from_aim2("INFORMATION", object);
|
||||||
auto &db_ = this->db();
|
auto &db_ = this->db();
|
||||||
auto &gun = db_["Оружие"][object];
|
auto &gun = db_["Оружие"][object];
|
||||||
auto copy_if_not = [&](auto &&table, auto &&field) {
|
if (gun.contains("EXPLO")) {
|
||||||
if (!db_[table].contains(gun[field])) {
|
copy_explosion_from_aim2(gun["EXPLO"]);
|
||||||
db_.copy_from_aim2(table, gun[field]);
|
}
|
||||||
}
|
if (gun.contains("FXMODEL")) {
|
||||||
};
|
copy_from_aim2(gun["FXMODEL"]);
|
||||||
copy_explosion_from_aim2(gun["EXPLO"]);
|
}
|
||||||
copy_from_aim2(gun["FXMODEL"]);
|
if (gun.contains("FXMODEL2")) {
|
||||||
copy_from_aim2(gun["FXMODEL2"]);
|
copy_from_aim2(gun["FXMODEL2"]);
|
||||||
copy_sound_from_aim2(gun["IDSOUND"]);
|
}
|
||||||
copy_sound_from_aim2(gun["IDSOUNDEND"], true);
|
if (gun.contains("IDSOUND")) {
|
||||||
|
copy_sound_from_aim2(gun["IDSOUND"]);
|
||||||
|
}
|
||||||
|
if (gun.contains("IDSOUNDEND")) {
|
||||||
|
copy_sound_from_aim2(gun["IDSOUNDEND"], true);
|
||||||
|
}
|
||||||
if (gun.contains("MISSILE") && !gun["MISSILE"].empty()) {
|
if (gun.contains("MISSILE") && !gun["MISSILE"].empty()) {
|
||||||
copy_missile_from_aim2(gun["MISSILE"]);
|
copy_missile_from_aim2(gun["MISSILE"]);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -67,9 +67,11 @@ struct mmo_storage2 {
|
||||||
// mech_groups
|
// mech_groups
|
||||||
{
|
{
|
||||||
sections.mech_groups.offset = s.p - f.p;
|
sections.mech_groups.offset = s.p - f.p;
|
||||||
uint32_t n_mechs = s;
|
uint32_t n_mech_groups = s;
|
||||||
|
// two ints
|
||||||
|
// and ten more ints?
|
||||||
s.skip(0x30);
|
s.skip(0x30);
|
||||||
while (n_mechs--) {
|
while (n_mech_groups--) {
|
||||||
mech_group o = s;
|
mech_group o = s;
|
||||||
|
|
||||||
switch (o.type) {
|
switch (o.type) {
|
||||||
|
|
@ -94,7 +96,7 @@ struct mmo_storage2 {
|
||||||
|
|
||||||
while (o.n_mechs--) {
|
while (o.n_mechs--) {
|
||||||
struct mech {
|
struct mech {
|
||||||
char name[0x20];
|
char cfg_name[0x20];
|
||||||
};
|
};
|
||||||
mech m = s;
|
mech m = s;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue