SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   SH4 Mods Workshop (https://www.subsim.com/radioroom/forumdisplay.php?f=219)
-   -   [TEC] Flak Happy (https://www.subsim.com/radioroom/showthread.php?t=240965)

Sniper297 05-01-19 06:00 PM

Flak Happy
 
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...5a&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:

KaleunMarco 05-01-19 06:39 PM

Quote:

Originally Posted by Sniper297 (Post 2606759)

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:


she looks wicked!!!
i hope you get those babies to work.
good luck.
:salute:

Sniper297 05-01-19 07:01 PM

Well, somebody else will have to tweak it and make the mod, since the twin 40s don't really light my fire. That's why I'm posting my findings, whoever wants it can create it. Latest mad scientist experiment I started a new career, replaced the forward twin 40 with a single mount (previous hacks gave the GATO twin 40s fore and aft as a default starting configuration) and that works without crashing. Studying the twin 40, it looks to me like they created a single barrel that has an 8 round clip instead of 4 rounds, doubled the rate of fire for the one gun, and the other has no animation because it's nothing more than a dummy barrel. I'm using a tracer mod;

http://www.subsim.com/radioroom/down...do=file&id=666

And only the right side barrel has a muzzle flash and tracer stream - at double the rate of the single. Lazy swabs. :O:

Probably a more important project to most people would be doing something with the 5 inch 25s fore and aft, to change the player controlled gun to the forward one. Better still rig it to use any gun in both slots and a switch like the AA guns have to let the player control either one. Chief Gunners Mate? :hmmm: AI gun crews couldn't hit the YAMATO from the inside with the hatches shut, bust them scurvy lubbers down to toilet cleaner 3rd class. :arrgh!:

thangba202 05-02-19 06:30 AM

Animation - .dat .sim file edit needed
 
Hi,

You'll probably need to check your twin 40mm .dat and sim file and work around the animation and 3d. Since it might be an incomplete project, the creators probably forgot to clone the animation of 1 barrels to the other.


All times are GMT -5. The time now is 10:32 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 1995- 2024 Subsim®
"Subsim" is a registered trademark, all rights reserved.