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

Reply
 
Thread Tools Display Modes
Old 03-11-21, 03:43 AM   #1
Mister_M
Ace of the Deep
 
Join Date: Feb 2021
Posts: 1,055
Downloads: 31
Uploads: 0


Default

You could link the whilstling effect to the fire effect of a (fake) gun provided with (fake) AP shells and (fake) starshells, so that the boat can make noise even if the submarine has not been visually spotted.

Edit 1 : It will be a bit odd if the whistle blows up each time the ship is changing course while cruising...

Edit 2 : Maybe the trigger could be when the boat goes reverse course ? You might control the effect in the ship's .VAL file, depending on the speed (negative...). Same controller as used for bow sprays...

Edit 3 : You might use state machine controllers to control the height of a node depending on the rudder rotation (but I don't know how these controllers work ; they are used for rotating things like submarine's radio antenna & radar ; ask Anvart : https://www.subsim.com/radioroom/member.php?u=223431). If the rudder has turned, then a node comes immediately from -10m to the proper height in order the steam effect is perfectly placed on the whistle (and then you use the height controller to spawn the effect).

Last edited by Mister_M; 03-11-21 at 08:07 AM.
Mister_M is offline   Reply With Quote
Old 03-11-21, 06:35 PM   #2
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Hi Mister_M,

thank you for your contribution of ideas, please find my answers below

Quote:
Originally Posted by Mister_M View Post
You could link the whilstling effect to the fire effect of a (fake) gun provided with (fake) AP shells and (fake) starshells, so that the boat can make noise even if the submarine has not been visually spotted.
AP shells are bugged in SH5. After firing them, guns become stuck at maximum elevation and they can't fire anymore but I suppose that just one alarm would be enough, so yes, that's a nice suggestion.

Quote:
Originally Posted by Mister_M View Post
Edit 1 : It will be a bit odd if the whistle blows up each time the ship is changing course while cruising...
Unless a ship is zigzagging or avoiding a collision (in which case the the whistle alarm would be appropriate), changes of course are not so common. I any case I think we can limit the maximum bumber of whistle blows through particle generator's settings.

Quote:
Originally Posted by Mister_M View Post
Edit 2 : Maybe the trigger could be when the boat goes reverse course ? You might control the effect in the ship's .VAL file, depending on the speed (negative...). Same controller as used for bow sprays...
That's an idea whose feasibility I will check, but I think wakes can only spawn on the sea surface, and I want steam to come out from the whistle, not from boat's stern near the waterline

Quote:
Originally Posted by Mister_M View Post
Edit 3 : You might use state machine controllers to control the height of a node depending on the rudder rotation (but I don't know how these controllers work ; they are used for rotating things like submarine's radio antenna & radar ; ask Anvart : https://www.subsim.com/radioroom/member.php?u=223431). If the rudder has turned, then a node comes immediately from -10m to the proper height in order the steam effect is perfectly placed on the whistle (and then you use the height controller to spawn the effect).
I have not experience with the StateMachine controller. Can any helpful and knowledgeable subsim mate explain how it works?

Else, I had thought about a "dummy rudder" trigger with its y axis tilted and a particle generator node placed on it so that when the rudder turns bone's heigh chenges and steam + whistle sound are generated. I see one problem though.
If the bone is placed near rudder's pivot center, its height variation will be modest; it will be easier for the particle generator to be triggered by waves than by sterring maneuvers. Conversely, if the bone is placed far from the pivot center, even the slightest rudder rotation will determine an appreciable height change, but then controlling where the setam will come out won't be so easy...
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 03-12-21, 06:41 AM   #3
Mister_M
Ace of the Deep
 
Join Date: Feb 2021
Posts: 1,055
Downloads: 31
Uploads: 0


Default

Quote:
Originally Posted by gap View Post
Hi Mister_M,
Unless a ship is zigzagging or avoiding a collision (in which case the the whistle alarm would be appropriate), changes of course are not so common. I any case I think we can limit the maximum bumber of whistle blows through particle generator's settings.
Maybe I don't understand fully your idea, but the number of effects can be limited by the number of fake shells only. If the effect is triggered by the height of the node, then the effect will be spawned each time that the node is higher than the value specified in the height controller.

Quote:
Originally Posted by gap View Post
I have not experience with the StateMachine controller. Can any helpful and knowledgeable subsim mate explain how it works?
Yes, Anvart (see my previous message) : he created some mods to improve radar's rotation and elevation cynematics for SH3, and he knows very well how it works. You should ask him if the idea is feasible with state machine controllers.
Mister_M is offline   Reply With Quote
Old 03-12-21, 10:27 AM   #4
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by Mister_M View Post
Maybe I don't understand fully your idea, but the number of effects can be limited by the number of fake shells only. If the effect is triggered by the height of the node, then the effect will be spawned each time that the node is higher than the value specified in the height controller.
Probably you are right. I was thinking that if we set max number of number of particles low enough, and particle's life long enough, no new "whistle event" could be triggered until the old particles are removed from the game. Anyway the max particle setting setting is a per-particle-generator parameter, so it is well possible that it won't prevent the triggering of a new whistle.


Quote:
Originally Posted by Mister_M View Post
Yes, Anvart (see my previous message) : he created some mods to improve radar's rotation and elevation cynematics for SH3, and he knows very well how it works. You should ask him if the idea is feasible with state machine controllers.
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Reply

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 08:35 AM.


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.