Added Equipment Weighting to PMCs

This commit is contained in:
Valens 2023-02-16 13:55:40 -05:00
parent d78e51911e
commit 93fd538d06

View File

@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/naming-convention */
import { EquipmentFilterDetails, EquipmentFilters, IBotConfig } from "@spt-aki/models/spt/config/IBotConfig";
import { IDatabaseTables } from "@spt-aki/models/spt/server/IDatabaseTables";
import { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
@ -203,17 +204,293 @@ export class PMCs
// PMC Weighting Start
const pmcEquipment = JSON.parse(JSON.stringify(this.databaseServer.bots.types.usec.inventory.equipment));
// PMC Armor Vest Weighting
const pmcArmorVest = JSON.parse(JSON.stringify(this.databaseServer.bots.types.usec.inventory.equipment.ArmorVest));
pmcArmorVest =
// PMC Armband Weighting
pmcEquipment.ArmBand =
{
"5b3f16c486f7747c327f55f7": 1,
"5b3f3ade86f7746b6b790d8e": 1,
"5b3f3af486f774679e752c1f": 1,
"5b3f3b0186f774021a2afef7": 1,
"5b3f3b0e86f7746752107cda": 1,
"619bdf9cc9546643a67df6f8": 1,
"619bc61e86e01e16f839a999": 1,
"619bdfd4c9546643a67df6fa": 1,
"619bdd8886e01e16f839a99c": 1,
"60b0f988c4449e4cb624c1da": 1,
"5f9949d869e2777a0e779ba5": 1
};
this.databaseServer.bots.types.usec.inventory.equipment.ArmorVest = pmcEquipment.ArmBand;
this.databaseServer.bots.types.bear.inventory.equipment.ArmorVest = pmcEquipment.ArmBand;
// PMC Armor Vest Weighting
pmcEquipment.ArmorVest =
{
"5c0e5bab86f77461f55ed1f3": 1,
"5c0e5edb86f77461f55ed1f7": 1,
"5648a7494bdc2d9d488b4583": 1,
"5ab8e4ed86f7742d8e50c7fa": 1,
"5df8a2ca86f7740bfe6df777": 1,
"5b44d22286f774172b0c9de8": 1,
"5c0e51be86f774598e797894": 1,
"5f5f41476bdad616ad46d631": 1,
"545cdb794bdc2d3a198b456a": 1,
"5ab8e79e86f7742d8b372e78": 1,
"5b44d0de86f774503d30cba8": 1,
"5ca2151486f774244a3b8d30": 1,
"609e8540d5c319764c2bc2e9": 1,
"5c0e57ba86f7747fa141986d": 1,
"5c0e53c886f7747fa54205c7": 1
};
this.databaseServer.bots.types.usec.inventory.equipment.ArmorVest = pmcArmorVest;
this.databaseServer.bots.types.bear.inventory.equipment.ArmorVest = pmcArmorVest;
this.databaseServer.bots.types.usec.inventory.equipment.ArmorVest = pmcEquipment.ArmorVest;
this.databaseServer.bots.types.bear.inventory.equipment.ArmorVest = pmcEquipment.ArmorVest;
// PMC Backpack Weighting
pmcEquipment.Backpack =
{
"60a2828e8689911a226117f9": 1,
"5ab8ee7786f7742d8f33f0b9": 1,
"544a5cde4bdc2d39388b456b": 1,
"5e9dcf5986f7746c417435b3": 1,
"56e33680d2720be2748b4576": 1,
"5ab8f04f86f774585f4237d8": 1,
"5ca20d5986f774331e7c9602": 1,
"5d5d940f86f7742797262046": 1,
"6038d614d10cbf667352dd44": 1,
"618bb76513f5097c8d5aa2d5": 1,
"619cf0335771dd3c390269ae": 1,
"545cdae64bdc2d39198b4568": 1,
"5ab8ebf186f7742d8b372e80": 1,
"5f5e467b0bc58666c37e7821": 1,
"5f5e46b96bdad616ad46d613": 1,
"618cfae774bb2d036a049e7c": 1,
"62a1b7fbc30cfa1d366af586": 1,
"5df8a4d786f77412672a1e3b": 1
};
this.databaseServer.bots.types.usec.inventory.equipment.ArmorVest = pmcEquipment.Backpack;
this.databaseServer.bots.types.bear.inventory.equipment.ArmorVest = pmcEquipment.Backpack;
// PMC Earpiece Weighting
pmcEquipment.Earpiece =
{
"5b432b965acfc47a8774094e": 1,
"6033fa48ffd42c541047f728": 1,
"5645bcc04bdc2d363b8b4572": 1,
"5aa2ba71e5b5b000137b758f": 1,
"5a16b9fffcdbcb0176308b34": 1
};
this.databaseServer.bots.types.usec.inventory.equipment.ArmorVest = pmcEquipment.Earpiece;
this.databaseServer.bots.types.bear.inventory.equipment.ArmorVest = pmcEquipment.Earpiece;
// PMC Eyewear Weighting
pmcEquipment.Eyewear =
{
"5b432be65acfc433000ed01f": 1,
"5aa2b986e5b5b00014028f4c": 1,
"557ff21e4bdc2d89578b4586": 1,
"5d5fca1ea4b93635fd598c07": 1,
"603409c80ca681766b6a0fb2": 1,
"5d6d2e22a4b9361bd5780d05": 1,
"5c0d32fcd174af02a1659c75": 1
};
this.databaseServer.bots.types.usec.inventory.equipment.ArmorVest = pmcEquipment.Eyewear;
this.databaseServer.bots.types.bear.inventory.equipment.ArmorVest = pmcEquipment.Eyewear;
// PMC FaceCover Weighting
pmcEquipment.FaceCover =
{
"572b7f1624597762ae139822": 1,
"5ab8f39486f7745cd93a1cca": 1,
"5b4325355acfc40019478126": 1,
"5ab8f85d86f7745cd93a1cf5": 1,
"5b432f3d5acfc4704b4a1dfb": 1
};
this.databaseServer.bots.types.usec.inventory.equipment.ArmorVest = pmcEquipment.FaceCover;
this.databaseServer.bots.types.bear.inventory.equipment.ArmorVest = pmcEquipment.FaceCover;
// PMC FirstPrimaryWeapon Weighting
pmcEquipment.FirstPrimaryWeapon =
{
"5926bb2186f7744b1c6c6e60": 1,
"574d967124597745970e7c94": 1,
"57dc2fa62459775949412633": 1,
"57f3c6bd24597738e730fa2f": 1,
"5839a40f24597726f856b511": 1,
"57d14d2524597714373db789": 1,
"57f4c844245977379d5c14d1": 1,
"59984ab886f7743e98271174": 1,
"5ea03f7400685063ec28bfa8": 1,
"5a7828548dc32e5a9c28b516": 1,
"5bfd297f0db834001a669119": 1,
"59d6088586f774275f37482f": 1,
"583990e32459771419544dd2": 1,
"59e6152586f77473dc057aa1": 1,
"5c07c60e0db834002330051f": 1,
"5a38e6bac4a2826c6e06d79b": 1,
"56dee2bdd2720bc8328b4567": 1,
"5447a9cd4bdc2dbd208b4567": 1,
"5d2f0d8048f0356c925bc3b0": 1,
"5fc3e272f8b6a877a729eac5": 1,
"58948c8e86f77409493f7266": 1,
"59e6687d86f77411d949b251": 1,
"54491c4f4bdc2db1078b4568": 1,
"5ba26383d4351e00334c93d9": 1,
"587e02ff24597743df3deaeb": 1,
"5c501a4d2e221602b412b540": 1,
"60db29ce99594040e04c4a27": 1,
"5580223e4bdc2d1c128b457f": 1,
"61f7c9e189e6fb1a5e3ea78d": 1,
"5e870397991fd70db46995c8": 1,
"5de652c31b7e3716273428be": 1,
"5644bd2b4bdc2d3b4c8b4572": 1,
"59ff346386f77477562ff5e2": 1,
"5ab8e9fcd8ce870019439434": 1,
"5ac4cd105acfc40016339859": 1,
"5bf3e03b0db834001d2c4a9c": 1,
"55801eed4bdc2d89578b4588": 1,
"5fbcc1d9016cce60e8341ab3": 1,
"628b5638ad252a16da6dd245": 1,
"628b9c37a733087d0d7fe84b": 1,
"5f2a9575926fd9352339381f": 1,
"60339954d62c9b14ed777c06": 1,
"62e7c4fba689e8c9c50dfc38": 1,
"623063e994fc3f7b302a9696": 1,
"5cc82d76e24e8d00134b4b83": 1,
"5aafa857e5b5b00018480968": 1,
"5bfea6e90db834001b7347f3": 1,
"576165642459773c7a400233": 1,
"618428466ef05c2ce828f218": 1,
"5ac66d725acfc43b321d4b60": 1,
"5ac66d2e5acfc43b321d4b53": 1,
"5ac66d9b5acfc4001633997a": 1,
"5beed0f50db834001c062b12": 1,
"57838ad32459774a17445cd2": 1,
"5c46fbd72e2216398b5a8c9c": 1,
"5e848cc2988a8701445df1e8": 1,
"62e14904c2699c0ec93adc47": 1,
"588892092459774ac91d4b11": 1,
"5c488a752e221602b412af63": 1,
"5b0bbe4e5acfc40dc528a72d": 1,
"6184055050224f204c1da540": 1,
"63171672192e68c5460cebc5": 1,
"5a367e5dc4a282000e49738f": 1,
"5df8ce05b11454561e39243b": 1,
"6176aca650224f204c1da3fb": 1,
"5ac66cb05acfc40198510a10": 1,
"5d43021ca4b9362eab4b5e25": 1,
"5fc3f2d5900b1d5091531e57": 1,
"5fb64bc92b1b027b1f50bcf2": 1,
"5df24cf80dee1b22f862e9bc": 1
};
this.databaseServer.bots.types.usec.inventory.equipment.ArmorVest = pmcEquipment.FirstPrimaryWeapon;
this.databaseServer.bots.types.bear.inventory.equipment.ArmorVest = pmcEquipment.FirstPrimaryWeapon;
// PMC Headwear Weighting
pmcEquipment.Headwear =
{
"5a7c4850e899ef00150be885": 1,
"5aa7d193e5b5b000171d063f": 1,
"5c06c6a80db834001b735491": 1,
"5645bc214bdc2d363b8b4571": 1,
"59e7711e86f7746cae05fbe1": 1,
"5aa7d03ae5b5b00016327db5": 1,
"5d5e7d28a4b936645d161203": 1,
"5b432d215acfc4771e1c6624": 1,
"5aa7e454e5b5b0214e506fa2": 1,
"5e00c1ad86f774747333222c": 1,
"5ac8d6885acfc400180ae7b0": 1,
"5b40e3f35acfc40016388218": 1,
"5b40e4035acfc47a87740943": 1,
"5b4329f05acfc47a86086aa1": 1,
"5c091a4e0db834001d5addc8": 1,
"5d6d3716a4b9361bc8618872": 1
};
this.databaseServer.bots.types.usec.inventory.equipment.ArmorVest = pmcEquipment.Headwear;
this.databaseServer.bots.types.bear.inventory.equipment.ArmorVest = pmcEquipment.Headwear;
// PMC Holster Weighting
pmcEquipment.Holster =
{
"624c2e8614da335f1e034d8c": 1,
"5448bd6b4bdc2dfc2f8b4569": 1,
"56e0598dd2720bb5668b45a6": 1,
"571a12c42459771f627b58a0": 1,
"576a581d2459771e7b1bc4f1": 1,
"602a9740da11d6478d5a06dc": 1,
"5a17f98cfcdbcb0980087290": 1,
"5e81c3cbac2bb513793cdc75": 1,
"5cadc190ae921500103bb3b6": 1,
"56d59856d2720bd8418b456a": 1,
"5a7ae0c351dfba0017554310": 1,
"59f98b4986f7746f546d2cef": 1,
"5abccb7dd8ce87001773e277": 1,
"63088377b5cd696784087147": 1,
"5d3eb3b0a4b93615055e84d2": 1,
"6193a720f8ee7e52e42109ed": 1,
"61a4c8884f95bc3b2c5dc96f": 1,
"633ec7c2a6918cb895019c6c": 1
};
this.databaseServer.bots.types.usec.inventory.equipment.ArmorVest = pmcEquipment.Holster;
this.databaseServer.bots.types.bear.inventory.equipment.ArmorVest = pmcEquipment.Holster;
// PMC Tactical Vest Weighting
pmcEquipment.TacticalVest =
{
"5c0e446786f7742013381639": 1,
"5929a2a086f7744f4b234d43": 1,
"59e7643b86f7742cbf2c109a": 1,
"5e4abc1f86f774069619fbaa": 1,
"6034d0230ca681766b6a0fb5": 1,
"6034cf5fffd42c541047f72e": 1,
"572b7adb24597762ae139821": 1,
"544a5caa4bdc2d1a388b4568": 1,
"5d5d646386f7742797261fd9": 1,
"61bc85697113f767765c7fe7": 1,
"5d5d8ca986f7742798716522": 1,
"5d5d85c586f774279a21cbdb": 1,
"592c2d1a86f7746dbe2af32a": 1,
"5fd4c60f875c30179f5d04c2": 1,
"5ca20abf86f77418567a43f2": 1,
"5b44c8ea86f7742d1627baf1": 1,
"603648ff5a45383c122086ac": 1,
"60a6220e953894617404b00a": 1,
"5e4abfed86f77406a2713cf7": 1,
"60a3c70cde5f453f634816a3": 1,
"639343fce101f4caa40a4ef3": 1,
"5648a69d4bdc2ded0b8b457b": 1,
"5ab8dced86f774646209ec87": 1,
"5c0e722886f7740458316a57": 1,
"5d5d87f786f77427997cfaef": 1,
"628dc750b910320f4c27a732": 1,
"61bcc89aef0f505f0c6cd0fc": 1,
"628d0618d1ba6e4fa07ce5a4": 1,
"5df8a42886f77412640e2e75": 1
};
this.databaseServer.bots.types.usec.inventory.equipment.ArmorVest = pmcEquipment.TacticalVest;
this.databaseServer.bots.types.bear.inventory.equipment.ArmorVest = pmcEquipment.TacticalVest;
// PMC Ammo Weighting