• Amused
  • Angry
  • Annoyed
  • Awesome
  • Bemused
  • Cocky
  • Cool
  • Crazy
  • Crying
  • Down
  • Drunk
  • Embarrased
  • Enraged
  • Friendly
  • Geeky
  • Godly
  • Happy
  • Hateful
  • Hungry
  • Innocent
  • Meh
  • Piratey
  • Poorly
  • Sad
  • Secret
  • Shy
  • Sneaky
  • Tired
  • Wtf
  • At Work
  • CodenzHub
  • Coding
  • Deejaying
  • Donating
  • Drinking
  • Eating
  • Editing
  • Hacking
  • Hate Mailing
  • Jamin'
  • Lagging
  • Live Streaming
  • Lurking
  • No Status
  • Pawning
  • PC Gaming
  • PS Gaming
  • Raging
  • Reversing
  • Sleeping
  • Steam Gaming
  • Trolling
  • TwitchStreamer
  • Vodka!
  • Watching TV/Movie
  • Xbox Gaming
  • Youtuber
  • Zombies
  • Page 1 of 3 123 LastLast
    Results 1 to 10 of 28
    1. #1
      Coder
      so I herd u liek codenz...
       
      Lurking
       
      BeesKnees's Avatar
      Join Date
      Jul 2013
      Posts
      121
      Thanks (-->)
      56
      Thanks (<--)
      59

      [CSS] weaponID help

      Silent VPN
      Hello I've been working to convert my CSGO hack with RCS to CS:S but i desperately need help. Can someone PLEASE help me with getting the weaponID in CS:S I've been digging the net for 2 days trying to find an explanation that's not half-assed and it's all been proven moot. PM or post here if you like.
      I would very much appreciate it.

    2. #2
      Coder
      Learning to hack games!
       
      Feeling Normal
       
      brinkz's Avatar
      Join Date
      Sep 2012
      Posts
      213
      Thanks (-->)
      5
      Thanks (<--)
      74
      Well every Weapon Entity has a vfunc GetWeaponId() which basically looks like this:

      int GetWeaponId()
      {
      return WEAPON_DEAGLE; // = 25
      }

      //equals in ASM:
      mov eax, 25; // eax stores return value
      retn;

      // In our Hack (if external and not calling the func)
      DWORD dwEnt = read<DWORD>( GetCombatWeapon() );
      DWORD dwGetWeaponId = read<DWORD>( dwEnt + OFFSET_GETWEAPONID );
      int iWeaponId = read<int>( dwGetWeaponId + 1 );

    3. Thanks BeesKnees thanked for this post
    4. #3
      Coder
      so I herd u liek codenz...
       
      Lurking
       
      BeesKnees's Avatar
      Join Date
      Jul 2013
      Posts
      121
      Thanks (-->)
      56
      Thanks (<--)
      59
      Quote Originally Posted by brinkz View Post
      Well every Weapon Entity has a vfunc GetWeaponId() which basically looks like this:

      int GetWeaponId()
      {
      return WEAPON_DEAGLE; // = 25
      }

      //equals in ASM:
      mov eax, 25; // eax stores return value
      retn;

      // In our Hack (if external and not calling the func)
      DWORD dwEnt = read<DWORD>( GetCombatWeapon() );
      DWORD dwGetWeaponId = read<DWORD>( dwEnt + OFFSET_GETWEAPONID );
      int iWeaponId = read<int>( dwGetWeaponId + 1 );
      and "GetCombatWeapon()" in this case would be?

    5. #4
      Coder
      Learning to hack games!
       
      Feeling Normal
       
      brinkz's Avatar
      Join Date
      Sep 2012
      Posts
      213
      Thanks (-->)
      5
      Thanks (<--)
      74
      Quote Originally Posted by BeesKnees View Post
      and "GetCombatWeapon()" in this case would be?
      Getting the ActiveWeapon:

      DWORD GetCombatWeapon()
      {
      unsigned long ulWeapon = read<unsigned long>( playerent + OFFSET_ACTIVEWEAPON /*m_hActiveWeapon*/ );
      return GetEntById( ulWeapon & 0xFFF );
      }

    6. #5
      Coder
      so I herd u liek codenz...
       
      Lurking
       
      BeesKnees's Avatar
      Join Date
      Jul 2013
      Posts
      121
      Thanks (-->)
      56
      Thanks (<--)
      59
      Quote Originally Posted by brinkz View Post
      Getting the ActiveWeapon:

      DWORD GetCombatWeapon()
      {
      unsigned long ulWeapon = read<unsigned long>( playerent + OFFSET_ACTIVEWEAPON /*m_hActiveWeapon*/ );
      return GetEntById( ulWeapon & 0xFFF );
      }
      .....and GetEntById is?

    7. #6
      Coder
      Learning to hack games!
       
      Feeling Normal
       
      brinkz's Avatar
      Join Date
      Sep 2012
      Posts
      213
      Thanks (-->)
      5
      Thanks (<--)
      74
      Getting the player entity address from where you can access all netvars. So basically the same shit you do in your entity iteration to grab localplayer and other entites.

    8. #7
      Coder
      so I herd u liek codenz...
       
      Lurking
       
      BeesKnees's Avatar
      Join Date
      Jul 2013
      Posts
      121
      Thanks (-->)
      56
      Thanks (<--)
      59
      thank you very much for your repl's. I'm trying to put this together now and inform me of my mistakes if you dont mind

    9. #8
      Coder
      so I herd u liek codenz...
       
      Lurking
       
      BeesKnees's Avatar
      Join Date
      Jul 2013
      Posts
      121
      Thanks (-->)
      56
      Thanks (<--)
      59
      something like this?

      ReadMem(Client + pBaseAddy), &playerBase, sizeof(DWORD), 0);
      ReadMem(playerBase + 0xD70), &ulWeapon, sizeof(unsigned long), 0);
      ulWeapon &= 0xFFF;
      ReadMem(ulWeapon + 0x5A0), &getWepId, sizeof(DWORD), 0);
      ReadMem(getWepId + 0x1), &weaponId, sizeof(int), 0);

    10. #9
      Coder
      Learning to hack games!
       
      Feeling Normal
       
      brinkz's Avatar
      Join Date
      Sep 2012
      Posts
      213
      Thanks (-->)
      5
      Thanks (<--)
      74
      Yeah this seems right to me.

    11. #10
      Coder
      so I herd u liek codenz...
       
      Lurking
       
      BeesKnees's Avatar
      Join Date
      Jul 2013
      Posts
      121
      Thanks (-->)
      56
      Thanks (<--)
      59
      Silent VPN
      Quote Originally Posted by brinkz View Post
      Yeah this seems right to me.
      always returns 0
      is my wepid offset incorrect?

    Page 1 of 3 123 LastLast

    Similar Game Hacker Threads

    1. [Source Code] New CS:GO WeaponID method
      By d0wen in forum Visual Basic
      Replies: 0
      Last Post: 03-24-2016, 09:16 PM
    2. [Help] Need help w WeaponID
      By d0wen in forum Visual Basic
      Replies: 2
      Last Post: 03-30-2015, 10:07 AM
    3. weaponID [work only with bots...]
      By getox in forum CS:GO Hacks
      Replies: 6
      Last Post: 03-17-2015, 10:36 AM
    4. [Help] WeaponID
      By marry_poppins in forum Hacking Help
      Replies: 6
      Last Post: 11-06-2014, 05:24 AM

    Tags for this Thread