External knifechanger (c++)

Posts 1–5 of 5 · Page 1 of 1
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)
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).
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.
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!
while (true) {


}


?
Posts 1–5 of 5 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?