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 > SHIII Mods Workshop
Forget password? Reset here

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 09-07-12, 03:32 PM   #1
Rubini
Ocean Warrior
 
Join Date: May 2005
Location: São Paulo Brazil
Posts: 2,728
Downloads: 132
Uploads: 0
Default Crash dive randomization ...

Hi guys,

I added a code to the SH3 long patrol script (see here: http://www.subsim.com/radioroom/showthread.php?t=193794 ) that randomize the crash dive behaviour.

All we feel that Sh3 is sometimes too previsible in itīs behaviour (in truth it donīt have almost nothing randomizible on it to we work on). The air attacks are that boring exactly because you will hit the C key to crash dive all tthe time and it will be almost always the same final attack result...

But no more! As said above, i added a code that made the crash dive suscetible to problems as it must be in real life as it was a emergency manouver that sometimes catch the crew outside the boat, engines in maintenance, open hatchs , etc. This is exactly what this code do.
Below a tease of it:

c::
Suspend, Permit
Send %_TC_1%
Random, rand, 0, 9
if rand <= 2
{
Send %_Crash_dive%
}
if (rand >= 3 and rand <= 8)
{
Soundplay, %A_ScriptDir%\data\Sound\SOUND1_.wav
Sleep, ((4000)*(rand-2)+6000)
Send %_Crash_dive%
Sleep, 30000
Random, prob, 0, 9
If prob > 7
{
Send %_Ahead_third%
Sleep, 10000
Send %_Maintain_depth%
Sleep, 5000
}
SoundBeep, 750, 150
;BlockInput, off
}
if rand = 9
{
Soundplay, %A_ScriptDir%\data\Sound\SOUND1_.wav
Sleep, 10000
Send %_Ahead_third%
Send %_Dive%
Sleep, 70000
Random, prob, 0, 9
If prob > 6
Send %_Hard_to_port%
If prob < 3
Send %_Hard_to_starboard%
Send %_Maintain_depth%
SoundBeep, 750, 150
}
return

This reduces the normal crash dive routine only to a propability of 30% chance. Then a trouble crash dive with dive or engine problems at 60% with variable delay in time to dive and finally at 10% that a crash dive could be not possible at all and just a messy and slow dive routine could be done.

I played the game a bit with it and itīs much more interesting because you never know what really await you over there.

If someone is interested i can update the Sh3 Long patrol script (itīs possible to only runs this crash dive routine from it if you want, etc)

Cheers!

Rubini.
__________________
One gamer's must-have mod is another gamer's waste of time.
-Sailor Steve

Last edited by Rubini; 09-08-12 at 08:19 AM.
Rubini is offline   Reply With Quote
 


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 02:19 PM.


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