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. 