0.9.0
- add support for JS scripts in GTA III: The Definitive Edition (v1.0.0.14718) and Vice City: The Definitive Edition (v1.0.0.14718) (some limitations apply, see Feature support for the details)
- add support for modern ES6+ syntax (arrow functions, const/let, classes, more methods in the standard library, etc), see Mines Drop script as an example
- add support for importing other scripts and JSON files
For 64-bit games (The Trilogy):
- you can now call game functions with floating-point arguments - thanks to @ThirteenAG.
- new command
Memory.CallFunctionReturnFloat
that is similar toMemory.CallFunctionReturn
but is used for functions that return a floating-point number
let x = Memory.FromFloat(123.456);
let y = Memory.FromFloat(456.555);
let groundZ = Memory.CallFunctionReturnFloat(0x100cc50, true, 2, x, y);
- new convenience method
Memory.Fn.X64Float
that can be used for functions that return a floating-point number:
let CWorldFindGroundZForCoord = Memory.Fn.X64Float(0x100cc50, true);
let x = Memory.FromFloat(123.456);
let y = Memory.FromFloat(456.555);
let groundZ = CWorldFindGroundZForCoord(x, y);