# SmartAction — SPT 4.0.x Lets you **walk while healing a leg** in SPT. Targets **SPT 4.0.13 / EFT 0.16.9.0.40087**, BepInEx 5, `netstandard2.1`. --- ## Attribution This is a reimplementation of **[yox92/SmartAction](https://github.com/yox92/SmartAction)**, which targets an earlier SPT version. The feature idea, the original research into which EFT internals to touch, and the name are yox92's work. **Upstream ships no LICENSE file.** If you intend to redistribute this or build on it, ask yox92 for an explicit license first — absence of a license means all rights reserved, and that applies to derivatives too. This is not a drop-in port. The patches were rewritten rather than translated; see [NOTES.md](NOTES.md) for what changed and why. --- ## Status | Feature | Status | |---|---| | Walk while healing legs | Working | | Sprint while using meds | **Not implemented** — see NOTES.md | | Adaptive heal speed | Not implemented | | Quick-cancel surgery | Not implemented | Only the first feature exists today. The rest of upstream's feature set is unported. ## Install Drop `SmartAction.dll` into `BepInEx/plugins/SmartAction/`. ## Build Requires the .NET SDK. Reference assemblies are read from a local SPT install: ```bash dotnet build -c Release -p:SptDir=/path/to/SPT ``` Add `-p:DeployToGame=true` to copy the result straight into `BepInEx/plugins/SmartAction/`. No BSG or SPT assemblies are redistributed here — the build reads them from your own install. ## Multiplayer / Fika The patch is guarded on `IsYourPlayer` and only ever grants movement, never removes it, so it is inert for bots and remote players by construction. Verified in a live raid: 985 guard rejections of non-local `MovementContext` instances with zero leaks, alongside SAIN, ORBIT and maschine-DualSideDoorBreach, all of which also patch `MovementContext`. No Fika dependency, no custom packets. It does not touch authoritative health state. ## Config `BepInEx/config/com.yox92.smartaction.cfg` | Setting | Default | Purpose | |---|---|---| | `Diagnostics` | `true` | Logs patch/guard activity and a counter summary every 30s. Turn off once you trust it. |