Stay & Combat Fixes
What's new in 2.0.0
- Possession free aim — Crosshair targeting, ballistic correction, predictive lead, scroll-wheel zoom, and smoother first-person camera while possessing
- Out-of-range UI — Visual feedback when your possessed unit cannot reach the crosshair target
- Aim exclusions menu — Main-menu toggle list for units/weapons excluded from possession free aim
- Kill Enemy Count — New win condition: win after killing a set number of enemy units
- Kill All Selected Units — Faster editor UI and battle evaluation (v1.8.30 perf fixes included)
- Battle/custom-content fixes — Possession and win-condition features work reliably after entering battle from custom content
|
|
| Version |
2.0.4 |
| Author |
Pretz |
| GUID |
pretz.staycombatfix |
What this mod does
Combat and abilities
- Stay aura — Stops units from sliding and leaning forward under Stay (Banner Bearer and similar). Keeps weapons from drifting and improves ranged aim without breaking charge abilities.
- Lay down — Improves lay-down combat: range checks, attack targeting, and firing while prone. MG-42 and M2 Browning keep vanilla unit combat moves (lay-down stays on the weapon only).
- Mirror shield — Improved projectile reflection and block behavior. Toggle with
Mirror.Shield.Improved in the config file.
Environment and projectiles
- Water physics — Replaces vanilla mud-like water slowdown with separate tuning for still ponds and rivers. Fixes dynasty-style river forks pulling units toward the junction.
- Barrel death explosion — Units with the barrel ability reliably explode on death, not just the Barrel Roller blueprint.
- Gas grenade — Fixes the gas grenade falling through the floor on ground hits while still bouncing off walls normally.
Faction creator
- Drag reorder — Drag units in the custom faction list to change order. Order is saved with the faction.
- Custom unit cost on hover — Shows cost when you hover custom units in the faction editor (faction list and unit browser). Vanilla faction units are unchanged.
Win conditions
- Kill All Selected Units — Victory condition in the map editor: pick multiple enemy units (click each one on the battlefield), then Apply. You win when every selected unit has been killed. Shows in the win-condition list as Kill All Selected Units (alongside Last Team Standing, Time Limit, Defeat Unit, etc.).
Team line (square)
- Square team boundary in placement (third type after Line and Circle).
- True square red/blue map tint uses shader
Hidden/StayCombatFix/TeamEdgeSquare embedded in the DLL and injected into globalgamemanagers.assets on first run.
- Build the bundle once with Unity 2019.4.33f1 — see
tools/UNITY-SQUARE-SHADER.md.
Configuration
After the first run, edit BepInEx/config/pretz.staycombatfix.cfg:
- Water.Still / Water.River — Pond and river movement tuning
- Mirror.Shield.Improved —
true for improved mirror shield, false for vanilla behavior
Requirements
Verify installation
In BepInEx/LogOutput.log after launching the game:
[Info : Stay & Combat Fixes] Loaded v1.1.0 by Pretz — Harmony 49/49
If the patch count is lower, check the log for warnings about skipped patches (usually a game update changed types).
Reporting errors
If something is not working, include:
- What happened and what you expected
- The map or unit involved (if relevant)
- Your
BepInEx/LogOutput.log from after the problem occurred
Send reports on the mod's Thunderstore page or wherever you downloaded the mod from.
Configuration (2.0.0 additions)
After the first run, edit BepInEx/config/pretz.staycombatfix.cfg:
- Possession.FirstPerson > FreeAim —
true enables possession crosshair aim, ballistic correction, range gate, and zoom; false restores vanilla possession behavior
Most possession tuning (torque, zoom, predictive aim, range multipliers) is compile-time constants in the mod source (FirstPersonFreeAimConfig.cs).
Verify 2.0.4
In BepInEx/LogOutput.log after launching the game:
[Info : Stay & Combat Fixes] Loaded v2.0.4 by Pretz — Harmony 109/109
If the patch count is lower, check the log for warnings about skipped patches (usually a game update changed types).
Credits
Pretz