Skip to content

Commit

Permalink
[+] ped x & y
Browse files Browse the repository at this point in the history
  • Loading branch information
h0x91b committed Oct 14, 2021
1 parent 5adc53c commit 5a525ef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 1 addition & 2 deletions gta2-resurection/mod-mouse-rotation.lua
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,8 @@ function Mod.setKeyState( keys, api )
if api.IsRightMouseDown then
if bitand(keys, 0x80) == 0 then
if getSetting("Fly on right click") then
ped.obj.player.field_0x78 = 1
ped.obj.player.forward = 1
ped.obj.field_0x258 = 0x23
ped.obj.field_0x25c = 0x23
PedJumpFly(ped.obj, 0)
else
keys = keys + 0x80
Expand Down
5 changes: 4 additions & 1 deletion gta2-resurection/mod-settings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ function Mod.tick( dt, api )
lastDiscordUpdate = 0.0
if ped.car == nil then
print("walking")
setDiscordStatus("Walking", "Just walking")

local x = string.format("%.1f",ped.cameraX / 16384)
local y = string.format("%.1f",ped.cameraY / 16384)
setDiscordStatus("Walking", "Just walking" .. " " .. x .. "x" .. y)
else
print("driving")
local x = string.format("%.1f",ped.car.carSprite.x / 16384)
Expand Down

0 comments on commit 5a525ef

Please sign in to comment.