Page 2 of 2 FirstFirst 12
Results 16 to 23 of 23
  1. #16
    podato's Avatar
    Join Date
    Jun 2013
    Gender
    male
    Posts
    15
    Reputation
    10
    Thanks
    2
    Hello, sorry if Im a bit noobish, but how do you get m_pCurrentCommand ?

  2. #17
    eth0s's Avatar
    Join Date
    Oct 2015
    Gender
    male
    Posts
    188
    Reputation
    10
    Thanks
    1,887
    Quote Originally Posted by podato View Post
    Hello, sorry if Im a bit noobish, but how do you get m_pCurrentCommand ?
    Check RunCommand in IDA
    https://******.com/ValveSoftware/sou...ction.cpp#L831
    https://******.com/ValveSoftware/sou...ction.cpp#L732
    StartCommand and FinishCommand are inline

    Edit:
    localplayer + 0x2498

    Code:
    sub_1B2F70+13    8B 7D 0C                          mov     edi, [ebp+cmd]
    sub_1B2F70+16    8B 75 08                          mov     esi, [ebp+player]
    sub_1B2F70+19    57                                push    edi
    sub_1B2F70+1A    89 BE 98 24 00 00                 mov     [esi+2498h], edi
    Last edited by eth0s; 04-11-2017 at 08:47 PM.

  3. The Following 2 Users Say Thank You to eth0s For This Useful Post:

    bee_tee_gee (04-18-2017),podato (04-11-2017)

  4. #18
    JayFromSubway's Avatar
    Join Date
    Apr 2017
    Gender
    male
    Posts
    30
    Reputation
    10
    Thanks
    4
    You will be using outdated data for your aimbot/bhop/garbage cheat and therefore you'll lose in hvh.

  5. #19
    eth0s's Avatar
    Join Date
    Oct 2015
    Gender
    male
    Posts
    188
    Reputation
    10
    Thanks
    1,887
    Quote Originally Posted by JayFromSubway View Post
    What?


















    //////////////////////

  6. The Following User Says Thank You to eth0s For This Useful Post:

    Cyaegha (08-10-2017)

  7. #20
    IAmPhage's Avatar
    Join Date
    Jul 2016
    Gender
    male
    Posts
    110
    Reputation
    10
    Thanks
    39
    Quote Originally Posted by JayFromSubway View Post
    You're asking about bypassing a BHop check, I don't think you have any kind of valid input here.

  8. #21
    JayFromSubway's Avatar
    Join Date
    Apr 2017
    Gender
    male
    Posts
    30
    Reputation
    10
    Thanks
    4
    Quote Originally Posted by IAmPhage View Post
    You're asking about bypassing a BHop check, I don't think you have any kind of valid input here.
    Just because I am learning Lua doesn't mean that my input is not valid. It's pretty obvious that the delay is negligible and you should be focusing on optimizing the efficiency, performance, and way you go about your code to get a better result...not that I'd know how to do any of that

  9. #22
    eth0s's Avatar
    Join Date
    Oct 2015
    Gender
    male
    Posts
    188
    Reputation
    10
    Thanks
    1,887
    Quote Originally Posted by JayFromSubway View Post
    Just because I am learning Lua doesn't mean that my input is not valid. It's pretty obvious that the delay is negligible and you should be focusing on optimizing the efficiency, performance, and way you go about your code to get a better result...not that I'd know how to do any of that
    Try moving sideways whilst aimbotting, since you don't realize the difference.

  10. #23
    IAmPhage's Avatar
    Join Date
    Jul 2016
    Gender
    male
    Posts
    110
    Reputation
    10
    Thanks
    39
    Quote Originally Posted by JayFromSubway View Post
    Just because I am learning Lua doesn't mean that my input is not valid. It's pretty obvious that the delay is negligible and you should be focusing on optimizing the efficiency, performance, and way you go about your code to get a better result...not that I'd know how to do any of that
    I don't understand why I even bother with you retards anymore. Go read the SDK man, the LocalPlayer is NOT predicted when you call createmove. Your shitty velocity prediction will miss and you will fail.

    This is the callstack for CreateMove (credits: Casual Hacker)
    Code:
    The callstack for the engine creating user cmds looks like this:
    
    engine.dll!CL_Move which calls
    client.dll!CHLClient::CreateMove which calls
    client.dll!CInput::CreateMove which calls
    client.dll!ClientModeShared::CreateMove which calls
    client.dll!C_BasePlayer::CreateMove which calls your active weapon's
    client.dll!C_BaseCombatWeapon::CreateMove...
    
    So! Which place do you want to hook? Each of those functions executes some logic then delegates further processing to the next layer. Based on this information you can decide the best place to put your CreateMove hook.
    
    Note that when you hook, your code runs either *before* or *after* the hooked function, not in the middle.
    
    Let's investigate each layer in detail:
    
    CL_Move: This is inside engine.dll, the function is not virtual and not easily hooked. Sending your usercmd is done inside this function by calling CL_SendMove. All this makes it a very undesired place to hook.
    
    CHLClient::CreateMove: Remember what I said about hooks only running before or after? As you can see it has a critical section in it as well as code that allows us to safely access bones... If you hook here you get none of these guarantees. Bad place to hook.
    
    CInput::CreateMove: Much better already, however among other things it verifies the usercmd. If you hook here you have to do this manually yourself. It's fine to hook here but we can do better. EDIT: Due to an optimization called 'devirtualization' you cannot hook this with a VMT hook...
    
    ClientModeShared::CreateMove: Here we have the fabled clientmode createmove. Perfect for hooking, just one caveat: if you look at how it's invoked in CInput::CreateMove you can see what it does with its return value. You should call SetViewAngles youself first, then always return false or your silent aim won't work. It is also called from CInput::ExtraMouseSample which is undesired, but you can filter those calls by checking if ucmd->command_number != 0.
    
    C_BasePlayer::CreateMove: Hooking here is a bit harder as your local player instance is destroyed and recreated on every level join. Finding the CreateMove virtual index is also an extra chore. All in all client mode is a better choice.
    
    C_BaseCombatWeapon::CreateMove: Now you're just making things hard for no reason, go with client mode instead.
    
    I hope this helped you understand why people made these choices.
    If we also take a look at valve's wonderful wiki, we can see that the prediction code gets called after our CreateMove calls being ran. So as I said before, you are inaccurate and your shitty velocity prediction will not save you.

    Oh PS: Your entire argument about focusing on efficiency is invalid because my menu calls are more expensive than engine prediction.
    Last edited by IAmPhage; 08-13-2017 at 09:25 PM.

  11. The Following User Says Thank You to IAmPhage For This Useful Post:

    Urosaurus (08-13-2017)

Page 2 of 2 FirstFirst 12

Similar Threads

  1. [Outdated] Engine Prediction Module
    By crossdresser in forum Garry's Mod Coding & Resources
    Replies: 2
    Last Post: 06-15-2016, 03:43 PM
  2. [Release] [ VAC Proof ] QuikHop! The BEST source engine bunny hopper! [ CSS, Gmod, HL2 ]
    By IRSpafic in forum Steam Games Hacks & Cheats
    Replies: 67
    Last Post: 04-04-2014, 01:43 PM
  3. Replies: 6
    Last Post: 05-21-2006, 09:09 PM
  4. My Predictions for MPGH...
    By RebornAce in forum General Gaming
    Replies: 24
    Last Post: 02-20-2006, 08:15 AM
  5. Plz I Want Maple Global Hacks And Where Do I Get Game Engine 2 Make The Hacks Work???
    By mattinthehat in forum MapleStory Hacks, Cheats & Trainers
    Replies: 3
    Last Post: 01-15-2006, 06:12 PM