mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2025-02-15 00:30:43 +00:00
Hide carried item when two-handing weapon
This commit is contained in:
parent
1dd4b9ab18
commit
2f098c1059
1 changed files with 4 additions and 2 deletions
|
@ -1905,11 +1905,13 @@ static void CG_PlayerPowerups( centity_t *cent, refEntity_t *torso ) {
|
|||
{
|
||||
int value;
|
||||
value = cg.snap->ps.stats[STAT_HOLDABLE_ITEM];
|
||||
if ( value ) {
|
||||
|
||||
if (!(trap_Cvar_VariableValue("vr_twoHandedWeapons") != 0.0f && vr->weapon_stabilised)
|
||||
&& value ) {
|
||||
CG_RegisterItemVisuals( value );
|
||||
vec3_t offset;
|
||||
VectorSet(offset, 0, 0, -8);
|
||||
CG_TrailItem( cent, cg_items[ value ].models[0], offset, 0.5f );
|
||||
CG_TrailItem( cent, cg_items[ value ].models[0], offset, 0.25f );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue