From 40bfdc55060f63ae1922934233bf9f0cf5d85150 Mon Sep 17 00:00:00 2001 From: DoopieWop <62191983+DoopieWop@users.noreply.github.com> Date: Thu, 11 May 2023 22:20:34 +0200 Subject: [PATCH] Prevent spawning with pistol ammo darkrpg swep didnt previously replace secondary ammo, which lead to default secondary, being pistol ammo, 8 clip and 32 reserve, which would give players 24 pistol ammo on spawn. --- lua/weapons/darkrpg2_swep/shared.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lua/weapons/darkrpg2_swep/shared.lua b/lua/weapons/darkrpg2_swep/shared.lua index fd92c27..5cb9bab 100644 --- a/lua/weapons/darkrpg2_swep/shared.lua +++ b/lua/weapons/darkrpg2_swep/shared.lua @@ -34,6 +34,13 @@ SWEP.Primary.DefaultClip = -1 SWEP.Primary.Automatic = false SWEP.Primary.Ammo = "" +SWEP.Secondary.Damage = -1 +SWEP.Secondary.Delay = -1 +SWEP.Secondary.ClipSize = -1 +SWEP.Secondary.DefaultClip = -1 +SWEP.Secondary.Automatic = false +SWEP.Secondary.Ammo = "" + SWEP.ViewModelFOV = 62 SWEP.ViewModelFlip = false SWEP.UseHands = true @@ -78,4 +85,4 @@ end function SWEP:OnDrop() if self != nil then self:Remove() end -end \ No newline at end of file +end