External Knife Changer

Posts 46–60 of 61 · Page 4 of 5
Quote Originally Posted by PhY'z View Post
Sorry for late reply, i was out...

Here is the video:
https://ab-s.me/phyz/2017-03-09_23-36-45.mp4ⓘ

...
What do i do?
- First get the model index, it can vary in each map, thats why we use math, its really simple, just get what happens in common every round/game start (pis....), get their index, get the diff, sum some shit, done, you have a dynamic index finder.
> Is that the best way to get the index? No. You can do it better, will i do it for you? No. (that was my first way doing the knife changer, now i do it in the other way getting the index at the right place with the right function, not using gettho calc xD)

- Check if the current weapon is knife, k, check if the index is in range, (???) to 600 (max knife index, even a bit more)
- Write pLocal ModelBase + m_nModelIndex, the index...

> Wait, but it is not setting skinz/bla bla bla
- Loop thouhg all your weapons (m_hMyWeapons)...
- Check if is the Knife...
- If is knife... You have to write, pWeapon Base + iViewModel, pWeapon Base + iWorldModel, pWeapon Base + iWorldDroppedModel and then again the pWeapon Base + m_nModelIndex, the index...
- pWeapon Base + iItemDefinitionIndex, the knife weapon id...
-- iViewModel = the index... iWorldModel = the index + 1... iWorldDroppedModel = the index + 2...

Really scrabled, wrote that really fast, but may be understandable, no codez cuz i dont wanna spread pasta.

Good Luck, Have Fun.

Credits??????? PhYz and LegitPlayer.
can you or anyone help me? my knife changer is working fine (thank you), but, the skin of knife wasn't changed, i have tried oftentimes no success
Quote Originally Posted by LuiisPvP View Post
can you or anyone help me? my knife changer is working fine (thank you), but, the skin of knife wasn't changed, i have tried oftentimes no success
I wish you could read... I even posted the solution at the same reply...

Again:
> Wait, but it is not setting skinz/bla bla bla
- Loop thouhg all your weapons (m_hMyWeapons)...
- Check if is the Knife...
- If is knife... You have to write, pWeapon Base + iViewModel, pWeapon Base + iWorldModel, pWeapon Base + iWorldDroppedModel and then again the pWeapon Base + m_nModelIndex...
- pWeapon Base + iItemDefinitionIndex, the knife weapon id...
-- nModelIndex = the index... iViewModel = the index... iWorldModel = the index + 1... iWorldDroppedModel = the index + 2...
Quote Originally Posted by PhY'z View Post
I wish you could read... I even posted the solution at the same reply...

Again:
Do you really think that if I had read I'd be asking again?
Quote Originally Posted by LuiisPvP View Post
Do you really think that if I had read I'd be asking again?
Get out brazilian
At least put some effort and learn some shit, you shouldn't be trying if u can't understand how the engine works, if you want pasta, you are speaking with the wrong guy.

- - - Updated - - -

Quote Originally Posted by dnka View Post
It is in an while loop then it goes for each weapon and checks if Knife ... But still the Knife only appears for an second..
Then you are probably not setting the right index, or you are setting to the the wrong place
Quote Originally Posted by PhY'z View Post
Get out brazilian
At least put some effort and learn some shit, you shouldn't be trying if u can't understand how the engine works, if you want pasta, you are speaking with the wrong guy.

- - - Updated - - -



Then you are probably not setting the right index, or you are setting to the the wrong place
I ask for pasta? No =)
Quote Originally Posted by antep2727 View Post
Stop acting like you know shit. Just take a look at your recent threads lmao
I'm not acting like i know shit lol making an infinite loop is begginer shit lmfao
for me it still dont change the Knife only in the List it change the Knife....

Can someone please Post an Code that is working ?
Quote Originally Posted by dnka View Post
for me it still dont change the Knife only in the List it change the Knife....

Can someone please Post an Code that is working ?
You have all the informations you need to get it work.
Quote Originally Posted by Don Coderleone View Post
You have all the informations you need to get it work.
your answer is not helpful for me ..
I posted the solution to fix the skins on the knifes like twice? Is it that hard to add 3 lines? :/
My knife appears only for an second and change again in the default knife? How to fix it?
Quote Originally Posted by dnka View Post
My knife appears only for an second and change again in the default knife? How to fix it?
Not to offend you, but learn to read or code or both.
It is in an while loop then it goes for each weapon and checks if Knife ... But still the Knife only appears for an second..
gauthier08 i dit what you say and i set the viewmodelindex to 391 and the worldmodelindex to 392 for my m9 ...then i tried to set skin but i dont see a skin just in the right corner the symbol there is a m9 gamma doppler but in my hand i a vanilla m9 PLEASE HELP
Code:
if (weapon.Class == WeaponClass.KNIFE && KnifeSkin > 0)
                    {
                        weapon.ItemDefinitionIndex = KnifeIndex;
                        weapon.ViewModelIndex = _KnifeTrueModel;
                        weapon.WoldModel = (_KnifeTrueModel + 1);
                        weapon.WorldDroppedModel = (_KnifeTrueModel + 2);
                        weapon.PaintKit = KnifeSkin;
                        weapon.StatTrak = 1337;
                        G.LocalPlayer.ViewModel.ModelIndex = _KnifeTrueModel;
                        continue;
                    }
I'm trying to fix a public source code, and i'm having the same problems that in this thread. Finally I chan show knife in all maps, but i can't see the skin and i think that i set it correctly.
Posts 46–60 of 61 · Page 4 of 5

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?