Results 1 to 5 of 5
  1. #1
    gauthier08's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    175
    Reputation
    10
    Thanks
    12

    External knifechanger (c++)

    Hey guys, I finished my skinchanger and wanna make a knifechanger.
    Yet, ive read some snippets from other guys, and it seems like whatever i try, in my weaponlist (down-right) i get my Gut knife etc, but my model keeps the default knife.

    At some point, the default knife changes for a sec to the gutknife, but instantly changes back.

    Code:
    		else if (weaponid == 42) //ct knife
    		{
    			mem.Write<DWORD>(EntityList + Offsets::m_iItemIDLow, -1);
    			mem.Write<DWORD>(EntityList + Offsets::m_iItemIDHigh, -1);
    
    			mem.Write<DWORD>(EntityList + Offsets::m_OriginalOwnerXuidLow, 0);
    			mem.Write<DWORD>(EntityList + Offsets::m_OriginalOwnerXuidHigh, 0);
    
    			mem.Write<DWORD>(EntityList + Offsets::m_nModelIndex, 506);
    			mem.Write<DWORD>(EntityList + Offsets::m_nViewModelIndex, 324);
    			mem.Write<DWORD>(EntityList + Offsets::m_iViewModelIndex, 324);
    			mem.Write<DWORD>(player.LocalPlayer() + Offsets::m_iWorldModelIndex, 325);
    
    			mem.Write<DWORD>(EntityList + Offsets::m_iItemDefinitionIndex, 506); //gut knife
    
    		}
    Thanks in advance!

    Wanna help me in PM? Add (skype: gauthier.cremers)

  2. #2
    Buttars0070's Avatar
    Join Date
    May 2013
    Gender
    male
    Location
    A very bright place
    Posts
    97
    Reputation
    10
    Thanks
    58
    My Mood
    Angelic
    Doesn't the id of the weapon change based upon the skin as well or am I mistaken. If so just ignore me.

    Else, ensure you're looping it and not leaving it running once(stupid but sometimes the solution).



    If I helped you or enjoyed something I did, I would love it if you




     

    Overwatch Bans: 2 | VAC: 1
    50 posts ✔
    150 posts
    250 posts
    500 posts
    1000 posts
    50 thanks ✔
    200 thanks
    500 thanks
    1000 thanks
    1500 thanks
    2000 thanks
    2500 thanks
    3000 thanks
    100 downloads ✔
    500 downloads
    1000 downloads
    5000 downloads
    7500 downloads
    10000 downloads
    15000 downloads



     




  3. #3
    legit_player's Avatar
    Join Date
    Aug 2015
    Gender
    male
    Location
    /root
    Posts
    313
    Reputation
    10
    Thanks
    2,784
    My Mood
    Cool
    Are you just trying to get spoonfeeded or what? I already told you on different forum to look at nModelIndex. Look in SDK so you will know what it does.

  4. The Following User Says Thank You to legit_player For This Useful Post:

    Adrenaline (07-07-2016)

  5. #4
    shinezz's Avatar
    Join Date
    Mar 2015
    Gender
    male
    Location
    exit(1);
    Posts
    38
    Reputation
    10
    Thanks
    22
    My Mood
    Inspired
    while (true) {


    }


    ?

  6. #5
    gauthier08's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    175
    Reputation
    10
    Thanks
    12
    Quote Originally Posted by shinezz View Post
    while (true) {


    }


    ?
    Yeah i include all my loops .
    Most of the times, i get the actual gut knife for a sec, but then it dissapears...

    - - - Updated - - -

    Quote Originally Posted by legit_player View Post
    Are you just trying to get spoonfeeded or what? I already told you on different forum to look at nModelIndex. Look in SDK so you will know what it does.
    Well i looked in some SDK's, couldnt find anything that even calls nModelIndex. So i guess this is a no-go. Thanks for your time anyways.

    Update: @legit_player, okay so, i figured out on how nModelIndex works. When i join a botgame, i try to find the value that a knife holds (for example 427). But eventually the number will change. I think you mentioned somewhere about a simple calculation?
    If so, could you tell me what i should do?

    Thanks in advance!
    Last edited by Hunter; 07-09-2016 at 12:57 PM. Reason: Updated.

Similar Threads

  1. Replies: 5
    Last Post: 09-05-2009, 01:10 PM
  2. New external harddrive
    By PyrexxHero® in forum General
    Replies: 4
    Last Post: 07-26-2009, 05:22 AM
  3. External links for hacks foribben.
    By EndRiT in forum WarRock - International Hacks
    Replies: 13
    Last Post: 04-08-2009, 05:48 AM
  4. a question on external files
    By mpghhackersrock123 in forum WarRock - International Hacks
    Replies: 9
    Last Post: 09-02-2007, 05:23 AM
  5. how do you put hacks on an external drive
    By mpghhackersrock123 in forum WarRock - International Hacks
    Replies: 23
    Last Post: 09-01-2007, 06:22 PM