GTA mouse support, car spawn and more

Anything to do with GTA1/GTA2 modding (tools, scripts and more).
Post Reply
h0x91b
Mugger
Mugger
Posts: 16
Joined: 22 May 2019, 23:08
GH nick: h0x91b

GTA mouse support, car spawn and more

Post by h0x91b » 14 Jun 2019, 09:01

Hi guys,

Finally, I more or less put everything in order and decided to post the source code under MIT license.

Current features:

Spawn any car:


Ped rotation using a mouse:


The source code is available here: https://github.com/h0x91b/gta2-mouse
Discord channel: https://discord.gg/agRntzQ

An especially take a look at this file: https://github.com/h0x91b/gta2-mouse/bl ... ixed.exe.h
Here you will find a loooooooooot of enums and structures that I reversed at the current moment.

My Ghidra tutorials (Russian): https://www.youtube.com/watch?v=WVr93g_ ... Ax-F2qGMAM

Will be glad to hear feedback, suggestions and even requests for features. Doing it alone is boring...
Make GTA Great Again: https://discord.gg/H7tBftD

User avatar
Sektor
Boss
Boss
Posts: 1369
Joined: 04 Mar 2008, 06:51
GH nick: Sektor
Location: GTAMP.com
Contact:

Re: GTA mouse support, car spawn and more

Post by Sektor » 17 Aug 2019, 15:07

I finally tested it. I compiled it successfully. It works, very cool, thank you.

There is no need to patch gta2.exe to load gta2dll.dll, you can just rename gta2dll.dll to *.asi and gta2.exe will automatically load it (that's how MISI works).

Post Reply