[BASICS / TUT] Approach for Trigger Bot / Crosshair Hack ( Address )
In this tutorial i will show you how to find the player you select with crosshair.
[ Made for S4League ]
It's usefull for trigger bot, kick hacks, etc..
You can create many things with it.
What do you need for this ?
Some ASM Skills
it also work for other games
So lets start !
For example i will use set roommaster function.
First we need to find the id of the player who got selected cause S4 set roommaster function get called like this ->
unknow_00 can be 0 ^^'
eax+0C = unknow_00 = 0
eax+08 = PlayerID
Find the select player !
Cheat Engine Scan Type = 4 bytes
Step 1 - Select Nobody and scan 0
Step 2 - Select Anybody and scan for changed value(s)
Step 3 - Loop Step 1 and Step 2 until you have 20 or less addys
I only get one result !
Step X -> Rightclick on the address and find out what writes to this address
Step Y -> Select again anybody and show what writes.
First Result [ Find out what writes ]
It's useless cause its only write 00 in our address
Seconds Result [ Find out what writes ]
s4client.exe+3F3669 - mov [edx+00000154],00000000
Oh its write edx in eax+154
s4client.exe+3F3DE6 - mov [eax+00000154],edx
Lets break this and see what contains edx
Notice [s4client.exe+3F3DE6 - mov [eax+00000154],edx] breakes only if select an enemy ( Team not )
So do the same way for your team
in both storys edx and ecx contains the player class
s4client.exe+3F52CB - mov [edx+00000158],ecx
Player class contains infos about the player ( id, name, location etc...)
[edx+0x48] = Player ID
Did an simple midfunc hook.
[ENABLE] // Enable
alloc(newmem,128) // Alloc a Page [ Size = 128]
alloc(RoomMasterFunc,64) // Alloc a Page [ Size = 64]
label(returnhere) // Declare a label
newmem: // The Code which should get execute
"s4client.exe"+3F3DE6: // Create the midfunc hook
RoomMasterFunc: // our SetRoomMasterFunc
[DISABLE] // Disable Code
dealloc(newmem) // dealloc newmem
dealloc(RoomMasterFunc) // dealloc RoomMasterFunc
"s4client.exe"+3F3DE6: // Unhook our function
Please comment what i can do better next time
Post Thanks / Like - 2 Thanks
@FazeDaFapper welcome and thanks for the great tutorial!
Post Thanks / Like - 1 Thanks