This is the SPT 4.0 revival of my old mod, The Mercenary.
The mod adds Odin, a lone mercenary who can appear during a raid. I made the original version quite a while ago and decided to bring him back after seeing how many people still remembered the mod.
The current version is 1.7.0 for SPT 4.0.13.
- MoreBotsAPI 2.0.1
- WTT CommonLib 2.0.20
- BigBrain 1.4.0 or newer
- SAIN is optional
Odin's spawn settings can be changed in config/spawn.jsonc or through the small web UI at http://127.0.0.1:6970/ while the SPT server is running.
Killing PMCs from your own faction builds Heat. At 60 Heat, Odin's bounty becomes active: he is guaranteed to spawn on an enabled map and hunts the player even when the regular Hunt option is disabled. Surviving clean raids lowers Heat again. Killing Odin grants two raids of respite, while being killed by Odin lowers Heat by 20.
The current Heat value can be viewed, changed for testing, or reset in the web UI. The balancing values and the in-raid warning can be adjusted in config/bounty.jsonc. Scav raids are ignored.
Custom item files using the WTT CommonLib format can be placed in db/CustomItems. A weapon cloned from Odin's current primary weapon automatically replaces the original in his loadout and remains exclusive to him. A small example file is included in the folder.
Compatibility rules for weapon slots can be placed in config/compat/weapons. An example file is included and ignored until it is renamed to .json or .jsonc.
Open TheMercenary.sln in Visual Studio and build the solution in Release mode. The projects expect SPT at S:\SPT by default. If your installation is somewhere else, change SptRoot in the three project files.
The Mercenary registers the custom bot type mercenary with the WildSpawnType value 836500.
Thanks to TacticalToaster for MoreBotsAPI, the WTT team for CommonLib, DrakiaXYZ for BigBrain, Solarint for SAIN, and everyone who played the old version of the mod.
The Mercenary is released under the MIT License.