A simple mod to sync leaning and shoulder swapping.
Author: hazelify
Version: 1.0.0
SPT Version: 4.0.13
License: MIT
Inspired by HollywoodCam which is created by the almighty Janky, I created this little offshoot mod as a standalone for those who, like me, only used HollywoodCam for the leaning. The configuration is more or less the same, with some variation; lean-shoulder-swapping works while you're aiming with this mod. I have not noticed any problems with leaning during ADS, so I left it in.
This template includes BepInEx Configuration examples. All settings are editable in-game via the F12 config manager or by editing the config file at BepInEx/config/hazelify.StanceSync.cfg.
| Setting | Type | Default | Description |
|---|---|---|---|
| Enable syncing | bool |
true |
Enable lean and shoulder swap sync |
| Enable reset sync | bool |
true |
Enable reset sync for leaning |
- SPT installed (BepInEx is included)
- .NET SDK (
netstandard2.1-compatible) for building from source
cd StanceSync
dotnet build -c ReleaseThe PostBuild target automatically copies the compiled DLL to your SPT installation's BepInEx\plugins\ folder.
The project also packages the mod into a distributable StanceSync.zip ready to be uploaded.
- Build the project (see above) or download the latest release DLL.
- Copy
StanceSync.dllto<SPT install>\BepInEx\plugins\or Drag and drop theBepInExfolder to your source / root SPT install, whereSPT.Serveris. - Launch SPT as usual.
- Press F12 in-game to open the config manager and adjust settings.
StanceSync/
├── Patches/
├── OnLeanPatchPostfix.cs ← PatchPostfix for leaning
└── PlayerCameraControllerPatchPrefix.cs ← PatchPrefix for camera controller
├── Camera.cs ← Unused file, too lazy to delete currently
├── StanceSync.csproj ← project file with DLL references
├── Plugin.cs ← BepInEx plugin with config entries
├── README.md ← README file for reading
└── .gitignore ← Wwhich files Git should ignore
| Resource | URL |
|---|---|
| BepInEx Configuration Docs | https://github.com/BepInEx/BepInEx.ConfigurationManager/blob/master/README.md |
| SPT Client Mod Examples | https://github.com/Jehree/SPTClientModExamples |
| SPT Wiki Modding Resources | https://wiki.sp-tarkov.com/modding/Modding_Resources |