Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Mercenary

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.

Requirements

Configuration

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.

Odin's bounty

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.

Odin's custom weapons

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.

Building

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.

A small note for other modders

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.

License

The Mercenary is released under the MIT License.

About

The deadly mercenary returns.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages