SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SH5 Mods Workshop
Forget password? Reset here

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 02-14-19, 03:37 PM   #11
Tonci87
Samurai Navy
 
Join Date: Jun 2012
Posts: 590
Downloads: 119
Uploads: 0


Default

I dug a bit into the game files to figure something out, and wow, I couldn´t believe my eyes that apparently so much code from Silent hunter 4 has been used to make this game. There is bits of SH4 code everywhere, although, often without function, since many features SH4 had were not implemented. Things like proper crew management, an office room you visit between patrols, etc.

Now I wonder if they simply used "unscrubbed" SH4 code to save time, or if they at some point intended to get these features into SH5?

What a shame that Ubisoft has ruined what this game could have been by rushing it out the door. I guess the devs would have also had more time for developing the game if Ubisoft didn´t insist that this game should be a testbed for their bull**** DRM they had back then....


EDIT: Disregard the following. I departed on a new patrol, and the submerged torpedo loading boost works again..... This game sometimes....


Anyway, what I wanted to do is have a look why I can not activate the faster torpedo ability while at periscope depth.

I guess it is because of this part of code in Silent Hunter 5\data\UPCDataGE\UPCCrewData\SpecialAbilities.upc

Code:
[SpecialAbility 19]                       ; *Faster torpedo tubes reloading-submerged
ID=Ability-Active-Overcharge-Torpedo
NameDisplayable=Ability-Active-Overcharge-Torpedo-Name
Description=Ability-Active-Overcharge-Torpedo-Description, Ability-Active-Overcharge-Torpedo-Description, Ability-Active-Overcharge-Torpedo-Description, Ability-Active-Overcharge-Torpedo-Description, Ability-Active-Overcharge-Torpedo-Description
Levels= 5
AbilityType=TorpedoLoadingTimeSimple     ; *Faster torpedo tubes reloading-submerged
AbilityValue= -10, -12, -15, -17, -20
RunOnActivate= IfIsSubmerged

PointsRequirement= 0, 0, 0, 0, 0
AbilityRequirements=  0, 1, Ability-Active-Overcharge-Torpedo, 1, 1, Ability-Active-Overcharge-Torpedo, 2, 1, Ability-Active-Overcharge-Torpedo, 3, 1, Ability-Active-Overcharge-Torpedo, 4
LevelUpTree= 2, 3, 4, 5, 0
MoraleCost= 1, 1, 1, 1, 1
PointsCost= 1, 1, 2, 2, 3

AbylityActsIn= ALL

Activation=OnDemand
Duration=1200, 1800, 2400, 3000, 3600
Cooldown=16200, 14400, 14400, 10800, 7200

So, doesn´t Periscope depth count as IfIsSubmerged ?

There is not persicope depth function in that file.

Code:
; RunOnActivate - functions
;
; SpeedAheadFlank
; IfIsSurfaced
; IfIsSubmerged
;
Where in the files does IfIsSubmerged get defined?

Last edited by Tonci87; 02-14-19 at 03:51 PM.
Tonci87 is offline   Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 01:16 PM.


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