Updated SWAG/DONUTS

This commit is contained in:
Rage 2025-01-14 20:43:36 -05:00
parent b292d36c21
commit 951d0201f9
9 changed files with 51 additions and 42 deletions

View File

@ -130,9 +130,9 @@ scavMaxGroupSize = 4
## Max pmc group size ## Max pmc group size
# Setting type: Int32 # Setting type: Int32
# Default value: 4 # Default value: 5
# Acceptable value range: From 0 to 10 # Acceptable value range: From 0 to 10
pmcMaxGroupSize = 4 pmcMaxGroupSize = 5
## Increases chances of pmc groups spawning, doesn't dramatically increase quantity. ## Increases chances of pmc groups spawning, doesn't dramatically increase quantity.
# Setting type: Boolean # Setting type: Boolean
@ -158,7 +158,7 @@ MaxBotCap = 25
## This controls the health of zombies ## This controls the health of zombies
# Setting type: Double # Setting type: Double
# Default value: 1 # Default value: 0.5
# Acceptable value range: From 0 to 3 # Acceptable value range: From 0 to 3
ZombieHealth = 0.5 ZombieHealth = 0.5
@ -166,17 +166,17 @@ ZombieHealth = 0.5
# Setting type: Double # Setting type: Double
# Default value: 1 # Default value: 1
# Acceptable value range: From 0 to 10 # Acceptable value range: From 0 to 10
ZombieWaveQuantity = 0.5 ZombieWaveQuantity = 1
## Determines the weighting of spawns at the beginning (1) spread evenly throughout (0.5) or at the end(0) of the raid ## Determines the weighting of spawns at the beginning (1) spread evenly throughout (0.5) or at the end(0) of the raid
# Setting type: Double # Setting type: Double
# Default value: 0.5 # Default value: 0.2
# Acceptable value range: From 0 to 1 # Acceptable value range: From 0 to 1
ZombieWaveDistribution = 0.2 ZombieWaveDistribution = 0.2
## Enables zombies to spawn ## Enables zombies to spawn
# Setting type: Boolean # Setting type: Boolean
# Default value: false # Default value: true
zombiesEnabled On/Off = true zombiesEnabled On/Off = true
## Determines the weighting of spawns at the beginning (1) spread evenly throughout (0.5) or at the end(0) of the raid ## Determines the weighting of spawns at the beginning (1) spread evenly throughout (0.5) or at the end(0) of the raid
@ -187,19 +187,19 @@ ScavWaveDistribution = 0.5
## Determines the weighting of spawns at the beginning (1) spread evenly throughout (0.5) or at the end(0) of the raid ## Determines the weighting of spawns at the beginning (1) spread evenly throughout (0.5) or at the end(0) of the raid
# Setting type: Double # Setting type: Double
# Default value: 0.7 # Default value: 0.8
# Acceptable value range: From 0 to 1 # Acceptable value range: From 0 to 1
PmcWaveDistribution = 0.7 PmcWaveDistribution = 0.8
## Multiplies wave counts seen in the server's mapConfig.json by this number ## Multiplies wave counts seen in the server's mapConfig.json by this number
# Setting type: Double # Setting type: Double
# Default value: 1 # Default value: 1.5
# Acceptable value range: From 0 to 10 # Acceptable value range: From 0 to 10
ScavWaveQuantity = 1 ScavWaveQuantity = 1.5
## Multiplies wave counts seen in the server's mapConfig.json by this number ## Multiplies wave counts seen in the server's mapConfig.json by this number
# Setting type: Double # Setting type: Double
# Default value: 1 # Default value: 1.5
# Acceptable value range: From 0 to 10 # Acceptable value range: From 0 to 10
PmcWaveQuantity = 1.5 PmcWaveQuantity = 1.5

View File

@ -27,13 +27,18 @@
"raid_review__0.3.0", "raid_review__0.3.0",
"lacyway-mergeconsumables", "lacyway-mergeconsumables",
"acidphantasm-brightlasers", "acidphantasm-brightlasers",
"AUG_AttachmentPack",
"shibdib-shibsexpandedcrafts", "shibdib-shibsexpandedcrafts",
"zSolarint-SAIN-ServerMod", "zSolarint-SAIN-ServerMod",
"Skwizzy-LootingBots-ServerMod", "Skwizzy-LootingBots-ServerMod",
"SWAG", "DewardianDev-MOAR",
"inory-dynamicgoons", "inory-dynamicgoons",
"acidphantasm-progressivebotsystem", "acidphantasm-progressivebotsystem",
"ArenaLockboxes-Delod-1.0.0", "ArenaLockboxes-Delod-1.0.0",
"tyfon-weaponcustomizer" "tyfon-weaponcustomizer",
"Additional Clothing BEAR",
"Additional Clothing USEC",
"BRNVG_N-15Adapter",
"OpticRework-310"
] ]
} }

View File

@ -49,7 +49,7 @@
{ {
"x": -95.4472046, "x": -95.4472046,
"y": -9.004111, "y": -9.004111,
"z": 74.5079 "z": 47.000000
} }
], ],
"Zone_Green_Start": [ "Zone_Green_Start": [

View File

@ -1,11 +1,11 @@
[General] [General]
gameName=spt gameName=spt
modid=0 modid=0
version=d2025.1.12.0 version=d2025.1.14.0
newestVersion= newestVersion=
category="1," category="1,"
nexusFileStatus=1 nexusFileStatus=1
installationFile=SWAG-Donuts-v4.0.0RC2-SPT310x.7z installationFile=SWAG-Donuts-v4.0.0RC4-SPT310x.7z
repository=Nexus repository=Nexus
ignoredVersion= ignoredVersion=
comments= comments=

View File

@ -30,7 +30,7 @@
"factory": 0, "factory": 0,
"factory_night": 2, "factory_night": 2,
"groundzero": 0, "groundzero": 0,
"groundzero_high": 44, "groundzero_high": 4,
"interchange": 0, "interchange": 0,
"laboratory": 0, "laboratory": 0,
"lighthouse": 0, "lighthouse": 0,

View File

@ -65,6 +65,7 @@ import scav_snipers from "../config/other/scav_snipers.json";
// Custom // Custom
import punisher from "../config/custom/punisher.json" import punisher from "../config/custom/punisher.json"
import legion from "../config/custom/legion.json" import legion from "../config/custom/legion.json"
import {DatabaseService} from "@spt/services/DatabaseService";
const otherSpawnConfigs = [ const otherSpawnConfigs = [
bloodhounds, bloodhounds,
@ -230,7 +231,7 @@ class SWAG implements IPreSptLoadMod, IPostDBLoadMod
!config?.UseDefaultSpawns?.TriggeredWaves !config?.UseDefaultSpawns?.TriggeredWaves
) )
{ {
SWAG.disableSpawnSystems(); SWAG.disableSpawnSystems(container);
} }
// disable more vanilla spawn stuff // disable more vanilla spawn stuff
@ -240,10 +241,6 @@ class SWAG implements IPreSptLoadMod, IPostDBLoadMod
locationConfig.addCustomBotWavesToMaps = false; locationConfig.addCustomBotWavesToMaps = false;
locationConfig.enableBotTypeLimits = false; locationConfig.enableBotTypeLimits = false;
logger.info(
"SWAG: Vanilla spawn systems disabled"
);
return output; return output;
} }
}], }],
@ -511,8 +508,6 @@ class SWAG implements IPreSptLoadMod, IPostDBLoadMod
{ {
SWAG.spawnCustom(custom, globalmap); SWAG.spawnCustom(custom, globalmap);
}); });
logger.warning(`SWAG: Configured boss spawns for map ${globalmap}`);
}); });
} }
@ -753,20 +748,20 @@ class SWAG implements IPreSptLoadMod, IPostDBLoadMod
return Math.floor(Math.random() * (max - min + 1)) + min; return Math.floor(Math.random() * (max - min + 1)) + min;
} }
static disableSpawnSystems(): void static disableSpawnSystems(container: DependencyContainer): void
{ {
let map: keyof ILocations; const DB = container.resolve<DatabaseService>("DatabaseService").getTables();
for (map in locations) const locations = Object.keys(DB.locations);
{ for (const loc of locations) {
if (map === "base" || map === "hideout") const base = DB.locations[loc].base;
{ if (!base) continue;
continue; // Set spawn systems
} base.NewSpawn = false;
// locations[map].base.OfflineNewSpawn = false; base.OfflineNewSpawn = false;
// locations[map].base.OfflineOldSpawn = true; base.OldSpawn = true;
locations[map].base.NewSpawn = false; base.OfflineOldSpawn = true;
locations[map].base.OldSpawn = true;
} }
logger.info("SWAG: Spawn Systems Set")
} }
static clearDefaultSpawns(): void static clearDefaultSpawns(): void
@ -790,6 +785,17 @@ class SWAG implements IPreSptLoadMod, IPostDBLoadMod
}; };
} }
// Set bot USECs and BEARs to always be hostile to their chanced enemies
locations[map].base.BotLocationModifier.AdditionalHostilitySettings.forEach(setting =>
{
setting.BearEnemyChance = 100;
setting.UsecEnemyChance = 100;
setting.ChancedEnemies.forEach(enemy =>
{
enemy.EnemyChance = 100;
})
})
// Reset Database, Cringe -- i stole this code from LUA // Reset Database, Cringe -- i stole this code from LUA
locations[map].base.waves = [...SWAG.savedLocationData[map].waves]; locations[map].base.waves = [...SWAG.savedLocationData[map].waves];
locations[map].base.BossLocationSpawn = [ locations[map].base.BossLocationSpawn = [

View File

@ -1,8 +1,7 @@
# This file was automatically generated by Mod Organizer.
-Unsorted_separator -Unsorted_separator
-Version 1.30.2_separator -Version 1.30.2_separator
-SWAG + DONUTS
-Visceral Combat -Visceral Combat
-MOAR - Ultra Lite Spawn Mod
-Backburner_separator -Backburner_separator
+Config Files +Config Files
-Modlist Addons_separator -Modlist Addons_separator
@ -15,7 +14,7 @@
+Nerf Bot Grenades +Nerf Bot Grenades
+Progressive Bot System +Progressive Bot System
+Dynamic Goons +Dynamic Goons
+MOAR - Ultra Lite Spawn Mod +SWAG + DONUTS
+Looting Bots +Looting Bots
+That's Lit - Sync +That's Lit - Sync
+That's Lit +That's Lit

View File

@ -1,8 +1,7 @@
# This file was automatically generated by Mod Organizer.
+Unsorted_separator +Unsorted_separator
-Version 1.30.2_separator -Version 1.30.2_separator
-SWAG + DONUTS
-Visceral Combat -Visceral Combat
-MOAR - Ultra Lite Spawn Mod
+Backburner_separator +Backburner_separator
+Config Files +Config Files
+Modlist Addons_separator +Modlist Addons_separator
@ -15,7 +14,7 @@
+Nerf Bot Grenades +Nerf Bot Grenades
+Progressive Bot System +Progressive Bot System
+Dynamic Goons +Dynamic Goons
+MOAR - Ultra Lite Spawn Mod +SWAG + DONUTS
+Looting Bots +Looting Bots
+That's Lit - Sync +That's Lit - Sync
+That's Lit +That's Lit