upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/docs/lua-modding.md
diff options
context:
space:
mode:
authorNotRexed <therealnothingfn@gmail.com>2026-11-30 02:20:20 -0500
committerNotRexed <therealnothingfn@gmail.com>2026-11-30 02:20:20 -0500
commit49e93960cab6b1c4fe08c06efef99635c1d19644 (patch)
tree31d1a4573f12a592148a90ed98edcfc70ac4adfc /docs/lua-modding.md
parent5a7c02bd0372e76711e12df9f5c197f6e903b09c (diff)
Game actions: the player's place in the world's coordinates (GET_ENTITY_COORDS); lift <metres>
Run d195 had the native teleport move the player at once, but into the bay far from the deck: the place read from the ped (+0x70, as Game::position reads it) is relative to an origin of the title's own, and SET_ENTITY_COORDS takes the world's coordinates (the native database has GET_ENTITY_COORDS decode +0x70 into them). - Game::world_position: GET_ENTITY_COORDS on PLAYER_PED_ID's reference (its flag 1), the vector's three floats. - The title's thread reads it every 15 of its updates while the natives are found; game_actions::position() (the menu's Teleport page and its saved spots) gives that place, never the ped's own for it. - Request::Lift (lift <metres>): that far above the player's place in the world, through Request::Teleport. - The info line and the teleport's line give both places. Also seen in d195: 6,805 natives found by their handlers, PLAYER_PED_ID's reference, god mode on and off. Tests: the game_actions tests pass (lift read in script_commands_read). Not yet seen in the running title. AI-assisted (Claude). Tested on an RTX 4060 Ti 16 GB, driver 616.64, Ryzen 5 7600X. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs/lua-modding.md')
0 files changed, 0 insertions, 0 deletions