Skip to content

Commit

Permalink
Merge pull request coavins#71 from macinsight/63-add-model-shotgun_20g
Browse files Browse the repository at this point in the history
  • Loading branch information
coavins authored Nov 27, 2023
2 parents 4d6eea4 + b32d270 commit fa3ffb6
Show file tree
Hide file tree
Showing 5 changed files with 155 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,7 @@ CoavinsFirearms.AddOrReplaceModel(
'Revolver_38spc'
, { 'RevolverReceiver_38spc', 'RevolverCylinder_38spc' }
, 'RevolverReceiver_38spc')
CoavinsFirearms.AddOrReplaceModel(
'Shotgun_20g'
, { 'ShotgunReceiver_20g', 'ShotgunBarrel_20g' }
, 'ShotgunReceiver_20g')
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,29 @@ this.parts.RevolverCylinder_38spc = {}
this.parts.RevolverCylinder_38spc.CombinesWith = 'RevolverReceiver_38spc'
this.parts.RevolverCylinder_38spc.ConditionLowerChance = 3
this.parts.RevolverCylinder_38spc.ConditionMax = 20
this.parts.ShotgunReceiver_20g = {}
this.parts.ShotgunReceiver_20g.CombinesWith = 'ShotgunBarrel_20g'
this.parts.ShotgunReceiver_20g.Holds = { 'ShotgunForend_20g' }
this.parts.ShotgunReceiver_20g.ConditionLowerChance = 1
this.parts.ShotgunReceiver_20g.ConditionMax = 20
this.parts.ShotgunForend_20g = {}
this.parts.ShotgunForend_20g.InsertsInto = 'ShotgunReceiver_20g'
this.parts.ShotgunForend_20g.Holds = { 'ShotgunBoltCarrier_20g' }
this.parts.ShotgunForend_20g.ConditionLowerChance = 2
this.parts.ShotgunForend_20g.ConditionMax = 20
this.parts.ShotgunBoltCarrier_20g = {}
this.parts.ShotgunBoltCarrier_20g.InsertsInto = 'ShotgunForend_20g'
this.parts.ShotgunBoltCarrier_20g.Holds = { 'ShotgunBolt_20g' }
this.parts.ShotgunBoltCarrier_20g.ConditionLowerChance = 4
this.parts.ShotgunBoltCarrier_20g.ConditionMax = 20
this.parts.ShotgunBolt_20g = {}
this.parts.ShotgunBolt_20g.InsertsInto = 'ShotgunBoltCarrier_20g'
this.parts.ShotgunBolt_20g.ConditionLowerChance = 3
this.parts.ShotgunBolt_20g.ConditionMax = 20
this.parts.ShotgunBarrel_20g = {}
this.parts.ShotgunBarrel_20g.CombinesWith = 'ShotgunReceiver_20g'
this.parts.ShotgunBarrel_20g.ConditionLowerChance = 3
this.parts.ShotgunBarrel_20g.ConditionMax = 20

this.getPartModel = function(modelName)
return this.parts[modelName]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,4 +130,14 @@ ItemName_EN = {
ItemName_coavinsfirearms.RevolverReceiver_38spc_Short = "Frame (.38 SPC)",
ItemName_coavinsfirearms.RevolverCylinder_38spc = "Revolver Cylinder (.38 SPC)",
ItemName_coavinsfirearms.RevolverCylinder_38spc_Short = "Cylinder (.38 SPC)"
ItemName_coavinsfirearms.ShotgunReceiver_20g = "Shotgun Receiver (20g)",
ItemName_coavinsfirearms.ShotgunReceiver_20g_Short = "Receiver (20g)",
ItemName_coavinsfirearms.ShotgunForend_20g = "Shotgun Forend (20g)",
ItemName_coavinsfirearms.ShotgunForend_20g_Short = "Forend (20g)",
ItemName_coavinsfirearms.ShotgunBoltCarrier_20g = "Shotgun Bolt Carrier (20g)",
ItemName_coavinsfirearms.ShotgunBoltCarrier_20g_Short = "Bolt Carrier (20g)",
ItemName_coavinsfirearms.ShotgunBolt_20g = "Shotgun Bolt (20g)",
ItemName_coavinsfirearms.ShotgunBolt_20g_Short = "Bolt (20g)",
ItemName_coavinsfirearms.ShotgunBarrel_20g = "Shotgun Barrel (20g)",
ItemName_coavinsfirearms.ShotgunBarrel_20g_Short = "Barrel (20g)",
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
module coavinsfirearms {
imports {
Base
}

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

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

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

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

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

Fixer : DuctTape=1; Aiming=2,
Fixer : Scotchtape=2; Aiming=1,
}

fixing Fix ShotgunBoltCarrier_20g Welding
{
Require : ShotgunBoltCarrier_20g,
GlobalItem : BlowTorch=1,
ConditionModifier : 1.2,

Fixer : ScrapMetal; MetalWelding=1,
}

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

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

fixing Fix ShotgunBarrel_20g Welding
{
Require : ShotgunBarrel_20g,
GlobalItem : BlowTorch=4,
ConditionModifier : 1.2,

Fixer : SheetMetal; MetalWelding=7,
Fixer : SmallSheetMetal; MetalWelding=5,
Fixer : ScrapMetal; MetalWelding=3,
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
module coavinsfirearms {
imports {
Base
}

item ShotgunReceiver_20g {
DisplayName = Shotgun Receiver (20g),
DisplayCategory = FirearmPart,
Type = Normal,
Icon = ShotgunReceiver,
Weight = 2,
ConditionMax = 20,
WorldStaticModel = Paperbag_Ground,
}

item ShotgunForend_20g {
DisplayName = Shotgun Forend (20g),
DisplayCategory = FirearmPart,
Type = Normal,
Icon = ShotgunForend,
Weight = 0.5,
ConditionMax = 20,
WorldStaticModel = CarvingFork_Ground,
}

item ShotgunBoltCarrier_20g {
DisplayName = Shotgun Bolt Carrier (20g),
DisplayCategory = FirearmPart,
Type = Normal,
Icon = ShotgunBoltCarrier,
Weight = 0.3,
ConditionMax = 20,
WorldStaticModel = Staples_Ground,
}

item ShotgunBolt_20g {
DisplayName = Shotgun Bolt (20g),
DisplayCategory = FirearmPart,
Type = Normal,
Icon = ShotgunBolt,
Weight = 0.2,
ConditionMax = 20,
WorldStaticModel = Staples_Ground,
}

item ShotgunBarrel_20g {
DisplayName = Shotgun Barrel (20g),
DisplayCategory = FirearmPart,
Type = Normal,
Icon = ShotgunBarrel,
Weight = 1,
ConditionMax = 20,
WorldStaticModel = PlasticPipe,
}
}

0 comments on commit fa3ffb6

Please sign in to comment.