Skip to content

Commit

Permalink
Merge pull request coavins#57 from macinsight/develop
Browse files Browse the repository at this point in the history
Add .357 Revolver and .44 Pistol
  • Loading branch information
coavins authored Nov 26, 2023
2 parents 6c995be + 0e562de commit 73449b0
Show file tree
Hide file tree
Showing 8 changed files with 187 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,11 @@ CoavinsFirearms.AddOrReplaceModel(
'Rifle_556'
, { 'RifleUpperReceiver_556', 'RifleLowerReceiver_556' }
, 'RifleLowerReceiver_556')
CoavinsFirearms.AddOrReplaceModel(
'Revolver_357'
, { 'RevolverReceiver_357', 'RevolverCylinder_357' }
, 'RevolverReceiver_357')
CoavinsFirearms.AddOrReplaceModel(
'Pistol_44cal'
, { 'PistolReceiver_44cal', 'PistolSlide_44cal'}
, 'PistolReceiver_44cal')
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,27 @@ this.parts.RifleBolt_556 = {}
this.parts.RifleBolt_556.InsertsInto = 'RifleBoltCarrier_556'
this.parts.RifleBolt_556.ConditionLowerChance = 2
this.parts.RifleBolt_556.ConditionMax = 20
this.parts.RevolverReceiver_357 = {}
this.parts.RevolverReceiver_357.CombinesWith = 'RevolverCylinder_357'
this.parts.RevolverReceiver_357.ConditionLowerChance = 1
this.parts.RevolverReceiver_357.ConditionMax = 20
this.parts.RevolverCylinder_357 = {}
this.parts.RevolverCylinder_357.CombinesWith = 'RevolverReceiver_357'
this.parts.RevolverCylinder_357.ConditionLowerChance = 3
this.parts.RevolverCylinder_357.ConditionMax = 20
this.parts.PistolReceiver_44cal = {}
this.parts.PistolReceiver_44cal.CombinesWith = 'PistolSlide_44cal'
this.parts.PistolReceiver_44cal.ConditionLowerChance = 1 -- 100%
this.parts.PistolReceiver_44cal.ConditionMax = 20
this.parts.PistolSlide_44cal = {}
this.parts.PistolSlide_44cal.CombinesWith = 'PistolReceiver_44cal'
this.parts.PistolSlide_44cal.Holds = { 'PistolBarrel_44cal' }
this.parts.PistolSlide_44cal.ConditionLowerChance = 2 -- 1/2
this.parts.PistolSlide_44cal.ConditionMax = 20
this.parts.PistolBarrel_44cal = {}
this.parts.PistolBarrel_44cal.InsertsInto = 'PistolSlide_44cal'
this.parts.PistolBarrel_44cal.ConditionLowerChance = 3 -- 1/3
this.parts.PistolBarrel_44cal.ConditionMax = 20

this.getPartModel = function(modelName)
return this.parts[modelName]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,14 @@ ItemName_EN = {
ItemName_coavinsfirearms.RifleFiringPin_556_Short = "Firing Pin (5.56)",
ItemName_coavinsfirearms.RifleBolt_556 = "Rifle Bolt (5.56)",
ItemName_coavinsfirearms.RifleBolt_556_Short = "Bolt (5.56)",
ItemName_coavinsfirearms.RevolverReceiver_357 = "Revolver Frame (.357 MAG)",
ItemName_coavinsfirearms.RevolverReceiver_357_Short = "Frame (.357 MAG)",
ItemName_coavinsfirearms.RevolverCylinder_357 = "Revolver Cylinder (.357 MAG)",
ItemName_coavinsfirearms.RevolverCylinder_357_Short = "Cylinder (.357 MAG)"
ItemName_coavinsfirearms.PistolReceiver_44cal = "Pistol Frame (.44cal)",
ItemName_coavinsfirearms.PistolReceiver_44cal_Short = "Frame (.44cal)",
ItemName_coavinsfirearms.PistolSlide_44cal = "Pistol Slide (.44cal)",
ItemName_coavinsfirearms.PistolSlide_44cal_Short = "Slide (.44cal)",
ItemName_coavinsfirearms.PistolBarrel_44cal = "Pistol Barrel (.44cal)",
ItemName_coavinsfirearms.PistolBarrel_44cal_Short = "Barrel (.44cal)",
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
module coavinsfirearms {
imports {
Base
}

fixing Fix PistolReceiver_44cal Welding
{
Require : PistolReceiver_44cal,
GlobalItem : BlowTorch=2,
ConditionModifier : 1.2,

Fixer : SmallSheetMetal; MetalWelding=3,
Fixer : ScrapMetal; MetalWelding=1,
}

fixing Fix PistolReceiver_44cal
{
Require : PistolReceiver_44cal,
ConditionModifier : 1,

Fixer : DuctTape=2; Aiming=4,
Fixer : Scotchtape=3; Aiming=2,
}

fixing Fix PistolSlide_44cal Welding
{
Require : PistolSlide_44cal,
GlobalItem : BlowTorch=2,
ConditionModifier : 1.2,

Fixer : SmallSheetMetal; MetalWelding=3,
Fixer : ScrapMetal; MetalWelding=1,
}

fixing Fix PistolBarrel_44cal Welding
{
Require : PistolBarrel_44cal,
GlobalItem : BlowTorch=5,
ConditionModifier : 1.2,

Fixer : SmallSheetMetal=2; MetalWelding=8,
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
module coavinsfirearms {
imports {
Base
}

fixing Fix RevolverReceiver_357 Welding
{
Require : RevolverReceiver_357,
GlobalItem : BlowTorch=2,
ConditionModifier : 1.2,

Fixer : SmallSheetMetal; MetalWelding=3,
Fixer : ScrapMetal; MetalWelding=1,
}

fixing Fix RevolverReceiver_357
{
Require : RevolverReceiver_357,
ConditionModifier : 1,

Fixer : DuctTape=2; Aiming=4,
Fixer : Scotchtape=3; Aiming=2,
}

fixing Fix RevolverCylinder_357 Welding
{
Require : RevolverCylinder_357,
GlobalItem : BlowTorch=3,
ConditionModifier : 1.2,

Fixer : SmallSheetMetal=2; MetalWelding=6,
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
module coavinsfirearms {
imports {
Base
}

item RevolverReceiver_357 {
DisplayName = Revolver Frame (.357),
DisplayCategory = FirearmPart,
Type = Normal,
Icon = RevolverReceiver,
Weight = 0.5,
ConditionMax = 20,
WorldStaticModel = Paperbag_Ground,
}

item RevolverCylinder_357 {
DisplayName = Revolver Cylinder (.357),
DisplayCategory = FirearmPart,
Type = Normal,
Icon = RevolverCylinder,
Weight = 0.3,
ConditionMax = 20,
WorldStaticModel = Paperclip,
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
module coavinsfirearms {
imports {
Base
}

item PistolReceiver_44cal {
DisplayName = Pistol Frame (.44 Cal),
DisplayCategory = FirearmPart,
Type = Normal,
Icon = PistolReceiver,
Weight = 0.4,
ConditionMax = 20,
WorldStaticModel = Paperbag_Ground,
}

item PistolSlide_44cal {
DisplayName = Pistol Slide (.44 Cal),
DisplayCategory = FirearmPart,
Type = Normal,
Icon = PistolSlide,
Weight = 0.3,
ConditionMax = 20,
WorldStaticModel = Paperclip,
}

item PistolBarrel_44cal {
DisplayName = Pistol Barrel (.44 Cal),
DisplayCategory = FirearmPart,
Type = Normal,
Icon = PistolBarrel,
Weight = 0.3,
ConditionMax = 20,
WorldStaticModel = Razor_Ground,
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@
-- ZIP22

-- 44_CAL.txt
-- M29_44
-- M29_44Carbine
-- Automag
-- DEagle
CoavinsFirearms.Include('M29_44','Pistol_44cal')
CoavinsFirearms.Include('M29_44Carbine','Pistol_44cal')
CoavinsFirearms.Include('Automag','Pistol_44cal')
CoavinsFirearms.Include('DEagle','Pistol_44cal')

-- 50_BMG.txt
-- BOAR
Expand All @@ -67,19 +67,19 @@

-- 357 COMBO CALIBER.txt
CoavinsFirearms.Include('Base.GP100_2', 'GenericRevolver')
CoavinsFirearms.Include('Base.GP100_2_357', 'GenericRevolver')
CoavinsFirearms.Include('Base.GP100_2_357', 'Revolver_357')
CoavinsFirearms.Include('Base.GP100_4', 'GenericRevolver')
CoavinsFirearms.Include('Base.GP100_4_357', 'GenericRevolver')
CoavinsFirearms.Include('Base.GP100_4_357', 'Revolver_357')
CoavinsFirearms.Include('Base.GP100_6', 'GenericRevolver')
CoavinsFirearms.Include('Base.GP100_6_357', 'GenericRevolver')
CoavinsFirearms.Include('Base.GP100_6_357', 'Revolver_357')
CoavinsFirearms.Include('Base.K6S', 'GenericRevolver')
CoavinsFirearms.Include('Base.K6S_357', 'GenericRevolver')
-- Marlin_1894
-- Marlin_1894_357
CoavinsFirearms.Include('Base.K6S_357', 'Revolver_357')
-- Marlin_189
CoavinsFirearms.Include('Marlin_1894_357', 'Revolver_357')
CoavinsFirearms.Include('Base.Rhino_60DS', 'GenericRevolver')
CoavinsFirearms.Include('Base.Rhino_60DS_357', 'GenericRevolver')
CoavinsFirearms.Include('Base.Rhino_60DS_357', 'Revolver_357')
CoavinsFirearms.Include('Base.SW_327', 'GenericRevolver')
CoavinsFirearms.Include('Base.SW_327_357', 'GenericRevolver')
CoavinsFirearms.Include('Base.SW_327_357', 'Revolver_357')

-- 1911.txt
CoavinsFirearms.Include('Base.AMT1911', 'GenericPistol')
Expand Down

0 comments on commit 73449b0

Please sign in to comment.