Skip to content

Commit

Permalink
Add grenade shooting
Browse files Browse the repository at this point in the history
  • Loading branch information
RedBigz committed Dec 10, 2024
1 parent fce368d commit 72c9ba8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion TABGVR/Player/VRControls.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ private void Update()
{
if (!_rightTriggered)
{
if (weaponHandler.rightWeapon) weaponHandler.PressAttack(true, false);
if (Grenades.SelectedGrenade && interactionHandler.sinceThrow > 3f && !interactionHandler.isThrowing) interactionHandler.StartCoroutine(interactionHandler.Throwing());
else if (weaponHandler.rightWeapon) weaponHandler.PressAttack(true, false);
else PickupInteract();
}
else if (weaponHandler.rightWeapon)
Expand Down

0 comments on commit 72c9ba8

Please sign in to comment.