mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-10 06:41:58 +00:00
Merge pull request #58 from petr666/feature/various-fixes
Do not draw weapon model with enabled weapon scope
This commit is contained in:
commit
d195ad212a
2 changed files with 5 additions and 1 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 ];
|
||||
|
|
|
@ -102,9 +102,9 @@ void VR_InitCvars( void )
|
|||
Cvar_Get ("vr_weapon_adjustment_9", "0.8,-5.5,6,0,0,0,0", CVAR_ARCHIVE);
|
||||
|
||||
//Team Arena Weapons
|
||||
Cvar_Get ("vr_weapon_adjustment_10", "0.8,-5.5,6,0,0,0,0", CVAR_ARCHIVE);
|
||||
Cvar_Get ("vr_weapon_adjustment_11", "0.8,-5.5,6,0,0,0,0", CVAR_ARCHIVE);
|
||||
Cvar_Get ("vr_weapon_adjustment_12", "0.8,-5.5,6,0,0,0,0", CVAR_ARCHIVE);
|
||||
Cvar_Get ("vr_weapon_adjustment_13", "0.8,-5.5,6,0,0,0,0", CVAR_ARCHIVE);
|
||||
|
||||
// Control schemas
|
||||
Cvar_Get ("vr_uturn", "0", CVAR_ARCHIVE);
|
||||
|
|
Loading…
Reference in a new issue