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).
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.
Thanks in advance!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 }
Wanna help me in PM? Add (skype: gauthier.cremers)
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
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.
Adrenaline (07-07-2016)
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 - - -
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.