yuzhouUvU / cs2_weapons_skin

http://skin.ymos.top/
52 stars 30 forks source link

Solution to setting skin on default weapon #2

Open strteamservidores opened 10 months ago

strteamservidores commented 10 months ago

solution find on a forum below

**The solution is very simple, if the skin uses the old gun model, you have to call SetMeshGroupMask with meshGroupMask=2 on both the weapon and the view model.

SetMeshGroupMask takes the CGameSceneNode/CSkeletonInstance pointer and meshGroupMask as parameters. Code: E8? ? ? ? 8B 45 D0 48 8B 55 D8 (relative) code: https://github.com/bruhmoment21/cs2-sdk/blob/18fb2f4931c755101207bf4c5914d40842ab7587/cs2cheat/src/game/skins/skin_changer.cpp#L82-L83**

I have this fix but I don't know how to implement it in the code, if anyone knows I would appreciate it.