| View previous topic :: View next topic |
| Author |
Message |
aeree Cheater
Reputation: 3
Joined: 23 Jan 2010 Posts: 42 Location: Germany
|
Posted: Sat Sep 07, 2013 10:19 am Post subject: Trouble finding functions |
|
|
I wanted to make an autojump hack for Counter Strike Source in auto assembler. What I planned was when i press and hold a key the jump function would be constantly called. But I have no clue how to find that function.
What I tried was to find values which indicate if the player is midair. Then I tried to find what accesses/writes to this address but I didn't really know what to look for when stepping through the code.
Is there a general method to find functions like that?
_________________
1 + 1 = |
|
| Back to top |
|
 |
daspamer Grandmaster Cheater Supreme
Reputation: 54
Joined: 13 Sep 2011 Posts: 1588
|
Posted: Sat Sep 07, 2013 11:40 am Post subject: |
|
|
You can use cheat engine LUA, and use one of these two scripts, they're very simple, you can improve them to fit your needs.
Or try Ultimap and ignore the scripts below.
(Video http://www.youtube.com/watch?v=T5sXoEEPFBQ)
Jumps nonstop when two keys are pressed (Shift and space)
| Code: | -- Jump while these two keys are pressed, so you don't need to double tap on space again..
-- you can also remove the isKeyPressed(VK_SHIFT) and to achieve it.
t = createTimer(nil,false);
t.OnTimer = function ()
if (isKeyPressed(VK_SHIFT) and isKeyPressed(VK_SPACE)) then
doKeyPress(VK_SPACE);
end
end
t.Interval = 100;
t.Enabled = true; |
Jumps nonstop when activated or deactivated (Shift and space to enable, Ctrl and space to disable)
| Code: | -- Keep jumping nonestop without pressing.
-- Shift + Space = Activate the constant jump
-- Ctrl + Space = Deactivate the constant jump
t = createTimer(nil,false);
t.OnTimer = function ()
if (isKeyPressed(VK_SHIFT) and isKeyPressed(VK_SPACE)) and not Auto then
Auto = true
elseif (isKeyPressed(VK_CONTROL) and isKeyPressed(VK_SPACE)) and Auto then
Auto = false
-- t.destroy(); -- Destroys the timer.
elseif not (isKeyPressed(VK_SHIFT) and isKeyPressed(VK_SPACE)) and Auto then
doKeyPress(VK_SPACE);
end
-- print(tostring(Auto)); -- Print to string the current value of Auto (true , false).
end
t.Interval = 100;
t.Enabled = true; |
_________________
I'm rusty and getting older, help me re-learn lua. |
|
| Back to top |
|
 |
aeree Cheater
Reputation: 3
Joined: 23 Jan 2010 Posts: 42 Location: Germany
|
Posted: Sat Sep 07, 2013 12:15 pm Post subject: |
|
|
| DaSpamer wrote: | You can use cheat engine LUA, and use one of these two scripts, they're very simple, you can improve them to fit your needs.
Or try Ultimap and ignore the scripts below.
(Video ###############################)
Jumps nonstop when two keys are pressed (Shift and space)
| Code: | -- Jump while these two keys are pressed, so you don't need to double tap on space again..
-- you can also remove the isKeyPressed(VK_SHIFT) and to achieve it.
t = createTimer(nil,false);
t.OnTimer = function ()
if (isKeyPressed(VK_SHIFT) and isKeyPressed(VK_SPACE)) then
doKeyPress(VK_SPACE);
end
end
t.Interval = 100;
t.Enabled = true; |
Jumps nonstop when activated or deactivated (Shift and space to enable, Ctrl and space to disable)
| Code: | -- Keep jumping nonestop without pressing.
-- Shift + Space = Activate the constant jump
-- Ctrl + Space = Deactivate the constant jump
t = createTimer(nil,false);
t.OnTimer = function ()
if (isKeyPressed(VK_SHIFT) and isKeyPressed(VK_SPACE)) and not Auto then
Auto = true
elseif (isKeyPressed(VK_CONTROL) and isKeyPressed(VK_SPACE)) and Auto then
Auto = false
-- t.destroy(); -- Destroys the timer.
elseif not (isKeyPressed(VK_SHIFT) and isKeyPressed(VK_SPACE)) and Auto then
doKeyPress(VK_SPACE);
end
-- print(tostring(Auto)); -- Print to string the current value of Auto (true , false).
end
t.Interval = 100;
t.Enabled = true; |
|
Thanks for the reply but the point wasn't the autojump itself. It was more about methods to find functions in games. Also I think Ultimap requires an Intel Processor which i don't own.
_________________
1 + 1 = |
|
| Back to top |
|
 |
daspamer Grandmaster Cheater Supreme
Reputation: 54
Joined: 13 Sep 2011 Posts: 1588
|
Posted: Sat Sep 07, 2013 12:24 pm Post subject: |
|
|
| fishbone105 wrote: | | DaSpamer wrote: | You can use cheat engine LUA, and use one of these two scripts, they're very simple, you can improve them to fit your needs.
Or try Ultimap and ignore the scripts below.
(Video ###############################)
Jumps nonstop when two keys are pressed (Shift and space)
| Code: | -- Jump while these two keys are pressed, so you don't need to double tap on space again..
-- you can also remove the isKeyPressed(VK_SHIFT) and to achieve it.
t = createTimer(nil,false);
t.OnTimer = function ()
if (isKeyPressed(VK_SHIFT) and isKeyPressed(VK_SPACE)) then
doKeyPress(VK_SPACE);
end
end
t.Interval = 100;
t.Enabled = true; |
Jumps nonstop when activated or deactivated (Shift and space to enable, Ctrl and space to disable)
| Code: | -- Keep jumping nonestop without pressing.
-- Shift + Space = Activate the constant jump
-- Ctrl + Space = Deactivate the constant jump
t = createTimer(nil,false);
t.OnTimer = function ()
if (isKeyPressed(VK_SHIFT) and isKeyPressed(VK_SPACE)) and not Auto then
Auto = true
elseif (isKeyPressed(VK_CONTROL) and isKeyPressed(VK_SPACE)) and Auto then
Auto = false
-- t.destroy(); -- Destroys the timer.
elseif not (isKeyPressed(VK_SHIFT) and isKeyPressed(VK_SPACE)) and Auto then
doKeyPress(VK_SPACE);
end
-- print(tostring(Auto)); -- Print to string the current value of Auto (true , false).
end
t.Interval = 100;
t.Enabled = true; |
|
Thanks for the reply but the point wasn't the autojump itself. It was more about methods to find functions in games. Also I think Ultimap requires an Intel Processor which i don't own. |
Yes ultimap requires Intel Process and VT (I had to enable it via BIOS).
_________________
I'm rusty and getting older, help me re-learn lua. |
|
| Back to top |
|
 |
aeree Cheater
Reputation: 3
Joined: 23 Jan 2010 Posts: 42 Location: Germany
|
Posted: Sat Sep 07, 2013 12:46 pm Post subject: |
|
|
| DaSpamer wrote: |
Yes ultimap requires Intel Process and VT (I had to enable it via BIOS). |
Can you tell me how to properly use Break and Trace? I guess that would be the only alternative to Ultimap, right?
_________________
1 + 1 = |
|
| Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Sat Sep 07, 2013 2:12 pm Post subject: |
|
|
My approach would involve finding the addresses that handle the buttons (or keys, if you are using a keyboard). By doing so, you can easily write a script that will execute when you want, automatically. You can set the script to have your character keep jumping automatically, forever, on a timer, or during key-press etc. By doing so, you can also dig deeper to find the instructions that actually handle the jumping animation and more - should you choose to do so...although, I do not typically dig that deep, as it is not necessary.
This sounds like a lazy man's taunt cheat.
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25819 Location: The netherlands
|
Posted: Sat Sep 07, 2013 2:15 pm Post subject: |
|
|
Perhaps you can find the height or height acceleration variable, and then find out what writes it
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
|