From aba3d5ec4dacdfe3d192d3d2f37554da62268b85 Mon Sep 17 00:00:00 2001 From: Shtoyan Date: Sun, 23 Jan 2022 17:48:15 +0400 Subject: [PATCH] fix nade throwing --- sources/NiceHumanPawn.uc | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/sources/NiceHumanPawn.uc b/sources/NiceHumanPawn.uc index a0154b3..8970d8a 100644 --- a/sources/NiceHumanPawn.uc +++ b/sources/NiceHumanPawn.uc @@ -555,16 +555,21 @@ simulated function CookGrenade(){ niceWeap.ClientGrenadeState = GN_TempDown; niceWeap.PutDown(); } -simulated function ThrowGrenade(){ +simulated function ThrowGrenade() +{ local NiceWeapon niceWeap; niceWeap = NiceWeapon(Weapon); if(niceWeap != none) niceWeap.ClientForceInterruptReload(CANCEL_NADE); if(bThrowingNade || SecondaryItem != none) return; - if( niceWeap == none - || (niceWeap.bIsReloading && !niceWeap.InterruptReload())) - return; + + if(niceWeap == none || (niceWeap.bIsReloading && !niceWeap.InterruptReload())) + { + super.ThrowGrenade(); + return; + } + if(playerGrenade == none) playerGrenade = FindPlayerGrenade(); if(playerGrenade != none && playerGrenade.HasAmmo()){