Jump to content

Spooky's DX hook


OpiuM.

Recommended Posts

ehem, i am acually suspisious this account i posted the same thing, NOT my other one, and was still deleted for some...unknown reason.

anyways, this:

http://www.gtaforums.com/index.php?showtopic=148688

is spooky's D3D hook for GTAVC, it also hooks the SCM, which i assume might be a little like MTA will do.

take a look here to get a bleek look @ what MTA blue might be able to do.

(note to admins, my post count was 911 yesterday, and it is 911 today, even after a new post, i assume you DID in fact delete my post, please do not do so witht his thread.)

Link to comment
meh, the regular spedometer is fine with just numbers. the newest version of camhack has a decent one, and it works with mta (camhack is still legal with MTA, right?

Well, I wonder if it's considered as using another mod concurrently.

It can give you an unfair advantage (being able to see other places on the map with free roam and that sort of thing).

Link to comment

Its not just a speedometer. Its a full blown directx hook into C++, the language MTA was coded in. With a few tweaks it can work with any game that uses DirectX8+..

I wouldn't be suprised if they used it themselves for the chat screen. Wich is not a bad thing, it's source was posted for a reason.

Link to comment
Its not just a speedometer. Its a full blown directx hook into C++, the language MTA was coded in. With a few tweaks it can work with any game that uses DirectX8+..

I wouldn't be suprised if they used it themselves for the chat screen. Wich is not a bad thing, it's source was posted for a reason.

dont forget the SCM hook :P

EDIT:

that's exactly how nametags and our chatscreen has worked since 0.3

does this mean 0.2 was handled differantly?...

looks the same to me 8)

Link to comment

If I remember... Ghost of delete key was creating a multiplayer mod using this SCM hook but it didn't go far. But I think using SCM directly within the client would severely increase smoothness. Some of the most common logical executions cannot be performed in SCM, but when combining C++ code and scm the possibilities are endless.

SCM: If player presses H

SCM: Play a wait_state animation of tommy waving his hand, saying hello.

C++: Detect the player who is nearest to you.

C++: Send a 'hello' packet to player 2

PLAYER2 C++: Draw a 'X says hello!' on screen.

PLAYER2's SCM: Have player 1 play wait_state animation of tommy waving his hand, saying hello.

or

C++: If player2 walks up to player1 and presses P

SCM: Freeze_player

C++: Send a packet to player2 client telling him to freeze

PLAYER2's SCM: Freeze_player

PLAYER2's C++: Draw a PM system on the screen for private chat

C++: Draw a PM system on the screen for private chat

As you can see.. SCM & c++ used together can make pretty much anything.. But then again, there is Delfi's trick where you can write to memory addresses using SCM, via creating your own opcode. That alone would be a great achievement.

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...