Skip to content

Commit

Permalink
SA buff and code tweaks
Browse files Browse the repository at this point in the history
changed spread with gunner to 0.11
  • Loading branch information
KemGus committed Oct 4, 2023
1 parent e1c9fd4 commit bbcb23e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lua/acf/shared/guns/semiauto.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
--define the class
ACF_defineGunClass("SA", {
type = "Gun",
spread = 0.14,
spread = 0.131,
name = "Semiautomatic Cannon",
desc = ACFTranslation.GunClasses[12],
muzzleflash = "30mm_muzzleflash_noscale",
Expand Down
12 changes: 6 additions & 6 deletions lua/entities/acf_gun/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -697,12 +697,12 @@ function ENT:Think()
Wire_TriggerOutput(self, "Shots Left", 1)
end

self:SetNWString("GunType",self.Id)
self:SetNWString("GunType", self.Id)
self:SetNWInt("Ammo",Ammo)
self:SetNWString("Type",self.BulletData.Type)
self:SetNWFloat("Mass",self.BulletData.ProjMass * 100)
self:SetNWFloat("Propellant",self.BulletData.PropMass * 1000)
self:SetNWFloat("FireRate",self.RateOfFire)
self:SetNWString("Type", self.BulletData.Type)
self:SetNWFloat("Mass", self.BulletData.ProjMass * 100)
self:SetNWFloat("Propellant", self.BulletData.PropMass * 1000)
self:SetNWFloat("FireRate", self.RateOfFire)

self.LastSend = Time

Expand Down Expand Up @@ -739,7 +739,7 @@ function ENT:ReloadMag()
if ( (self.CurrentShot > 0) and self.IsUnderWeight and self.Ready and self.Legal ) then
if ( ACF.RoundTypes[self.BulletData.Type] ) then --Check if the roundtype loaded actually exists
self:LoadAmmo(self.MagReload, false)
self:EmitSound("weapons/357/357_reload4.wav",68,100)
self:EmitSound("weapons/357/357_reload4.wav", 68, 100)
self.CurrentShot = 0
Wire_TriggerOutput(self, "Ready", 0)
else
Expand Down

0 comments on commit bbcb23e

Please sign in to comment.