BeiduoduoYaa-DrifterSprintFix icon

DrifterSprintFix

Fixes Drifter's utility skills (Repossess, bag throw, Tornado Slam) being instantly cancelled when using an auto-sprint mod.

Last updated 3 weeks ago
Total downloads 157
Total rating 0 
Categories Player Characters Tweaks AI Generated
Dependency string BeiduoduoYaa-DrifterSprintFix-1.3.0
Dependants 0 other packages depend on this package

This mod requires the following mods to function

bbepis-BepInExPack-5.4.2100 icon
bbepis-BepInExPack

Unified BepInEx all-in-one modding pack - plugin framework, detour library

Preferred version: 5.4.2100

README

Drifter Sprint Fix

Makes Drifter's skill definitions stop cancelling themselves when you are sprinting.

The problem

If you play with any auto-sprint mod (RTAutoSprintEx, AutoSprint, ...), Drifter's utility skills get cancelled the moment they start, because the game marks those skills as canceledFromSprinting while the auto-sprint mod keeps you in the sprint state every frame.

Symptoms:

  • Pressing the utility skill does nothing / flashes and disappears
  • Throwing a bagged object flashes and is cancelled

What it does

At startup the plugin scans every SkillDef whose activation state is one of:

  • Repossess
  • RepossessExit / AimRepossess
  • TornadoSlam / ChargeTornadoSlam
  • EmptyBag / AimMagicBag / MagicBag

and sets:

canceledFromSprinting = false;
cancelSprintingOnActivation = false;

It re-scans once per second for the first 40 seconds so late-loaded content is covered too.

Notes

  • Client-side and safe to install without affecting other survivors.
  • No configuration needed.
  • Works with any auto-sprint mod, no dependency on them.

中文说明

装常态奔跑类 mod 后,漂泊者的抓取/投掷技能会因为处于冲刺状态被瞬间取消。这个补丁把这些技能的「冲刺取消」标记关掉,扫描 5 个相关状态,启动后每秒重扫一次共 40 秒。