I remember someone(genevrier , I think , but I can't find the post so I might be wrong) asking how to manipulate gravity. Well I decided to look into it today (because I had lots of free time) and I found this function:
Click me!
Now some interesting stuff is here:
1.7 is the gravity for type 0 characters. It is stored in 448340 - a constant variable. It doesn't get changed anywhere. If you set it to 1, then gravity is a lot lower and it's cool and stuff .
The problem is it doesn't affect the other object types . And it looks like every item has it's own stupid value .
Anyway, just posting my findings .
Have fun.
Click me!
Now some interesting stuff is here:
Code:
0040E6FB |. DC05 60834400 FADD QWORD PTR DS:[448360] ; first one - 1.13333
0040E701 |. E9 8B000000 JMP lf2_load.0040E791
0040E706 |> 83F8 04 CMP EAX,4
0040E709 |. 75 0B JNZ SHORT lf2_load.0040E716
0040E70B |. DD46 48 FLD QWORD PTR DS:[ESI+48]
0040E70E DC05 187A4400 FADD QWORD PTR DS:[447A18] ; 2nd one - 0.85
0040E714 |. EB 7B JMP SHORT lf2_load.0040E791
0040E716 |> 8B56 70 MOV EDX,DWORD PTR DS:[ESI+70]
0040E719 |. 69D2 78010000 IMUL EDX,EDX,178
0040E71F |. 8B840A AC07000>MOV EAX,DWORD PTR DS:[EDX+ECX+7AC]
0040E726 |. 3D EA030000 CMP EAX,3EA
0040E72B |. 75 5B JNZ SHORT lf2_load.0040E788
0040E72D |. 83B9 F4060000 >CMP DWORD PTR DS:[ECX+6F4],7C
0040E734 |. 75 0B JNZ SHORT lf2_load.0040E741
0040E736 |. DD46 48 FLD QWORD PTR DS:[ESI+48]
0040E739 |. DC05 58834400 FADD QWORD PTR DS:[448358] ; 3rd one - 0.17
0040E73F |. EB 50 JMP SHORT lf2_load.0040E791
0040E741 |> 3D EA030000 CMP EAX,3EA
0040E746 |. 75 40 JNZ SHORT lf2_load.0040E788
0040E748 |. 39B9 F4060000 CMP DWORD PTR DS:[ECX+6F4],EDI
0040E74E |. 75 0B JNZ SHORT lf2_load.0040E75B
0040E750 |. DD46 48 FLD QWORD PTR DS:[ESI+48]
0040E753 |. DC05 50834400 FADD QWORD PTR DS:[448350] ; 4th one - 0.425
0040E759 |. EB 36 JMP SHORT lf2_load.0040E791
0040E75B |> 3D EA030000 CMP EAX,3EA
0040E760 |. 75 26 JNZ SHORT lf2_load.0040E788
0040E762 |. 83B9 F4060000 >CMP DWORD PTR DS:[ECX+6F4],65
0040E769 |. 75 0B JNZ SHORT lf2_load.0040E776
0040E76B |. DD46 48 FLD QWORD PTR DS:[ESI+48]
0040E76E |. DC05 60834400 FADD QWORD PTR DS:[448360] ; 5th one - 1.1333333
0040E774 |. EB 1B JMP SHORT lf2_load.0040E791
0040E776 |> 3D EA030000 CMP EAX,3EA
0040E77B |. 75 0B JNZ SHORT lf2_load.0040E788
0040E77D |. DD46 48 FLD QWORD PTR DS:[ESI+48]
0040E780 |. DC05 48834400 FADD QWORD PTR DS:[448348] ; 6th one - 0.56666667
0040E786 |. EB 09 JMP SHORT lf2_load.0040E791
0040E788 |> DD46 48 FLD QWORD PTR DS:[ESI+48]
0040E78B |. DC05 40834400 FADD QWORD PTR DS:[448340] ; Main Gravity - 1.7
1.7 is the gravity for type 0 characters. It is stored in 448340 - a constant variable. It doesn't get changed anywhere. If you set it to 1, then gravity is a lot lower and it's cool and stuff .
The problem is it doesn't affect the other object types . And it looks like every item has it's own stupid value .
Anyway, just posting my findings .
Have fun.
10 ʏᴇᴀʀs sɪɴᴄᴇ ɪʀᴄ ɢᴏᴏᴅ.ɪ ᴡᴀʟᴋ ᴛʜʀᴏᴜɢʜ ᴛʜᴇ ᴇᴍᴘᴛʏ sᴛʀᴇᴇᴛs ᴛʀʏɪɴɢ ᴛᴏ ᴛʜɪɴᴋ ᴏғ sᴏᴍᴇᴛʜɪɴɢ ᴇʟsᴇ ʙᴜᴛ ᴍʏ ᴘᴀᴛʜ ᴀʟᴡᴀʏs ʟᴇᴀᴅs ᴛᴏ ᴛʜᴇ ɪʀᴄ. ɪ sᴛᴀʀᴇ ᴀᴛ ᴛʜᴇ sᴄʀᴇᴇɴ ғᴏʀ ʜᴏᴜʀs ᴀɴᴅ ᴛʀʏ ᴛᴏ sᴜᴍᴍᴏɴ ᴛʜᴇ ɢᴏᴏᴅ ɪʀᴄ. ɪ ᴡᴀᴛᴄʜ ᴏᴛʜᴇʀ ɪʀᴄ ᴄʜᴀɴɴᴇʟs ʙᴜᴛ ɪᴛ ɪs ɴᴏ ɢᴏᴏᴅ. ɪ ᴘᴇsᴛᴇʀ ᴢᴏʀᴛ ᴀɴᴅ ᴛʀʏ ᴛᴏ ʀᴇsɪsᴛ ʜɪs sᴇxɪɴᴇss ʙᴜᴛ ɪᴛ ɪs ᴀʟʟ ᴍᴇᴀɴɪɴɢʟᴇss. ᴛʜᴇ ᴇɴᴅ ɪs ɴᴇᴀʀ.ɪ ᴛʜᴇɴ ᴜsᴜᴀʟʟʏ ʀᴇᴀᴅ sᴏᴍᴇ ᴏʟᴅ ɪʀᴄ ʟᴏɢs ᴀɴᴅ ᴄʀʏ ᴍʏsᴇʟғ ᴛᴏ sʟᴇᴇᴘ.