External Knife changer

Posts 1–13 of 13 · Page 1 of 1
External Knife changer
So I'm pretty clueless as to what I need to modify for this to work. I already experimented with using console commands to set the model, which worked fine because my code set the skin and everything else. Here is my function to write to my knife:

Code:
//x = the paint
//y = the item index value
//z = the model value
//ent = the knife weapon entity
void WriteKnife(int x, int y, int z, DWORD ent)
{
	fProcess.Write<bool>((fProcess.__dwordEngine + cl_move + bsendpacket), false);
	Sleep(1);
	fProcess.Write<bool>((fProcess.__dwordEngine + cl_move + bsendpacket), true);

	fProcess.Write<int>((ent + itemIDH), -1); //itemidhigh
	fProcess.Write<int>((ent + itemIDL), -1); //itemidlow
	fProcess.Write<int>((ent + xuidLow), 0); //xuidlow
	fProcess.Write<int>((ent + xuidHigh), 0); //xuidhigh
	fProcess.Write<int>((ent + itemQuality), 3); // quality
	fProcess.Write<int>((ent + itemPaint), x); //paint
	fProcess.Write<float>((ent + itemWear), 0.00001f); //wear

	fProcess.Write<bool>((fProcess.__dwordEngine + cl_move + bsendpacket), false);
	Sleep(1);
	fProcess.Write<bool>((fProcess.__dwordEngine + cl_move + bsendpacket), true);

	fProcess.Write<bool>((fProcess.__dwordEngine + cl_move + bsendpacket), false);
	fProcess.Write<int>((ent + modelIndex), z);
	fProcess.Write<bool>((fProcess.__dwordEngine + cl_move + bsendpacket), true);
	fProcess.Write<int>((ent + item), y);

	fProcess.Write<bool>((fProcess.__dwordEngine + cl_move + bsendpacket), false);
	Sleep(1);
	fProcess.Write<bool>((fProcess.__dwordEngine + cl_move + bsendpacket), true);

	cstate = fProcess.Read<DWORD>(fProcess.__dwordEngine + enginepos);
	fProcess.Write<int>((cstate + deltatick), -1); //force update

}
The bsendpackets everywhere is because somebody told me to use those so the knife would set. However, he did not tell me where to put them so I have them everywhere, but they actually mess up the knife when I set it (e.g. the skin goes on my t knife but it doesn't change the name of the knife to bayonet).
Wow thats a mess, yeah i didnt tell you where to put this code because i was busy. Do the lag when you are forceupdating.
Quote Originally Posted by legit_player View Post
Wow thats a mess, yeah i didnt tell you where to put this code because i was busy. Do the lag when you are forceupdating.
Besides that, are there any knife specific variables I should be editing because it still won't work
Worldmodel, viewmodel and itemdefinitionindex. Is your ping getting higher when setting the knife?
Is this method giving untrusted too?
Quote Originally Posted by legit_player View Post
Worldmodel, viewmodel and itemdefinitionindex. Is your ping getting higher when setting the knife?
Where is worldmodel accessed? I have the values I need for it.
No, my ping stays the same, but I lag around a bit when I hold my key to set the knife.

- - - Updated - - -

Quote Originally Posted by Background View Post
Is this method giving untrusted too?
Not sure if it would
Quote Originally Posted by KappaMang View Post
Where is worldmodel accessed? I have the values I need for it.
No, my ping stays the same, but I lag around a bit when I hold my key to set the knife.

- - - Updated - - -



Not sure if it would
Your ping need to get high, of course its lagging its because of forceupdating.
Code:
// format: (m_iViewModelIndex, m_iWorldModelIndex, m_iItemDefinitionIndex)
( 296, 297, 59 ),  // KNIFE_DEFAULT_T
( 40, 41, 42 ),    // KNIFE_DEFAULT_CT
( 320, 321, 500 ), // KNIFE_BAYONET
( 322, 323, 505 ), // KNIFE_FLIP
( 324, 325, 506 ), // KNIFE_GUT
( 326, 327, 507 ), // KNIFE_KARAMBIT
( 328, 329, 508 ), // KNIFE_M9BAYONET
( 330, 331, 509 ), // KNIFE_TACTICAL
( 332, 333, 515 )  // KNIFE_BUTTERFLY
Quote Originally Posted by legit_player View Post
Your ping need to get high, of course its lagging its because of forceupdating.
Code:
// format: (m_iViewModelIndex, m_iWorldModelIndex, m_iItemDefinitionIndex)
( 296, 297, 59 ),  // KNIFE_DEFAULT_T
( 40, 41, 42 ),    // KNIFE_DEFAULT_CT
( 320, 321, 500 ), // KNIFE_BAYONET
( 322, 323, 505 ), // KNIFE_FLIP
( 324, 325, 506 ), // KNIFE_GUT
( 326, 327, 507 ), // KNIFE_KARAMBIT
( 328, 329, 508 ), // KNIFE_M9BAYONET
( 330, 331, 509 ), // KNIFE_TACTICAL
( 332, 333, 515 )  // KNIFE_BUTTERFLY
One, I have the values, two, these are outdated, three, you didn't answer what I asked
So does this imply my sendpacket is wrong?
Quote Originally Posted by KappaMang View Post
One, I have the values, two, these are outdated, three, you didn't answer what I asked
So does this imply my sendpacket is wrong?
Just admit you have no idea what you're doing. Doing a knife/skin changer in an external cheat is not worth your time anyways.

You have to force ItemDefinitionIndex to the correct weapon if you want it to say 'Bayonet' or whatever.

Also relax with the amount of times you're not sending packets. I don't know if it's required for an external knife changer but you should [only] do it when you are forcing the model.
Quote Originally Posted by KappaMang View Post
One, I have the values, two, these are outdated, three, you didn't answer what I asked
So does this imply my sendpacket is wrong?
Whats is outdated? Lol. You dont need to call forceupdate or sendpacket 1000x times. Just do it once. And i answered all questions you just have no idea what are you doing.
Quote Originally Posted by legit_player View Post
Whats is outdated? Lol. You dont need to call forceupdate or sendpacket 1000x times. Just do it once. And i answered all questions you just have no idea what are you doing.
This:
Code:
( 296, 297, 59 ),  // KNIFE_DEFAULT_T
( 40, 41, 42 ),    // KNIFE_DEFAULT_CT
( 320, 321, 500 ), // KNIFE_BAYONET
( 322, 323, 505 ), // KNIFE_FLIP
( 324, 325, 506 ), // KNIFE_GUT
( 326, 327, 507 ), // KNIFE_KARAMBIT
( 328, 329, 508 ), // KNIFE_M9BAYONET
( 330, 331, 509 ), // KNIFE_TACTICAL
( 332, 333, 515 )  // KNIFE_BUTTERFLY
is outdated.
I asked how to access the world model, because I looked in the entity of my knife and I saw the view model's value but not the worldmodel.

- - - Updated - - -

Quote Originally Posted by Epik View Post


Just admit you have no idea what you're doing. Doing a knife/skin changer in an external cheat is not worth your time anyways.

You have to force ItemDefinitionIndex to the correct weapon if you want it to say 'Bayonet' or whatever.

Also relax with the amount of times you're not sending packets. I don't know if it's required for an external knife changer but you should [only] do it when you are forcing the model.
I know that, I am forcing the itemdefindex. When you say "when you are," should it be

Code:
sendpacket = false
sleep
sendpacket = true
force model
or

Code:
force model
sendpacket = false
sleep
sendpacket = true
or

Code:
sendpacket = false
force model
sendpacket = true
Quote Originally Posted by KappaMang View Post
This:
Code:
( 296, 297, 59 ),  // KNIFE_DEFAULT_T
( 40, 41, 42 ),    // KNIFE_DEFAULT_CT
( 320, 321, 500 ), // KNIFE_BAYONET
( 322, 323, 505 ), // KNIFE_FLIP
( 324, 325, 506 ), // KNIFE_GUT
( 326, 327, 507 ), // KNIFE_KARAMBIT
( 328, 329, 508 ), // KNIFE_M9BAYONET
( 330, 331, 509 ), // KNIFE_TACTICAL
( 332, 333, 515 )  // KNIFE_BUTTERFLY
is outdated.
I asked how to access the world model, because I looked in the entity of my knife and I saw the view model's value but not the worldmodel.

- - - Updated - - -



I know that, I am forcing the itemdefindex. When you say "when you are," should it be

Code:
sendpacket = false
sleep
sendpacket = true
force model
or

Code:
force model
sendpacket = false
sleep
sendpacket = true
or

Code:
sendpacket = false
force model
sendpacket = true
I'll leave it up to your intuition.
Alright, as this is just turning into a thread where people are leeching off of and it has been 2 days without any response from the OP despite him being online. Im gonna go ahead and assume this as resolved. @KappaMang if this is still an issue pm me.

// Solved & Closed
Posts 1–13 of 13 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?