Open the c0000.hks of the mod you want to merge with my mod in your favorite text editor.
Now use the search function and look for "function ride_update".


Now overwrite this:
function Ride_Update()
if IsEnableFeedAddBlend == TRUE then
  Ride_Feed_Rate = 1
  act(ApplyRideBlend, "Ride_Feed_AddBlend", 1)
else
  Ride_Feed_Rate = ConvergeValue(0, Ride_Feed_Rate, 4, 4)
  act(ApplyRideBlend, "Ride_Feed_AddBlend", Ride_Feed_Rate)
end

if RIDE_ISENABLE_DOUBLEJUMP == FALSE and env(IsMountInFallLoop) == TRUE then
  RIDE_ISENABLE_DOUBLEJUMP = TRUE
end
end


With this:

Solid_TorrentMultiJumpCount = 0
Solid_TorrentJumpDisableHold = 0

function Ride_Update()
    if env(ActionDuration, ACTION_ARM_CHANGE_STYLE) > 0 then
        Solid_TorrentJumpDisableHold = Solid_TorrentJumpDisableHold + 1
        else
        Solid_TorrentJumpDisableHold = 0
    end
    
    if RIDE_ISENABLE_DOUBLEJUMP == FALSE and env(ActionDuration, ACTION_ARM_CHANGE_STYLE) > 0 and Solid_TorrentJumpDisableHold < 2 and Solid_TorrentMultiJumpCount < 100 then
        FireRideEvent("W_RideJump2_D", "W_RideJump2_D", FALSE)
        Solid_TorrentMultiJumpCount = Solid_TorrentMultiJumpCount + 1
    end
    
    if env(IsMountTrulyLanding) == TRUE then
        Solid_TorrentMultiJumpCount = 0
    end
    
    if IsEnableFeedAddBlend == TRUE then
        Ride_Feed_Rate = 1
        act(ApplyRideBlend, "Ride_Feed_AddBlend", 1)
    else
        Ride_Feed_Rate = ConvergeValue(0, Ride_Feed_Rate, 4, 4)
        act(ApplyRideBlend, "Ride_Feed_AddBlend", Ride_Feed_Rate)
    end

    if RIDE_ISENABLE_DOUBLEJUMP == FALSE and env(IsMountInFallLoop) == TRUE then
        RIDE_ISENABLE_DOUBLEJUMP = TRUE
    end
end


Article information

Added on

Edited on

Written by

MojoW

0 comments