LordVGames-LoopByDefault icon

LoopByDefault

Makes the primordial teleporter set to loop by default instead of going to the moon. Server-side and vanilla compatible.

Last updated a week ago
Total downloads 524
Total rating 0 
Categories Mods Tweaks
Dependency string LordVGames-LoopByDefault-1.0.0
Dependants 0 other packages depend on this package

This mod requires the following mods to function

bbepis-BepInExPack-5.4.2117 icon
bbepis-BepInExPack

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

Preferred version: 5.4.2117
RiskofThunder-HookGenPatcher-1.2.5 icon
RiskofThunder-HookGenPatcher

MMHOOK generation at runtime.

Preferred version: 1.2.5
RiskofThunder-R2API_Core-5.1.5 icon
RiskofThunder-R2API_Core

Core R2API module

Preferred version: 5.1.5

README

LoopByDefault

Awesome now I don't have to hit the stage 5 teleporter rings like 80% of the time

No github repository for this because the change is done in 4 lines:

var lunarTeleProngs = Addressables.LoadAssetAsync<GameObject>("RoR2/Base/Teleporters/LunarTeleporterProngs.prefab").WaitForCompletion();
var lunarTeleEsm = lunarTeleProngs.GetComponent<EntityStateMachine>();
lunarTeleEsm.initialStateType = new EntityStates.SerializableEntityStateType(typeof(EntityStates.LunarTeleporter.ActiveToIdle));
lunarTeleEsm.mainStateType = new EntityStates.SerializableEntityStateType(typeof(EntityStates.LunarTeleporter.Idle));