![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
![]() |
#1 | |
Seasoned Skipper
![]() Join Date: Apr 2007
Location: Huelva, Spain
Posts: 664
Downloads: 301
Uploads: 0
|
![]() Quote:
I´m using your code since the first day you posted here, not via jgsme, just directly (edited with notepad) and didn´t notice any CTD related with this. I´m happy with it. ![]() |
|
![]() |
![]() |
![]() |
#2 |
XO
![]() Join Date: May 2008
Location: oslo,Norway
Posts: 424
Downloads: 254
Uploads: 0
|
![]()
Much better instructions now, thx Rongel. I misunderstood first time and thought we were gonna mess with the exe file
![]() |
![]() |
![]() |
![]() |
#3 |
Grey Wolf
![]() Join Date: Apr 2005
Location: Bucharest, Romania
Posts: 845
Downloads: 544
Uploads: 0
|
![]()
Thanks for the answer, Rongel
![]() |
![]() |
![]() |
![]() |
#4 |
XO
![]() Join Date: May 2008
Location: oslo,Norway
Posts: 424
Downloads: 254
Uploads: 0
|
![]()
your picture say GetContactDepth() >= -13 and you describe GetContactDepth() >= -15..just a little adjust for liking?
![]() Edit: quote:So the only bad thing about this is that when the escorts lose you, they will bombard the last location 4-8 minutes causing possibly havoc. When they know you are deeper, they'll stop the firing. (Had great fun with this.One DD bombarded the other ![]() Anyways I found that with GetContactDepth() >= -13 They never saw my scope until I was 13 m depth or less. short test with eange aob practice and fx update test They stopped when I took down scope but when I wenr deeper they just shot the "old "spot until my depth was above 13 m again regardless of my unmodded attackscope towering couple of meters above the surface. I put that to -17 the merchants never shot now but the dds started whit me just below 15 m. They never hit though . Not sure what to make of this. SO now Im curious what this value does: ContactPresenceIs(PRESENCE_SENSORS, 15) Edit: with -17 they didn t shoot at all. I really just try fail here Last edited by Husksubsky; 02-01-12 at 10:53 PM. |
![]() |
![]() |
![]() |
#5 |
XO
![]() Join Date: May 2008
Location: oslo,Norway
Posts: 424
Downloads: 254
Uploads: 0
|
![]()
Now I tested with your test mission and it seem to work as purpoused. I put value to -15 again (GetContactDepth() >= -13) Felt weird that they could spot me with peri barly touching surface like they did when I put it to -17.
But what do they see actually? just periscope, or do they spot me like if I was surfaced when above this value? ![]() ![]() |
![]() |
![]() |
![]() |
#6 | ||||
Grey Wolf
![]() Join Date: Jan 2009
Location: Finland
Posts: 859
Downloads: 174
Uploads: 0
|
![]() Quote:
Quote:
Quote:
What makes things complicated is that the escorts react always in a different way. Some tests go just beutifully, like you would except, but sometimes escorts do something stupid, like shoot at themselves. Can't figure out why the escorts sometimes continue attacking you even if the script conditions are false. I guess they just want to sink you that badly! Quote:
By the way, I did a long campaign play yesterday with this and had fun with Norwegian destroyer that I mistakenly thought as a neutral unit. I just cruised in periscope depth but then cannon shells started to hit the water breaking the radio and radar. I dove immediately and it stopped the shooting and started to drop depthcharges. It was like an angry bee! |
||||
![]() |
![]() |
![]() |
#7 |
Lieutenant
![]() Join Date: Nov 2006
Location: St. Petersburg, Russia
Posts: 264
Downloads: 72
Uploads: 0
|
![]()
Great mod, Rongel!
As of the realism of firing at a submerged submarine, to my knowledge most of the secondary naval guns had special anti-submarine shells, AFAIK they were diving shells - special shells with blunt nose so you shot it into the water and it did not bounce of the water but dived and continued for some distance submerged hopefuly meeting the submarine. Moreover you read in reports of real ASW actions that planes often strafed the spot where the submarine had submerged with their guns, I recon that it is modelled in the AI logic by developers, that is why, I recon, the ships continue to shoot at the last known spot for some time with your mod as well since they use plane's script, I recon that is realistic as well - why would a ship not want to shell the last known spot knowing that the sub is relatively slow to escape? Imagining myself as a DD captain I think I would still fire guns at last know spot for a couple of minutes even if I did not see the periscope any longer and even if I did not have ASW shells, at least there is some hope that a shell would strike something fragile or the sub would be damaged by the HE-shell explosion, even if the shells did not strike they at least would force the sub to be frightened and stay submerged so negating a possibility for the sub to attack me or the convoy - you see enemy, you shoot. ![]() If only we could get of the friendly-fire issue... but it is not this mod's issue since if planes do not check for friendly-fire condition they can strafe a friendly DD on a DC run. That means that it is a stock AI error. Last edited by Vanilla; 02-02-12 at 05:37 AM. |
![]() |
![]() |
![]() |
Tags |
attack, cannons, periscope |
Thread Tools | |
Display Modes | |
|
|