Sniper297
05-01-19, 06:00 PM
Rehash of this old thread;
http://www.subsim.com/radioroom/showthread.php?t=211849
Trying to remember how di do dat, and adding twin mount 40s to a sub. Never felt the need for that, single 40s will usually chew up merchies fast enough, but somebody asked so I tinkered with this.
First problem I found is there IS a Upack40mmTwin in UpgradePacks.upc, but near as I can tell it's not used in any US sub, at least in 1.4. Has to be edited;
[UpgradePack 11]
ID= Upack40mmTwin
NameDisplayable= Twin 40mm AA Gun
FunctionalType= UpFTypeWeaponFlak
UpgradePackSlotType= USDeckGun
Type=NULL
UnitUpgradePackIntervalOptionCurrent= NULL, NULL, 0
UnitUpgradePackIntervalOptions1= 1941-05-08, NULL, 1000
IDLinkUpgradePackElements= 40mmTwinUS
Has to be changed to;
[UpgradePack 11]
ID= Upack40mmTwin
NameDisplayable= Twin 40mm AA Gun
FunctionalType= UpFTypeWeaponFlak
UpgradePackSlotType= USHeavyAA
Type=NULL
UnitUpgradePackIntervalOptionCurrent= NULL, NULL, 0
UnitUpgradePackIntervalOptions1= 1941-05-08, NULL, 1000
IDLinkUpgradePackElements= 40mmTwinUS
Then the UnitParts1Gato.upc has to be edited, FIND, REPLACE Upack40mmSingle with Upack40mmTwin.
Then the \Submarine\NSS_SubType\NSS_SubType.upc has to be edited;
[UserPlayerUnit 1.UnitPartSlot 1]
ID=GatoConningSlot
NameDisplayable=Conning Tower Mount
Type=NULL
AcceptedTypes=GatoConningTower
IDLinkUnitPartIntervalDefault1= NULL, 1942-09-31, GatoConningEarlyWar ;Only UnitParts of this type could be placed here
IDLinkUnitPartIntervalDefault2= 1942-10-01, 1943-03-31, GatoConningMedWar
IDLinkUnitPartIntervalDefault3= 1943-04-01, 1944-10-31, GatoConningLateWar
IDLinkUnitPartIntervalDefault4= 1944-11-01, NULL, GatoConningElite
ExternalNodeName3D= Z01
For other subtypes copy the ConningLateWar and paste to overwrite early and medwar, with GATO there's an "Elite" so use that;
[UserPlayerUnit 1.UnitPartSlot 1]
ID=GatoConningSlot
NameDisplayable=Conning Tower Mount
Type=NULL
AcceptedTypes=GatoConningTower
IDLinkUnitPartIntervalDefault1= NULL, 1942-09-31, GatoConningElite ;Only UnitParts of this type could be placed here
IDLinkUnitPartIntervalDefault2= 1942-10-01, 1943-03-31, GatoConningElite
IDLinkUnitPartIntervalDefault3= 1943-04-01, 1944-10-31,GatoConningElite
IDLinkUnitPartIntervalDefault4= 1944-11-01, NULL, GatoConningElite
ExternalNodeName3D= Z01
That gives you the Elite conning tower instead of the bathtub or half chopped throughout the war.
So I got the option, here she is;
https://scontent-msp1-1.xx.fbcdn.net/v/t1.0-9/58933376_2374543975923202_4455662904674353152_o.jp g?_nc_cat=111&_nc_ht=scontent-msp1-1.xx&oh=8789bdc12320d4cc022aa0d69f3e835a&oe=5D6AB7B1
Looks okay, fired the aft twin 40s and only the right barrel recoils, left doesn't do anything I can see. Shifted to the forward 40s and the program crashed. Either I missed a file or I'm not using enough rum. :arrgh!:
Anyone wants to play with this I would highly recommend you make backup copies of the \UPCData and \Submarine folder before you start, then you can easily restore if it blows up.
:/\\x:
http://www.subsim.com/radioroom/showthread.php?t=211849
Trying to remember how di do dat, and adding twin mount 40s to a sub. Never felt the need for that, single 40s will usually chew up merchies fast enough, but somebody asked so I tinkered with this.
First problem I found is there IS a Upack40mmTwin in UpgradePacks.upc, but near as I can tell it's not used in any US sub, at least in 1.4. Has to be edited;
[UpgradePack 11]
ID= Upack40mmTwin
NameDisplayable= Twin 40mm AA Gun
FunctionalType= UpFTypeWeaponFlak
UpgradePackSlotType= USDeckGun
Type=NULL
UnitUpgradePackIntervalOptionCurrent= NULL, NULL, 0
UnitUpgradePackIntervalOptions1= 1941-05-08, NULL, 1000
IDLinkUpgradePackElements= 40mmTwinUS
Has to be changed to;
[UpgradePack 11]
ID= Upack40mmTwin
NameDisplayable= Twin 40mm AA Gun
FunctionalType= UpFTypeWeaponFlak
UpgradePackSlotType= USHeavyAA
Type=NULL
UnitUpgradePackIntervalOptionCurrent= NULL, NULL, 0
UnitUpgradePackIntervalOptions1= 1941-05-08, NULL, 1000
IDLinkUpgradePackElements= 40mmTwinUS
Then the UnitParts1Gato.upc has to be edited, FIND, REPLACE Upack40mmSingle with Upack40mmTwin.
Then the \Submarine\NSS_SubType\NSS_SubType.upc has to be edited;
[UserPlayerUnit 1.UnitPartSlot 1]
ID=GatoConningSlot
NameDisplayable=Conning Tower Mount
Type=NULL
AcceptedTypes=GatoConningTower
IDLinkUnitPartIntervalDefault1= NULL, 1942-09-31, GatoConningEarlyWar ;Only UnitParts of this type could be placed here
IDLinkUnitPartIntervalDefault2= 1942-10-01, 1943-03-31, GatoConningMedWar
IDLinkUnitPartIntervalDefault3= 1943-04-01, 1944-10-31, GatoConningLateWar
IDLinkUnitPartIntervalDefault4= 1944-11-01, NULL, GatoConningElite
ExternalNodeName3D= Z01
For other subtypes copy the ConningLateWar and paste to overwrite early and medwar, with GATO there's an "Elite" so use that;
[UserPlayerUnit 1.UnitPartSlot 1]
ID=GatoConningSlot
NameDisplayable=Conning Tower Mount
Type=NULL
AcceptedTypes=GatoConningTower
IDLinkUnitPartIntervalDefault1= NULL, 1942-09-31, GatoConningElite ;Only UnitParts of this type could be placed here
IDLinkUnitPartIntervalDefault2= 1942-10-01, 1943-03-31, GatoConningElite
IDLinkUnitPartIntervalDefault3= 1943-04-01, 1944-10-31,GatoConningElite
IDLinkUnitPartIntervalDefault4= 1944-11-01, NULL, GatoConningElite
ExternalNodeName3D= Z01
That gives you the Elite conning tower instead of the bathtub or half chopped throughout the war.
So I got the option, here she is;
https://scontent-msp1-1.xx.fbcdn.net/v/t1.0-9/58933376_2374543975923202_4455662904674353152_o.jp g?_nc_cat=111&_nc_ht=scontent-msp1-1.xx&oh=8789bdc12320d4cc022aa0d69f3e835a&oe=5D6AB7B1
Looks okay, fired the aft twin 40s and only the right barrel recoils, left doesn't do anything I can see. Shifted to the forward 40s and the program crashed. Either I missed a file or I'm not using enough rum. :arrgh!:
Anyone wants to play with this I would highly recommend you make backup copies of the \UPCData and \Submarine folder before you start, then you can easily restore if it blows up.
:/\\x: