Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lua/autorun/acf_globals.lua
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ end


CreateConVar('sbox_max_acf_gun', 16)
CreateConVar('sbox_max_acf_rapidgun', 4) --Guns like RACs, MGs, and ACs
CreateConVar('sbox_max_acf_largegun', 4) --Guns with a caliber above 100mm
ACF.LargeCaliber = 10 --Gun caliber in CM to be considered a large caliber gun, 10cm = 100mm
CreateConVar('sbox_max_acf_smokelauncher', 10)
CreateConVar('sbox_max_acf_ammo', 32)
CreateConVar('sbox_max_acf_misc', 32)
Expand Down
14 changes: 14 additions & 0 deletions lua/entities/acf_gun.lua
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,13 @@ function MakeACF_Gun(Owner, Pos, Angle, Id)
if Lookup.gunclass == "SL" then
if not Owner:CheckLimit("_acf_smokelauncher") then return false end
else

if Lookup.gunclass == "RAC" or Lookup.gunclass == "MG" or Lookup.gunclass == "AC" then --Israpidfire?
if not Owner:CheckLimit("_acf_rapidgun") then return false end
elseif Lookup.caliber >= ACF.LargeCaliber then --IsBigGun?
if not Owner:CheckLimit("_acf_largegun") then return false end
end

if not Owner:CheckLimit("_acf_gun") then return false end
end

Expand Down Expand Up @@ -238,6 +245,13 @@ function MakeACF_Gun(Owner, Pos, Angle, Id)
if Lookup.gunclass == "SL" then
Owner:AddCount("_acf_smokelauncher", Gun)
else

if Lookup.gunclass == "RAC" or Lookup.gunclass == "MG" or Lookup.gunclass == "AC" then
Owner:AddCount("_acf_rapidgun", Gun)
elseif Lookup.caliber >= ACF.LargeCaliber then
Owner:AddCount("_acf_largegun", Gun)
end

Owner:AddCount("_acf_gun", Gun)
end

Expand Down
Binary file modified particles/rocket_motor.pcf
Binary file not shown.