diff --git a/src/XenobladeChroniclesX/Mods/PhysicsSuperHighJump/patch_jump.asm b/src/XenobladeChroniclesX/Mods/PhysicsSuperHighJump/patch_jump.asm new file mode 100644 index 00000000..02fe8a49 --- /dev/null +++ b/src/XenobladeChroniclesX/Mods/PhysicsSuperHighJump/patch_jump.asm @@ -0,0 +1,47 @@ +[XCX_HIGHJUMP] +moduleMatches = 0xF882D5CF, 0x30B6E091, 0x7672271D, 0x218F6E07, 0xAB97DE6B, 0x676EB33E, 0x785CA8A9 ; 1.0.1E, 1.0.2U, 1.0.2J, 1.0.0E, 1.0.1U, 1.0.0U, 1.0.0J +.origin = codecave + +VarVelocityV: + .float $vert +VarVelocityH: + .float $horz + +_setVelocity: +lis r3, VarVelocityV@ha +lfs f30, VarVelocityV@l(r3) +fdivs f30, f1, f30 +blr + +_setHorizVelocity: +lis r4, VarVelocityH@ha +lfs f31, VarVelocityH@l(r4) +fmuls f1, f1, f31 +stfs f1, 0x18(r1) +blr + + +[XCX_HIGHJUMP_V101E_V102U] +moduleMatches = 0xF882D5CF, 0x30B6E091, 0x218F6E07 ; 1.0.1E, 1.0.2U, 1.0.0E +0x0264A700 = bla _setVelocity +0x0264AD40 = bla _setHorizVelocity +; chr::CIL_BaseJump::decideLandingType((void)) +0x024714E0 = li r3, $landtype + +[XCX_HIGHJUMP_V102J] +moduleMatches = 0x7672271D ; 1.0.2J +0x02649CDC = bla _setVelocity +0x0264A31C = bla _setHorizVelocity +0x02470B20 = li r3, $landtype + +[XCX_HIGHJUMP_V100U] +moduleMatches = 0xAB97DE6B, 0x676EB33E ; 1.0.1U, 1.0.0U +0x0264A690 = bla _setVelocity +0x0264ACD0 = bla _setHorizVelocity +0x02471470 = li r3, $landtype + +[XCX_HIGHJUMP_V100J] +moduleMatches = 0x785CA8A9 ; 1.0.0J +0x02649200 = bla _setVelocity +0x02649840 = bla _setHorizVelocity +0x02470044 = li r3, $landtype diff --git a/src/XenobladeChroniclesX/Mods/PhysicsSuperHighJump/rules.txt b/src/XenobladeChroniclesX/Mods/PhysicsSuperHighJump/rules.txt new file mode 100644 index 00000000..915b5f38 --- /dev/null +++ b/src/XenobladeChroniclesX/Mods/PhysicsSuperHighJump/rules.txt @@ -0,0 +1,159 @@ +[Definition] +titleIds = 0005000010116100,00050000101C4C00,00050000101C4D00 +name = "Super High Jump!" +path = "Xenoblade Chronicles X/Mods/Physics/Super High Jump!" +description = Increase horizontal and vertical velocity of jump. +version = 6 + +[Default] +$horz = 1.0 +$vert = 1.0 +$landtype = 4 + +[Preset] +name = "Distance x1.0 (default)" +category = "Horizontal Velocity (distance reached)" + +[Preset] +name = "Distance x1.5" +category = "Horizontal Velocity (distance reached)" +$horz = 1.5 + +[Preset] +name = "Distance x1.6" +category = "Horizontal Velocity (distance reached)" +$horz = 1.6 + +[Preset] +name = "Distance x1.7" +category = "Horizontal Velocity (distance reached)" +$horz = 1.7 + +[Preset] +name = "Distance x1.8" +category = "Horizontal Velocity (distance reached)" +$horz = 1.8 + +[Preset] +name = "Distance x1.9" +category = "Horizontal Velocity (distance reached)" +$horz = 1.9 + +[Preset] +name = "Distance x2.0" +category = "Horizontal Velocity (distance reached)" +$horz = 2.0 + +[Preset] +name = "Distance x2.5" +category = "Horizontal Velocity (distance reached)" +$horz = 2.5 + +[Preset] +name = "Distance x3.0" +category = "Horizontal Velocity (distance reached)" +$horz = 3.0 + +[Preset] +name = "Distance x5.0" +category = "Horizontal Velocity (distance reached)" +$horz = 5.0 + +[Preset] +name = "CHEAT x100.0" +category = "Horizontal Velocity (distance reached)" +$horz = 100.0 + +[Preset] +name = "Height x1.0 (default)" +category = "Vertical Velocity (height)" + +[Preset] +name = "Height x1.05" +category = "Vertical Velocity (height)" +$vert = 1.05 + +[Preset] +name = "Height x1.06" +category = "Vertical Velocity (height)" +$vert = 1.06 + +[Preset] +name = "Height x1.07" +category = "Vertical Velocity (height)" +$vert = 1.07 + +[Preset] +name = "Height x1.08" +category = "Vertical Velocity (height)" +$vert = 1.08 + +[Preset] +name = "Height x1.09" +category = "Vertical Velocity (height)" +$vert = 1.09 + +[Preset] +name = "Height x1.10" +category = "Vertical Velocity (height)" +$vert = 1.10 + +[Preset] +name = "Height x1.20" +category = "Vertical Velocity (height)" +$vert = 1.20 + +[Preset] +name = "Height x1.30" +category = "Vertical Velocity (height)" +$vert = 1.30 + +[Preset] +name = "Height x1.40" +category = "Vertical Velocity (height)" +$vert = 1.40 + +[Preset] +name = "Height x1.50" +category = "Vertical Velocity (height)" +$vert = 1.50 + +[Preset] +name = "CHEAT x18.0" +category = "Vertical Velocity (height)" +$vert = 18.0 + +[Preset] +name = "Step forward [6]" +category = "Landing type" +$landtype = 6 + +[Preset] +name = "Normal land [5]" +category = "Landing type" +$landtype = 5 + +[Preset] +name = "Short land [4]" +category = "Landing type" +default = 1 + +[Preset] +name = "Role [3]" +category = "Landing type" +$landtype = 3 + +[Preset] +name = "Full stop [2]" +category = "Landing type" +$landtype = 2 + +[Preset] +name = "Half stop [1]" +category = "Landing type" +$landtype = 1 + +[Preset] +name = "Never Land [0] (softlocks)" +category = "Landing type" +$landtype = 0 diff --git a/src/XenobladeChroniclesX/Mods/readme.md b/src/XenobladeChroniclesX/Mods/readme.md index 531e0080..7234586c 100644 --- a/src/XenobladeChroniclesX/Mods/readme.md +++ b/src/XenobladeChroniclesX/Mods/readme.md @@ -28,7 +28,7 @@ - **Character Level**: Can change any characters current level. - **Character Size**: Can change any characters size, and even has some glitch size values. - **Change Character Name**: Can change any characters name and can rename your avatar. -- **Unlock Character Arts**: Can unlock any or all arts and can force arts to be equiped, even multiple of the same art. +- **Unlock Character Arts**: Can unlock any or all arts and can force arts to be equiped, even multiple of the same art ### Collectibles mods - **Catch range mod**: Increase the distance from which you catch a collectible. @@ -101,7 +101,7 @@ - **No Skell Flight music**: Disables the flight music (at the beginning the music is awesome, but after some time I wanted to listen to the field musics again). ### Physics mods -- **Jump to the Moon!**: Increases the horizontal and vertical velocity of the jump (vanilla values are 1.0 for both). +- **Super High Jump!**: Increases the horizontal and vertical velocity of the jump (vanilla values are 1.0 for both). > Horizontal velocity is the distance you reach when jumping. > Vertical Velocity is the height of the jump (works while idle, walking and sprinting) - **Run Forrest, run!**: Increases the speed of sprinting.