itsjustcurtis / MenyooSP

[or Menyoo PC] - Trainer/mod menu for Grand Theft Auto V (single-player).
https://www.gta5-mods.com/scripts/menyoo-2-0
GNU General Public License v3.0
48 stars 9 forks source link

Suggestion: teleport to object in spooner mode #190

Open meimeiriver opened 1 month ago

meimeiriver commented 1 month ago

In the original Menyoo, every version, I coded a few lines extra, in spooner mode, to 'Teleport to object.' Aka, cam inside a building, in spooner mode, select an object, and TP to it. Would be nice if you could add that too.

itsjustcurtis commented 1 month ago

Do you have the PR from the old menyoo? This is a fork from the latest version (1.8.1) of Mafins repo, so anything you did there should have ported across if he PR'd it into the original.

meimeiriver commented 1 month ago

I was never officially involved; just did it for own build. :) I added the following snippet to Submenus.cpp

            bool bTeleportEntityPressed = false;
            AddOption("Teleport To Entity", bTeleportEntityPressed); if (bTeleportEntityPressed)
            {
                if (SpoonerMode::spoonerModeCamera.IsActive())
                {
                    SpoonerMode::TurnOff();
                    GTAped myPed = PLAYER_PED_ID();
                    myPed.Position_set(SelectedEntity.Handle.Position_get());
                }
            }
itsjustcurtis commented 1 month ago

If you make a fork of this repo, make the modifications you need then I can PR it in, that way the code is properly attributed

SkyK0T commented 1 month ago

Я официально не участвовал; просто сделал это для собственной сборки. :) Я добавил следующий фрагмент в Submenus.cpp

          bool bTeleportEntityPressed = false;
          AddOption("Teleport To Entity", bTeleportEntityPressed); if (bTeleportEntityPressed)
          {
              if (SpoonerMode::spoonerModeCamera.IsActive())
              {
                  SpoonerMode::TurnOff();
                  GTAped myPed = PLAYER_PED_ID();
                  myPed.Position_set(SelectedEntity.Handle.Position_get());
              }
          }

can you share your build?