From e355cc2bc3de643cb7aacc1f3fc1704e7c0a614e Mon Sep 17 00:00:00 2001 From: Sepp Jeremiah Morris Date: Wed, 10 May 2023 23:24:10 +0200 Subject: [PATCH] and up we all go adding height to the player(s) standing in the blast --- lucabigsteel/lua/weapons/weapon_lucabigsteel.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lucabigsteel/lua/weapons/weapon_lucabigsteel.lua b/lucabigsteel/lua/weapons/weapon_lucabigsteel.lua index 94a0beb..054c745 100644 --- a/lucabigsteel/lua/weapons/weapon_lucabigsteel.lua +++ b/lucabigsteel/lua/weapons/weapon_lucabigsteel.lua @@ -94,6 +94,7 @@ function SWEP:SecondaryAttack() if distance <= self.ExplosionRadius then local push = (1 - (distance / self.ExplosionRadius)) * 900 -- Push force decreases with distance local direction = (ply:GetPos() - explodePos):GetNormalized() + direction.z = direction.z + 0.5 -- Add upward force ply:SetVelocity(direction * push) end end @@ -109,6 +110,7 @@ function SWEP:SecondaryAttack() end + function SWEP:CanPrimaryAttack() if self.Weapon:Clip1() <= 0 then