JohnEdwa-RTAutoSprintAddon icon

RTAutoSprintAddon

Adds AutoSprint support for a few custom survivors/skill packs, as well as a config option to add them manually.

Last updated 2 years ago
Total downloads 14319
Total rating 4 
Categories Tweaks Client-side
Dependency string JohnEdwa-RTAutoSprintAddon-1.0.0
Dependants 7 other packages depend on this package

This mod requires the following mods to function

bbepis-BepInExPack-5.3.1 icon
bbepis-BepInExPack

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

Preferred version: 5.3.1
JohnEdwa-RTAutoSprintEx-2.0.0 icon
JohnEdwa-RTAutoSprintEx

RTAutoSprint fixed and enhanced with more features. Sprint automatically, but only when you would be allowed to do so in the first place.

Preferred version: 2.0.0

README

RT AutoSprint Addon | Game ver. 1.1.1.4


Latest Patch.

1.0.0 [2021-04-xx]

  • First Release.

Description

Additional module for RTAutoSprintExtended that adds patches for a few custom characters and skill packs, as well as a way to set them up as a configuration file entry.

Mod compatibility and "API":

Included patches:

  • Artificer Extended: Animation delay for IceShard, LaserBolt and SnowBall. Sprint disable for CastThunder.
  • MandoGaming: Animation delay for HeavyPistol2 and BeamPistol.
  • EggsSkills: Animation delay for CombatShotgunEntity, TeslaMineFireState. Sprint disable for DirectiveRoot.
  • Playble Templar: Sprint disable for TemplarRifleFire.
  • The House: Sprint disable for Roulette.

Configuration

  • EnableDebugLog: If the addons spits out what it's doing in the console or not.
  • SprintDisableEntityStates: List of EntityStates that disable sprinting. separated by ,.
  • AnimationDelayEntityStates: List of EntityStates that check for duration field for a delay, separated by ,.

And individual on/off toggles for the included patches/addons.


The rest is for RTAutoSprintEx, i.e what this addon is doing.

You can use SendMessage to register an EntityState to the list of Sprint Disablers and Animation Delayers. Add a soft dependency to ensure RTAutoSprintEx (not RTAutoSprintAddon) is loaded before your mod.

[BepInDependency("com.johnedwa.RTAutoSprintEx", BepInDependency.DependencyFlags.SoftDependency)]

if (BepInEx.Bootstrap.Chainloader.PluginInfos.ContainsKey("com.johnedwa.RTAutoSprintEx")) {
    SendMessage("RT_SprintDisableMessage", "EntityStates.Mage.Weapon.Flamethrower"); 
    SendMessage("RT_AnimationDelayMessage", "EntityStates.Mage.Weapon.FireFireBolt"); 
}

RT_SprintDisableMessage blocks AutoSprinting from activating when the player is in that EntityState. RT_AnimationDelayMessage looks for a field called duration to use as a delay - useful for keeping wind-down animations from being immediately cancelled.

Changelog

1.0.0 [2021-04-xx]

  • First Release.

Full changelog can be found in CHANGELOG.MD.

Contact

Open an issue at the Github repo or find me on the RoR2 modding discord (JohnEdwa#7903).