Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply possible new syntax #28

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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
5 changes: 2 additions & 3 deletions lua/cfc_entity_stubber/cfc_m9k/cfc9k_bobs_gun_base.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
AddCSLuaFile()

cfcEntityStubber.registerStub( function()
local weapon = cfcEntityStubber.getWeapon( "bobs_gun_base" )
cfcEntityStubber.registerStub( "bobs_gun_base", function( weapon )
weapon.ShouldDoMoveSpread = false
end )
end )
61 changes: 24 additions & 37 deletions lua/cfc_entity_stubber/cfc_m9k/cfc9k_lmg_agile.lua
Original file line number Diff line number Diff line change
@@ -1,45 +1,32 @@
AddCSLuaFile()

cfcEntityStubber.registerStub( function()
local weapons = {
"m9k_m1918bar"
}

for _, weaponClass in ipairs( weapons ) do
local weapon = cfcEntityStubber.getWeapon( weaponClass )
weapon.Purpose = ""
weapon.CFC_Category = "LMG:Agile"
cfcEntityStubber.registerStub( "m9k_m1918bar", function( weapon )
weapon.Purpose = ""
weapon.CFC_Category = "LMG:Agile"

weapon.ShouldDoMoveSpread = true
weapon.Primary.RPM = 500
weapon.Primary.ClipSize = 20
weapon.Primary.KickUp = 1
weapon.Primary.KickDown = 0
weapon.Primary.KickHorizontal = 0.32
weapon.Primary.Damage = 40
weapon.Primary.Spread = 0.05
weapon.Primary.IronAccuracy = 0.007
end
weapon.ShouldDoMoveSpread = true
weapon.Primary.RPM = 500
weapon.Primary.ClipSize = 20
weapon.Primary.KickUp = 1
weapon.Primary.KickDown = 0
weapon.Primary.KickHorizontal = 0.32
weapon.Primary.Damage = 40
weapon.Primary.Spread = 0.05
weapon.Primary.IronAccuracy = 0.007
end )

cfcEntityStubber.registerStub( function()
local weapons = {
"m9k_fg42"
}
cfcEntityStubber.registerStub( "m9k_fg42", function( weapon )
weapon.Purpose = ""
weapon.CFC_Category = "LMG:Agile"

for _, weaponClass in ipairs( weapons ) do
local weapon = cfcEntityStubber.getWeapon( weaponClass )
weapon.Purpose = ""
weapon.CFC_Category = "LMG:Agile"

weapon.ShouldDoMoveSpread = true
weapon.Primary.RPM = 525
weapon.Primary.ClipSize = 20
weapon.Primary.KickUp = 1
weapon.Primary.KickDown = 0
weapon.Primary.KickHorizontal = 0.32
weapon.Primary.Damage = 40
weapon.Primary.Spread = 0.053
weapon.Primary.IronAccuracy = 0.0073
end
weapon.ShouldDoMoveSpread = true
weapon.Primary.RPM = 525
weapon.Primary.ClipSize = 20
weapon.Primary.KickUp = 1
weapon.Primary.KickDown = 0
weapon.Primary.KickHorizontal = 0.32
weapon.Primary.Damage = 40
weapon.Primary.Spread = 0.053
weapon.Primary.IronAccuracy = 0.0073
end )
70 changes: 28 additions & 42 deletions lua/cfc_entity_stubber/cfc_m9k/cfc9k_lmg_base.lua
Original file line number Diff line number Diff line change
@@ -1,49 +1,35 @@
AddCSLuaFile()

cfcEntityStubber.registerStub( function()
local weapons = {
"m9k_m249lmg"
}
cfcEntityStubber.registerStub( "m9k_m249lmg", function( weapon )
weapon.Purpose = ""
weapon.CFC_Category = "LMG:Base"

for _, weaponClass in ipairs( weapons ) do
local weapon = cfcEntityStubber.getWeapon( weaponClass )
weapon.Purpose = ""
weapon.CFC_Category = "LMG:Base"

weapon.ShouldDoMoveSpread = true
weapon.Primary.RPM = 700
weapon.Primary.ClipSize = 100
weapon.Primary.KickUp = 1
weapon.Primary.KickDown = 0
weapon.Primary.KickHorizontal = 0.5
weapon.Primary.Damage = 28
weapon.Primary.Spread = 0.05
weapon.Primary.IronAccuracy = 0.009
weapon.Primary.Ammo = "AirboatGun"
weapon.Primary.DefaultClip = 1000
end
weapon.ShouldDoMoveSpread = true
weapon.Primary.RPM = 700
weapon.Primary.ClipSize = 100
weapon.Primary.KickUp = 1
weapon.Primary.KickDown = 0
weapon.Primary.KickHorizontal = 0.5
weapon.Primary.Damage = 28
weapon.Primary.Spread = 0.05
weapon.Primary.IronAccuracy = 0.009
weapon.Primary.Ammo = "AirboatGun"
weapon.Primary.DefaultClip = 1000
end )

cfcEntityStubber.registerStub( function()
local weapons = {
"m9k_ares_shrike"
}

for _, weaponClass in ipairs( weapons ) do
local weapon = cfcEntityStubber.getWeapon( weaponClass )
weapon.Purpose = ""
weapon.CFC_Category = "LMG:Base"
cfcEntityStubber.registerStub( "m9k_ares_shrike", function( weapon )
weapon.Purpose = ""
weapon.CFC_Category = "LMG:Base"

weapon.ShouldDoMoveSpread = true
weapon.Primary.RPM = 700
weapon.Primary.ClipSize = 100
weapon.Primary.KickUp = 0.95
weapon.Primary.KickDown = 0
weapon.Primary.KickHorizontal = 0.45
weapon.Primary.Damage = 28
weapon.Primary.Spread = 0.048
weapon.Primary.IronAccuracy = 0.0093
weapon.Primary.Ammo = "AirboatGun"
weapon.Primary.DefaultClip = 1000
end
weapon.ShouldDoMoveSpread = true
weapon.Primary.RPM = 700
weapon.Primary.ClipSize = 100
weapon.Primary.KickUp = 0.95
weapon.Primary.KickDown = 0
weapon.Primary.KickHorizontal = 0.45
weapon.Primary.Damage = 28
weapon.Primary.Spread = 0.048
weapon.Primary.IronAccuracy = 0.0093
weapon.Primary.Ammo = "AirboatGun"
weapon.Primary.DefaultClip = 1000
end )
72 changes: 29 additions & 43 deletions lua/cfc_entity_stubber/cfc_m9k/cfc9k_lmg_heavy.lua
Original file line number Diff line number Diff line change
@@ -1,49 +1,35 @@
AddCSLuaFile()

cfcEntityStubber.registerStub( function()
local weapons = {
"m9k_m60"
}
cfcEntityStubber.registerStub( "m9k_m60", function( weapon )
weapon.Purpose = ""
weapon.CFC_Category = "LMG:Heavy"

for _, weaponClass in ipairs( weapons ) do
local weapon = cfcEntityStubber.getWeapon( weaponClass )
weapon.Purpose = ""
weapon.CFC_Category = "LMG:Heavy"

weapon.ShouldDoMoveSpread = true
weapon.Primary.RPM = 550
weapon.Primary.ClipSize = 100
weapon.Primary.KickUp = 1.3
weapon.Primary.KickDown = 0
weapon.Primary.KickHorizontal = 0.55
weapon.Primary.Damage = 40
weapon.Primary.Spread = 0.065
weapon.Primary.IronAccuracy = 0.005
weapon.Primary.Ammo = "AirboatGun"
weapon.ACF_DamageMult = 1.5
end
weapon.ShouldDoMoveSpread = true
weapon.Primary.RPM = 550
weapon.Primary.ClipSize = 100
weapon.Primary.KickUp = 1.3
weapon.Primary.KickDown = 0
weapon.Primary.KickHorizontal = 0.55
weapon.Primary.Damage = 40
weapon.Primary.Spread = 0.065
weapon.Primary.IronAccuracy = 0.005
weapon.Primary.Ammo = "AirboatGun"
weapon.ACF_DamageMult = 1.5
end )

cfcEntityStubber.registerStub( function()
local weapons = {
"m9k_pkm"
}

for _, weaponClass in ipairs( weapons ) do
local weapon = cfcEntityStubber.getWeapon( weaponClass )
weapon.Purpose = ""
weapon.CFC_Category = "LMG:Heavy"
cfcEntityStubber.registerStub( "m9k_pkm", function( weapon )
weapon.Purpose = ""
weapon.CFC_Category = "LMG:Heavy"

weapon.ShouldDoMoveSpread = true
weapon.Primary.RPM = 550
weapon.Primary.ClipSize = 100
weapon.Primary.KickUp = 1.3
weapon.Primary.KickDown = 0
weapon.Primary.KickHorizontal = 0.55
weapon.Primary.Damage = 40
weapon.Primary.Spread = 0.065
weapon.Primary.IronAccuracy = 0.005
weapon.Primary.Ammo = "AirboatGun"
weapon.ACF_DamageMult = 1.5
end
end )
weapon.ShouldDoMoveSpread = true
weapon.Primary.RPM = 550
weapon.Primary.ClipSize = 100
weapon.Primary.KickUp = 1.3
weapon.Primary.KickDown = 0
weapon.Primary.KickHorizontal = 0.55
weapon.Primary.Damage = 40
weapon.Primary.Spread = 0.065
weapon.Primary.IronAccuracy = 0.005
weapon.Primary.Ammo = "AirboatGun"
weapon.ACF_DamageMult = 1.5
end )
33 changes: 13 additions & 20 deletions lua/cfc_entity_stubber/cfc_m9k/cfc9k_lmg_suppression.lua
Original file line number Diff line number Diff line change
@@ -1,25 +1,18 @@
AddCSLuaFile()

cfcEntityStubber.registerStub( function()
local weapons = {
"m9k_minigun"
}
cfcEntityStubber.registerStub( "m9k_minigun", function( weapon )
weapon.Purpose = ""
weapon.CFC_Category = "LMG:Suppression"

for _, weaponClass in ipairs( weapons ) do
local weapon = cfcEntityStubber.getWeapon( weaponClass )
weapon.Purpose = ""
weapon.CFC_Category = "LMG:Suppression"
weapon.Primary.Sound = "BlackVulcan.Single"

weapon.Primary.Sound = "BlackVulcan.Single"

weapon.ShouldDoMoveSpread = true
weapon.Primary.RPM = 725
weapon.Primary.ClipSize = 150
weapon.Primary.KickUp = 0.9
weapon.Primary.KickDown = 0
weapon.Primary.KickHorizontal = 0.4
weapon.Primary.NumShots = 2
weapon.Primary.Damage = 20
weapon.Primary.Spread = 0.03
end
weapon.ShouldDoMoveSpread = true
weapon.Primary.RPM = 725
weapon.Primary.ClipSize = 150
weapon.Primary.KickUp = 0.9
weapon.Primary.KickDown = 0
weapon.Primary.KickHorizontal = 0.4
weapon.Primary.NumShots = 2
weapon.Primary.Damage = 20
weapon.Primary.Spread = 0.03
end )
72 changes: 29 additions & 43 deletions lua/cfc_entity_stubber/cfc_m9k/cfc9k_pistol_base.lua
Original file line number Diff line number Diff line change
@@ -1,49 +1,35 @@
AddCSLuaFile()

cfcEntityStubber.registerStub( function()
local weapons = {
"m9k_m92beretta"
}
cfcEntityStubber.registerStub( "m9k_m92beretta", function( weapon )
weapon.Purpose = "A basic, all-around pistol"
weapon.CFC_Category = "Pistol:Base"

for _, weaponClass in ipairs( weapons ) do
local weapon = cfcEntityStubber.getWeapon( weaponClass )
weapon.Purpose = "A basic, all-around pistol"
weapon.CFC_Category = "Pistol:Base"

weapon.Primary.RPM = 525
weapon.Primary.ClipSize = 12
weapon.Primary.KickUp = 0.98
weapon.Primary.KickDown = 0
weapon.Primary.KickHorizontal = 0.2
weapon.Primary.Automatic = false
weapon.Primary.Ammo = "pistol"
weapon.Primary.NumShots = 1
weapon.Primary.Damage = 28
weapon.Primary.Spread = 0.018
weapon.Primary.IronAccuracy = 0.0012
end
weapon.Primary.RPM = 525
weapon.Primary.ClipSize = 12
weapon.Primary.KickUp = 0.98
weapon.Primary.KickDown = 0
weapon.Primary.KickHorizontal = 0.2
weapon.Primary.Automatic = false
weapon.Primary.Ammo = "pistol"
weapon.Primary.NumShots = 1
weapon.Primary.Damage = 28
weapon.Primary.Spread = 0.018
weapon.Primary.IronAccuracy = 0.0012
end )

cfcEntityStubber.registerStub( function()
local weapons = {
"m9k_luger"
}

for _, weaponClass in ipairs( weapons ) do
local weapon = cfcEntityStubber.getWeapon( weaponClass )
weapon.Purpose = "A basic, all-around pistol"
weapon.CFC_Category = "Pistol:Base"
cfcEntityStubber.registerStub( "m9k_luger", function( weapon )
weapon.Purpose = "A basic, all-around pistol"
weapon.CFC_Category = "Pistol:Base"

weapon.Primary.RPM = 500
weapon.Primary.ClipSize = 12
weapon.Primary.KickUp = 0.98
weapon.Primary.KickDown = 0
weapon.Primary.KickHorizontal = 0.2
weapon.Primary.Automatic = false
weapon.Primary.Ammo = "pistol"
weapon.Primary.NumShots = 1
weapon.Primary.Damage = 28
weapon.Primary.Spread = 0.02
weapon.Primary.IronAccuracy = 0.001
end
end )
weapon.Primary.RPM = 500
weapon.Primary.ClipSize = 12
weapon.Primary.KickUp = 0.98
weapon.Primary.KickDown = 0
weapon.Primary.KickHorizontal = 0.2
weapon.Primary.Automatic = false
weapon.Primary.Ammo = "pistol"
weapon.Primary.NumShots = 1
weapon.Primary.Damage = 28
weapon.Primary.Spread = 0.02
weapon.Primary.IronAccuracy = 0.001
end )
29 changes: 11 additions & 18 deletions lua/cfc_entity_stubber/cfc_m9k/cfc9k_pistol_handcannon.lua
Original file line number Diff line number Diff line change
@@ -1,22 +1,15 @@
AddCSLuaFile()

cfcEntityStubber.registerStub( function()
local weapons = {
"m9k_model500"
}
cfcEntityStubber.registerStub( "m9k_model500", function( weapon )
weapon.Purpose = ""
weapon.CFC_Category = "Pistol:Handcannon"

for _, weaponClass in ipairs( weapons ) do
local weapon = cfcEntityStubber.getWeapon( weaponClass )
weapon.Purpose = ""
weapon.CFC_Category = "Pistol:Handcannon"

weapon.Primary.RPM = 45
weapon.Primary.ClipSize = 5
weapon.Primary.KickUp = 7
weapon.Primary.KickDown = 3
weapon.Primary.KickHorizontal = 2
weapon.Primary.Damage = 90
weapon.Primary.Spread = 0.04
weapon.Primary.IronAccuracy = 0.0003
end
weapon.Primary.RPM = 45
weapon.Primary.ClipSize = 5
weapon.Primary.KickUp = 7
weapon.Primary.KickDown = 3
weapon.Primary.KickHorizontal = 2
weapon.Primary.Damage = 90
weapon.Primary.Spread = 0.04
weapon.Primary.IronAccuracy = 0.0003
end )
Loading