Do not draw weapon model with enabled weapon scope

This commit is contained in:
Petr Bartos 2022-04-09 18:15:30 +02:00
parent bef1e32a2c
commit 91406602f8

View file

@ -1724,6 +1724,10 @@ void CG_AddViewWeapon( playerState_t *ps ) {
return;
}
if (vr->weapon_zoomed) {
return; // do not draw weapon model with enabled weapon scope
}
cent = &cg.predictedPlayerEntity; // &cg_entities[cg.snap->ps.clientNum];
CG_RegisterWeapon( ps->weapon );
weapon = &cg_weapons[ ps->weapon ];