Skip to content

Commit

Permalink
Add .38spc (#12)
Browse files Browse the repository at this point in the history
Merging this fixes coavins#58
  • Loading branch information
macinsight authored Nov 26, 2023
2 parents 184aea4 + 465ca98 commit ab0e50a
Show file tree
Hide file tree
Showing 5 changed files with 74 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,7 @@ CoavinsFirearms.AddOrReplaceModel(
'Pistol_44cal'
, { 'PistolReceiver_44cal', 'PistolSlide_44cal'}
, 'PistolReceiver_44cal')
CoavinsFirearms.AddOrReplaceModel(
'Revolver_38spc'
, { 'RevolverReceiver_38spc', 'RevolverCylinder_38spc' }
, 'RevolverReceiver_38spc')
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,14 @@ 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.parts.RevolverReceiver_38spc = {}
this.parts.RevolverReceiver_38spc.CombinesWith = 'RevolverCylinder_38spc'
this.parts.RevolverReceiver_38spc.ConditionLowerChance = 1
this.parts.RevolverReceiver_38spc.ConditionMax = 20
this.parts.RevolverCylinder_38spc = {}
this.parts.RevolverCylinder_38spc.CombinesWith = 'RevolverReceiver_38spc'
this.parts.RevolverCylinder_38spc.ConditionLowerChance = 3
this.parts.RevolverCylinder_38spc.ConditionMax = 20

this.getPartModel = function(modelName)
return this.parts[modelName]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,8 @@ ItemName_EN = {
ItemName_coavinsfirearms.PistolSlide_44cal_Short = "Slide (.44cal)",
ItemName_coavinsfirearms.PistolBarrel_44cal = "Pistol Barrel (.44cal)",
ItemName_coavinsfirearms.PistolBarrel_44cal_Short = "Barrel (.44cal)",
ItemName_coavinsfirearms.RevolverReceiver_38spc = "Revolver Frame (.38 SPC)",
ItemName_coavinsfirearms.RevolverReceiver_38spc_Short = "Frame (.38 SPC)",
ItemName_coavinsfirearms.RevolverCylinder_38spc = "Revolver Cylinder (.38 SPC)",
ItemName_coavinsfirearms.RevolverCylinder_38spc_Short = "Cylinder (.38 SPC)"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
module coavinsfirearms {
imports {
Base
}

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

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

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

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

fixing Fix RevolverCylinder_38spc Welding
{
Require : RevolverCylinder_38spc,
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_38spc {
DisplayName = Revolver Frame (.38 SPC),
DisplayCategory = FirearmPart,
Type = Normal,
Icon = RevolverReceiver,
Weight = 0.5,
ConditionMax = 20,
WorldStaticModel = Paperbag_Ground,
}

item RevolverCylinder_38spc {
DisplayName = Revolver Cylinder (.38 SPC),
DisplayCategory = FirearmPart,
Type = Normal,
Icon = RevolverCylinder,
Weight = 0.3,
ConditionMax = 20,
WorldStaticModel = Paperclip,
}
}

0 comments on commit ab0e50a

Please sign in to comment.