Unturned

Unturned

Not enough ratings
Torpedo - Configuration guide and tips
By Maikee Maous
This guide is for customising and configuring your own version of the torpedo, if the example setup doesn't meet your needs.

Subscribe to the Torpedo - Dependency mod here:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2105822973
   
Award
Favorite
Favorited
Unfavorite
Step 2: Creating your torpedo .dat file
Since you will not be able to access the individual .unity3d files, there is another approach to accessing the mod, taking a look at the Torpedo_1 magazine from Torpedo - Examples



Master_Bundle_Override torpedo.masterbundle Bundle_Override_Path /Items/Magazines/TorpB
Using Master_Bundle_Override and Bundle_Override_Path, you can use references of other masterbundles to build your own version with your own spawn ID/damage/craft blueprints.

For what torpedo variants that are available, scroll all the way down to the Appendix.

If you are still unsure after looking at Torpedo - Examples below are some of the official guides on masterbundles:

GitHub - Asset Bundles
https://github.com/SmartlyDressedGames/U3-Docs/blob/master/AssetBundles.md

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1624005178
Cobra_Jam in the game is also configured using this approach:
// Master_Bundle_Override isn't required in this case, but just as an example: Master_Bundle_Override core.masterbundle // Path relative to core.masterbundle: Bundle_Override_Path /Items/Guns/Cobra
Step 3: Adding Torpedo - Dependencies as a required mod
After uploading your mod to the workshop, look for "Add/Remove Required Items"


Look for "Torpedo - Dependencies" and select it


Select "Save and Continue" after item marked as required is added


If configured correctly, the dependencies mod should appear as a required mod
Tips on configuring the torpedoes
Changing Ballistic_Force does not affect the speed of the torpedo, but you can use it to change how far the torpedo is launched before it hits the water
  • The surface dropped variants travel between 90-110kph in the water
  • The aerial dropped variants travel between 65-85kph in the water
The explosion Range on the torpedo launcher is set to 45 for the surface variant and 27 for the aerial variant. Unturned calculates splash damage based on the distance from the origin/center of the vehicle.

In this example, the Radius is current set to 27 and the yellow point is the destroyer's origin. Although the crew within the blast radius will get hit in this shot, the torpedo will deal no damage to the ship!




For an approximation, it is normally where the UI shows the label on where to enter the vehicle from







  • For large ships such as destroyers and battleships, you will need to set a large radius for the torpedoes to efficiently cause damage, but setting it too large may kill the bomber crew that gets too close to the blast. Balancing the values is key here.
  • A reminder again that since it is splash damage, unless you hit dead center of the target, it will not apply the full damage. You may want to make the damage values higher for more consistent damage
When configuring the vehicles, restrict the Turret_*_Pitch_Min and
Turret_*_Pitch_Max to between 90 and 95, firing the torpedo at unintended angles will cause undesirable issues
Appendix: Current existing torpedo variants
Torp*_Surface
The surface launcher variant, meant for use on boats or ships

Torp*_Aerial
The aerial launcher variant, meant for use on bomber planes

Torp*_Aerial_VisibleLoaded
The aerial launcher variant, meant for use on bomber planes (pilot seat)
*It functions exactly the same as Torp*_Aerial, except that a visible torpedo load will appear when loaded on the pilot

Torpedo type A
/Items/Magazines/TorpA /Items/Guns/TorpA_Aerial /Items/Guns/TorpA_Aerial_VisibleLoaded /Items/Guns/TorpA_Surface

Torpedo type B
/Items/Magazines/TorpB /Items/Guns/TorpB_Aerial /Items/Guns/TorpB_Aerial_VisibleLoaded /Items/Guns/TorpB_Surface

Torpedo type C
/Items/Magazines/TorpC /Items/Guns/TorpC_Aerial /Items/Guns/TorpC_Aerial_VisibleLoaded /Items/Guns/TorpC_Surface

Torpedo type D
/Items/Magazines/TorpD /Items/Guns/TorpD_Aerial /Items/Guns/TorpD_Aerial_VisibleLoaded /Items/Guns/TorpD_Surface

Torpedo type E
/Items/Magazines/TorpE /Items/Guns/TorpE_Aerial /Items/Guns/TorpE_Aerial_VisibleLoaded /Items/Guns/TorpE_Surface

Torpedo type F
/Items/Magazines/TorpF /Items/Guns/TorpF_Aerial /Items/Guns/TorpF_Aerial_VisibleLoaded /Items/Guns/TorpF_Surface
-end-
Any variant that does not meet your requirements? Leave a comment in this guide or the workshop page and I may consider to add more based on demand/popularity
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2105127501