Brynzananas-Put_Ziprail_Vehicle_Unused_Field_Named_Speed_To_Use icon

Put Ziprail Vehicle Unused Field Named Speed To Use

Makes unused ingame float field _speed for ZiprailVehicle class contibute to movementSpeed property

Last updated 7 hours ago
Total downloads 2
Total rating 0 
Categories Libraries
Dependency string Brynzananas-Put_Ziprail_Vehicle_Unused_Field_Named_Speed_To_Use-1.0.0
Dependants 0 other packages depend on this package

This mod requires the following mods to function

RiskofThunder-HookGenPatcher-1.2.9 icon
RiskofThunder-HookGenPatcher

MMHOOK generation at runtime.

Preferred version: 1.2.9

README

Makes unused ingame float field _speed for ZiprailVehicle class contibute to movementSpeed property

How movementSpeed is calculated without this mod: this._initializationParams.direction / (this.path.totalLength / this.parentController.speed

How movementSpeed is calculated with this mod: this._initializationParams.direction / (this.path.totalLength / (this.parentController.speed * this._speed)

Also hooks onto ctor of ZiprailVehicle to set _speed field to 1

Before doing changes checks if ZiprailVehicle class has field named "_speed" and return if detects none