mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2025-03-06 17:31:57 +00:00
Do not draw weapon model with enabled weapon scope
This commit is contained in:
parent
7a5a3ec8e9
commit
5bec45e664
1 changed files with 4 additions and 0 deletions
|
@ -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 ];
|
||||
|
|
Loading…
Reference in a new issue