From 89e037fcf5723f0a640d9d9a37c194751417ac30 Mon Sep 17 00:00:00 2001 From: Fesiug Date: Sun, 24 Sep 2023 03:36:32 -0400 Subject: [PATCH] Move this --- gamemodes/benny/entities/weapons/benny.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gamemodes/benny/entities/weapons/benny.lua b/gamemodes/benny/entities/weapons/benny.lua index 471875a..53989ab 100644 --- a/gamemodes/benny/entities/weapons/benny.lua +++ b/gamemodes/benny/entities/weapons/benny.lua @@ -42,6 +42,9 @@ function SWEP:OnVarChanged( name, old, new ) end function SWEP:PrimaryAttack() + if !self:B_Wep1() then + return + end if self:GetDelay1() > CurTime() then return end @@ -50,9 +53,6 @@ function SWEP:PrimaryAttack() self:SetDelay1( CurTime() + 0.2 ) return end - if !self:B_Wep1() then - return - end if CLIENT then AddCaption( "PISTOL", Color( 61, 61, 61 ), "[Pistol shot]", 0.1, 0.5 )