fix zoomed only?

This commit is contained in:
nullifiedcat 2017-04-30 19:30:49 +03:00
parent c869458b48
commit 8111cde47f

View File

@ -468,6 +468,12 @@ bool ShouldAim(CUserCmd* cmd) {
if (slowaim) return false;
}
}
if (zoomed_only) {
if (g_pLocalPlayer->weapon()->m_iClassID == g_pClassID->CTFSniperRifle ||
g_pLocalPlayer->weapon()->m_iClassID == g_pClassID->CTFSniperRifleDecap) {
return false;
}
}
if (only_can_shoot) {
// Miniguns should shoot and aim continiously. TODO smg
if (g_pLocalPlayer->weapon()->m_iClassID != g_pClassID->CTFMinigun) {