[SUGGESTION] New feature.
A lot of people like to play legit, even without Glow, Chams and even without Aimbot, so I suggested you add if possible "Knife on the left hand" ie weapons and all other items are on the right hand but when we pull to the knife and knife goes to the left hand.
There are binds that help, but they are not so accurate because if we click the "Q" key to change weapons and the knife will not go to the left side.
It is a suggestion that I think is easy to code this feature.
lot of open sources have this my guy, easy paste
+1 easy af. just check cl_righthand and if current weapon is knife then force 0 or 1 (if u want weapon in right and knife in left or vice versa)
@tirziz idk about others but i feel nostalgic (cs1.6)
void Misc::swaphandonknife() noexcept { if (interfaces.engine->isInGame()) { const auto localPlayer = interfaces.entityList->getEntity(interfaces.engine->getLocalPlayer()); if (localPlayer->isAlive()) { const auto activeWeapon = localPlayer->getActiveWeapon(); auto swapknife = interfaces.cvar->findVar("cl_righthand"); if (config.misc.swaphandonknife) { if (activeWeapon->getClientClass()->classId == ClassId::Knife) { swapknife->setValue(0); } if (activeWeapon->getClientClass()->classId != ClassId::Knife) { swapknife->setValue(1); } } } } }
i still don't know how to fix the indentation on github
you don't even need cheats for this. use an autoexec and have it so that when you press 1 and or 2 it makes cl_righthand 1 and when you press 3 it makes it 0. 1 and 2 being main and pistol and 3 being the knife
you don't even need cheats for this. use an autoexec and have it so that when you press 1 and or 2 it makes cl_righthand 1 and when you press 3 it makes it 0. 1 and 2 being main and pistol and 3 being the knife
Yes but a lot of people use q to change weapons
void Misc::swaphandonknife() noexcept { if (interfaces.engine->isInGame()) { const auto localPlayer = interfaces.entityList->getEntity(interfaces.engine->getLocalPlayer()); if (localPlayer->isAlive()) { const auto activeWeapon = localPlayer->getActiveWeapon(); auto swapknife = interfaces.cvar->findVar("cl_righthand"); if (config.misc.swaphandonknife) { if (activeWeapon->getClientClass()->classId == ClassId::Knife) { swapknife->setValue(0); } if (activeWeapon->getClientClass()->classId != ClassId::Knife) { swapknife->setValue(1); } } } } }
NOT WORKING TESTED IT
Did you even call it?
@effex1337 ofc
called in misc.h
Show me the snippet how u called it.
You only define stuff in misc.h and call it in hooks.cpp->createmove.
oh
void swaphandonknife() noexcept;
i called this in misc.h
@effex1337 alright bud i think i got it now tks a lot:kissing_heart: