Results 1 to 2 of 2
  1. #1
    mrpepper08's Avatar
    Join Date
    Mar 2015
    Gender
    male
    Posts
    3
    Reputation
    10
    Thanks
    0

    Help needed in finding an ID for the weapon owner

    Hello,

    I'm currently working on a networked skinchanger. The goal is to network skins to different players who use my cheat.
    In order to achieve this, i need to differentiate the owners of the weapons, so that i make sure that i wont override my own skins with others their skins.

    So yeah, the cheat is internal.
    I have tried ItemDefinitionIndex & AccountId, but those 2 differentiate by weapons, instead of by players.
    I also tried something with OwnerEntity, dont fully understand what it is supposed to do.

    any help would be highly appreciated!

    EDIT:

    This is what i'm currently trying:
    Code:
    	auto pLocal = I::EntityList->GetClientEntity(I::Engine->GetLocalPlayer());
    	if (!pLocal) return;
    
    	auto hActiveWeapon = pLocal->GetActiveWeapon();
    	if (!hActiveWeapon) return;
    
    	auto pActiveWeapon = I::EntityList->GetClientEntityFromHandle(*hActiveWeapon);
    	if (!pActiveWeapon) return;
    
    	auto hOwner = pActiveWeapon->GetOwner();
    	if (!hOwner) return;
    
    	auto pOwner = I::EntityList->GetClientEntityFromHandle(*hOwner);
    	if (!pOwner) return;
    
    
    
    	printf("%i \n", pOwner->GetIndex());
    Getting a handle from my active weapon, then getting a handle from the owner & trying to print it.
    Nothing happens, so probably a nullptr that i'm returning.

    I have no idea on how i can achieve this.
    Last edited by mrpepper08; 09-15-2019 at 06:51 PM.

  2. #2
    Jhem's Avatar
    Join Date
    Mar 2012
    Gender
    male
    Location
    167,646,447
    Posts
    4,995
    Reputation
    1203
    Thanks
    7,205
    My Mood
    Stressed
    Your thread is kind of similar to this.
    https://www.mpgh.net/forum/showthread.php?t=1470233







Similar Threads

  1. [Help Request] I cant find No recoil for the life of me :C
    By lordxchris in forum Call of Duty Advanced Warfare Coding/Resources
    Replies: 8
    Last Post: 02-18-2015, 03:03 PM
  2. [Help Request] Need to find 2 parameters for aimbot!
    By theboo in forum Realm of the Mad God Help & Requests
    Replies: 10
    Last Post: 11-24-2014, 04:40 PM
  3. [Request] Aimbot hack undetected please. i cant find one :( thx for the help! :D
    By Axle54321 in forum Battlefield Play4Free Hacks
    Replies: 6
    Last Post: 06-06-2013, 11:04 AM
  4. [Help Request] Can't find torrent file for the Crossfire Download
    By sunnyheha in forum CrossFire Help
    Replies: 4
    Last Post: 01-14-2013, 10:08 AM
  5. We need a middle man thanks for the help
    By easygoinwalnut123 in forum Middleman Lounge
    Replies: 2
    Last Post: 05-04-2012, 02:04 AM