mirror of
https://github.com/DrBeef/Doom3Quest.git
synced 2024-11-26 22:02:30 +00:00
Fixed Two Handed Weapon Scales
This commit is contained in:
parent
13e47f980a
commit
7216d02b43
3 changed files with 13 additions and 2 deletions
|
@ -1758,6 +1758,7 @@ void idPlayer::Init( void ) {
|
|||
InitPlayerBones();
|
||||
|
||||
commonVr->currentFlashlightMode = vr_flashlightMode.GetInteger();
|
||||
commonVr->restoreFlashlightMode = false;
|
||||
|
||||
commonVr->thirdPersonMovement = false;
|
||||
commonVr->thirdPersonDelta = 0.0f;
|
||||
|
@ -13764,7 +13765,16 @@ void idPlayer::CalculateViewFlashlightPos( idVec3 &origin, idMat3 &axis, idVec3
|
|||
int flashlightMode = commonVr->GetCurrentFlashlightMode();
|
||||
if (commonVr->GetWeaponStabilised() && flashlightMode == FLASHLIGHT_HAND )
|
||||
{
|
||||
flashlightMode = FLASHLIGHT_GUN;
|
||||
//GB Changed as previous wasn't persistent across functions
|
||||
commonVr->restoreFlashlightMode = true;
|
||||
vr_flashlightMode.SetInteger( FLASHLIGHT_GUN );
|
||||
vr_flashlightMode.SetModified();
|
||||
}
|
||||
else if (!commonVr->GetWeaponStabilised() && commonVr->restoreFlashlightMode)
|
||||
{
|
||||
commonVr->restoreFlashlightMode = false;
|
||||
vr_flashlightMode.SetInteger( FLASHLIGHT_HAND );
|
||||
vr_flashlightMode.SetModified();
|
||||
}
|
||||
|
||||
setLeftHand = false;
|
||||
|
|
|
@ -279,7 +279,7 @@ iVr::iVr()
|
|||
wasSaved = false;
|
||||
wasLoaded = false;
|
||||
shouldRecenter = false;
|
||||
|
||||
restoreFlashlightMode = false;
|
||||
PDAclipModelSet = false;
|
||||
useFBO = false;
|
||||
|
||||
|
|
|
@ -181,6 +181,7 @@ public:
|
|||
//------------------
|
||||
int lastComfortTime;
|
||||
int currentFlashlightMode;
|
||||
bool restoreFlashlightMode;
|
||||
|
||||
bool VR_GAME_PAUSED;
|
||||
|
||||
|
|
Loading…
Reference in a new issue