Updated Swagnuts

This commit is contained in:
2025-01-12 03:14:20 -05:00
parent 66964b26ef
commit df12331013
365 changed files with 1335 additions and 2826 deletions
@@ -152,8 +152,22 @@
"shoreline": 0,
"streets": 0,
"woods": 0
},
"partisan": {
"customs": 15,
"factory": 0,
"factory_night": 0,
"groundzero": 0,
"groundzero_high": 0,
"interchange": 0,
"laboratory": 0,
"lighthouse": 15,
"reserve": 0,
"shoreline": 15,
"streets": 0,
"woods": 15
}
},
},
"CustomBosses": {
"santa": {
"enabled": true,
@@ -0,0 +1,136 @@
{
"customs": [
{
"BossChance": 15,
"BossEscortAmount": "0",
"BossEscortType": "followerzryachiy",
"BossName": "bosspartisan",
"BossZone": null,
"Supports": null,
"Time": -1
}
],
"factory": [
{
"BossChance": 0,
"BossEscortAmount": "0",
"BossEscortType": "followerzryachiy",
"BossName": "bosspartisan",
"BossZone": null,
"Supports": null,
"Time": -1
}
],
"factory_night": [
{
"BossChance": 0,
"BossEscortAmount": "0",
"BossEscortType": "followerzryachiy",
"BossName": "bosspartisan",
"BossZone": null,
"Supports": null,
"Time": -1
}
],
"groundzero": [
{
"BossChance": 0,
"BossEscortAmount": "0",
"BossEscortType": "followerzryachiy",
"BossName": "bosspartisan",
"BossZone": null,
"Supports": null,
"Time": -1
}
],
"groundzero_high": [
{
"BossChance": 0,
"BossEscortAmount": "0",
"BossEscortType": "followerzryachiy",
"BossName": "bosspartisan",
"BossZone": null,
"Supports": null,
"Time": -1
}
],
"interchange": [
{
"BossChance": 0,
"BossEscortAmount": "0",
"BossEscortType": "followerzryachiy",
"BossName": "bosspartisan",
"BossZone": null,
"Supports": null,
"Time": -1
}
],
"laboratory": [
{
"BossChance": 0,
"BossEscortAmount": "0",
"BossEscortType": "followerzryachiy",
"BossName": "bosspartisan",
"BossZone": null,
"Supports": null,
"Time": -1
}
],
"lighthouse": [
{
"BossChance": 15,
"BossEscortAmount": "0",
"BossEscortType": "followerzryachiy",
"BossName": "bosspartisan",
"BossZone": [
"Zone_Island"
],
"Supports": null,
"Time": -1
}
],
"reserve": [
{
"BossChance": 0,
"BossEscortAmount": "0",
"BossEscortType": "followerzryachiy",
"BossName": "bosspartisan",
"BossZone": null,
"Supports": null,
"Time": -1
}
],
"shoreline": [
{
"BossChance": 15,
"BossEscortAmount": "0",
"BossEscortType": "followerzryachiy",
"BossName": "bosspartisan",
"BossZone": null,
"Supports": null,
"Time": -1
}
],
"streets": [
{
"BossChance": 0,
"BossEscortAmount": "0",
"BossEscortType": "followerzryachiy",
"BossName": "bosspartisan",
"BossZone": null,
"Supports": null,
"Time": -1
}
],
"woods": [
{
"BossChance": 15,
"BossEscortAmount": "0",
"BossEscortType": "followerzryachiy",
"BossName": "bosspartisan",
"BossZone": null,
"Supports": null,
"Time": -1
}
]
}
@@ -25,6 +25,7 @@ export const roleCase: object = {
bosskolontay: "bossKolontay",
bosspunisher: "bosspunisher",
bosslegion: "bosslegion",
bosspartisan: "bossPartisan",
followerboar: "followerBoar",
followerboarclose1: "followerBoarClose1",
followerboarclose2: "followerBoarClose2",
@@ -67,6 +68,7 @@ export const reverseBossNames: object = {
bossknight: "goons",
bosszryachiy: "zryachiy",
bosskolontay: "kolontay",
bosspartisan: "partisan",
marksman: "scav_snipers",
sectantpriest: "cultists",
exusec: "rogues",
+13 -20
View File
@@ -53,6 +53,7 @@ import sanitar from "../config/bosses/sanitar.json";
import shturman from "../config/bosses/shturman.json";
import tagilla from "../config/bosses/tagilla.json";
import zryachiy from "../config/bosses/zryachiy.json";
import partisan from "../config/bosses/partisan.json";
// Spawn Configs
import bloodhounds from "../config/other/bloodhounds.json";
@@ -83,7 +84,8 @@ const bossSpawnConfigs = [
sanitar,
shturman,
tagilla,
zryachiy
zryachiy,
partisan
];
const customSpawnConfigs = [
@@ -168,9 +170,9 @@ class SWAG implements IPreSptLoadMod, IPostDBLoadMod
);
staticRouterModService.registerStaticRouter(
`${modName}/client/match/offline/end`,
`${modName}/client/match/local/end`,
[{
url: "/client/match/offline/end",
url: "/client/match/local/end",
action: async (
url: string,
info: any,
@@ -261,22 +263,13 @@ class SWAG implements IPreSptLoadMod, IPostDBLoadMod
{
try
{
// Retrieve configurations
const configServer = container.resolve<ConfigServer>("ConfigServer");
const botConfig = configServer.getConfig<IBotConfig>(ConfigTypes.BOT);
const pmcConfig = configServer.getConfig<IPmcConfig>(ConfigTypes.PMC);
// Disable PMC conversion
const conversionTypes = ["assault", "cursedassault", "pmcbot", "exusec", "arenafighter", "arenafighterevent", "crazyassaultevent"];
validMaps.forEach(location =>
{
conversionTypes.forEach(botType =>
{
const mapPmcChances = pmcConfig.convertIntoPmcChance[location];
if (mapPmcChances)
{
mapPmcChances[botType] = { min: 0, max: 0 };
}
const botConfig = container.resolve<ConfigServer>("ConfigServer").getConfig<IBotConfig>(ConfigTypes.BOT);
const pmcConfig = container.resolve<ConfigServer>("ConfigServer").getConfig<IBotConfig>(ConfigTypes.PMC);
const { convertIntoPmcChance } = pmcConfig;
Object.entries(convertIntoPmcChance).forEach(([mapKey, map]) => {
Object.entries(map).forEach(([roleKey, role]) => {
role.min = 0;
role.max = 0;
});
});
logger.info("SWAG: PMC conversion is OFF (this is good - be sure this loads AFTER Realism/SVM)");
@@ -817,7 +810,7 @@ class SWAG implements IPreSptLoadMod, IPostDBLoadMod
)
{
locations[map].base.BossLocationSpawn = [];
return;
continue;
}
// Remove Default Boss Spawns