[SNIPPET] Remove Velocity Limit + Disable ground collision

//0AB1: @DISABLE_VELOCITY_Z_LIMIT 1 FALSE
//0AB1: @DISABLE_VELOCITY_Z_LIMIT 1 TRUE
:DISABLE_VELOCITY_Z_LIMIT
if
0@ == 1
then
    0A8C: write_memory 0x5E91CE size 1 value 0x90 virtual_protect 1
    0A8C: write_memory 0x5E91CF size 1 value 0x90 virtual_protect 1
    0A8C: write_memory 0x5E91D0 size 1 value 0x90 virtual_protect 1
    0A8C: write_memory 0x5E91D1 size 1 value 0x90 virtual_protect 1
    0A8C: write_memory 0x5E91D2 size 1 value 0x90 virtual_protect 1
    0A8C: write_memory 0x5E91D3 size 1 value 0x90 virtual_protect 1
    0A8C: write_memory 0x5E91D4 size 1 value 0x90 virtual_protect 1
else
    if
    0@ == 0
    then
        0A8C: write_memory 0x5E91CE size 1 value 0xC7 virtual_protect 1
        0A8C: write_memory 0x5E91CF size 1 value 0x46 virtual_protect 1
        0A8C: write_memory 0x5E91D0 size 1 value 0x4C virtual_protect 1
        0A8C: write_memory 0x5E91D1 size 1 value 0    virtual_protect 1
        0A8C: write_memory 0x5E91D2 size 1 value 0    virtual_protect 1
        0A8C: write_memory 0x5E91D3 size 1 value 0x80 virtual_protect 1
        0A8C: write_memory 0x5E91D4 size 1 value 0x3E virtual_protect 1
    end
end
0AB2: ret 0

//0AB1: @DISABLE_GROUND_COLLISION_FOR_VELOCITY 0
:DISABLE_GROUND_COLLISION_FOR_VELOCITY
0A96: 23@ = actor $PLAYER_ACTOR struct
0A8E: 22@ = 23@ + 0x46C
0A8C: write_memory 22@ size 1 value 0 virtual_protect 0 // ONFOOT STATE = AIR
0A96: 23@ = actor $PLAYER_ACTOR struct
0A8E: 22@ = 23@ + 0x46D
0A8C: write_memory 22@ size 1 value 3 virtual_protect 0  // JUMP STATE = ONFOOT
0AB2: ret 0
 
Top