![]() |
Quote:
Setting it high (like really high, 200 m or more) prevents even B-18, the worst offender so far, from crashing into ocean. It still flies like pilot just downed a case of beer by himself, but it does so at higher altitude. Now, all that's needed is: - make planes fly more stable - make them, if possible, drop bombs on first pass (now, even with Strafe behaviour, they usually make several circles and turns before they find a good position to drop bombs) First I hope can be achieved with fine-tuning wings/rudders drag and engine parameters. For second, no clue now but perhaps something will click if we keep changing all values... |
Depending on distance to target?
There is a AI Command. StrafingTooClose There's A LOT of Commands TDW didn't use. NeedToDescend LaunchTorpedoesStrafe MoveAroundCannonTarget Etc. |
Quote:
Good day So I know one confirmed case. It's an attack by Skua aircraft from Ark Royal on the U-30. Here the bombs bounced off the surface and exploded in front of the planes. :k_confused::k_confused: |
Quote:
For distance to target, GetContactRelDistOnWater works fine. Quote:
----- If any players who are currently playing a campaign using TWoS are reading this thread - Coastal Commma... wait, uhm, BdU Training Division would find it very helpful if you share your experiences with planes in game currently: how dangerous do you consider them to be, what are your usual reaction/tactic in dealing with them, what types of planes are most common in your game (my tests are very "clinical" and may not reflect real combat engagements). |
Umm... guys?
So, this is a little side effect of meddling with AI scripts today. It is in no way related to aircraft behaviour, but I hope you'll like it anyway: https://youtu.be/nFYryWEduzU |
Is that AI Subs firing deck guns?
|
Quote:
I added Ship:CanFireCannons as additional condition to hitherto non-functional surface attack strategy and AI subs started firing both AA and deck guns. |
Now you need to add crew to those Guns!
|
Here's the complete list of AI commands.
I didn't take time to make it all pretty. GetContactWeight GetDepth....Dive.... CheckDepth..GetD amage...InSpotLi ght.GetCrewRatin gSub....ContactD etected.WaitActi on..PeriscopeRai sed.RaisePerisco pe..GetContactAv oidDist.GetConta ctRelDist...GetS ubMaxSpeed..GetC ontactSpeed.CanF ollowWaypoint... ContactIsMoving. SubInFrontOfCont act.PersuingTarg et..CanFire.Faci ngTargetTrajecto ry..FireTorpedoe s...FireCannons. ContactIs...AreE nemiesPresent... SetThrottleRatio ....IsDay...Turn ToFaceTargetTraj ectory..MoveOuts ideDetectionArea ....MoveIntoPosi tion....MoveNear DetectionArea... ApproachStillTar get.MoveAroundCa nnonTarget..SetT hrottle.FollowWp ....CanFireTorpe does....HasBombs ....HasTorpedoes ....CanFireBombs ....NeedToDescen d...StrafingTooC lose....FiredTor pedo....LaunchTo rpedoesStrafe... ShouldPrepareToL aunch...MoveToFi reTorpedo...HasW aypoints....HasC annons..CanFireC annons..HasGroup ....HasCommander ....HasSameConta ctAsCommander... FireBombs...SetC ourseBombs..Stra fe..AvoidWaterIm pact....SetOnTar get.ShouldSetOnT arget...SetCours eWaypoint...Floc k...GetContactRe lDistOnWater.... GetRole.IsType.. IsCommander.SetT actic...EndCurre ntTactic....CanC ontinueCurrentTa ctic....GetShips DestroyedRecentl yInGroup....Idle ThisShip....AddR ole.IsRoleInCurr entTactic...SetL ineFormation.... AssignRole..GetC urrentTacticID.. GetCurrentTactic MinShips....Wait ForFormation.... GetShipCountInGr oup.Random..Cont actIsInsideGroup Area....SetGotoF orwardDist..SetG otoDestRelToCont act.SetGotoDestR elToContactKeepF ormationOrientat ion.SetGotoDestR elToGroupCenterA longGroupHeading ....SetGotoDestR elToGroupCenter. StartFiringDCs.. StopFiringDCs... EnableStarshells ....ShipWaitActi on..GetMyWeight. TimeEventHappen. GetContactLostTi me..CanFireDCRac ks..CanFireHHogs ....CanFireDCThr owers...TorpedoD etected.CanFireS tarShells...GetC ontactDepth.GetC ontactBearing... ContactPresenceI s...GetCurrentSp eed.GetCurrentSp eedKnots....Fire DCRacks.FireDCTh rowers..FireHHog s...FireStarShel ls..AvoidTorpedo es..FollowWaypoi nts.Spiral..Pine appleFlares.Goto ....TurnToHeadin g...TurnFormatio nToHeading..GetC urrentHeading... GetCurrentFormat ionHeading..GetF ormationContactB earing..GotoActi on..SetRamDestin ation...SetSenso rFactor.IsNeutra l...IsDocked.... HasContacts.GetC rewRating...Chan geStatusIcon.... IsAlone. |
Quote:
|
Quote:
Nice. :Kaleun_Applaud: I didn't see any AI sub firing anything. No matter if German or allied subs they have only been driving past and do nothing else. |
Ok, little update on subs (see, I'm now derailing my own thread :D )
- They can fire at other subs as well if ordered, so no easy sinking British and Polish U-class subs with deck gun anymore. They will defend themselves :D - I can't get them to fire AA at planes, sadly (even though they do fire AA guns at other ships). In this case, script debugger shows CanFireCannons condition as false even is targeted plane is clearly within field of fire. Maybe if I find parts of script that order surface ships to attack planes I could learn something from them... if we could get this to work, we could have functional UFlak escorts in game. Edit: And if placed right next to surface vessel, surface ship has CanFireCannons=true and sub has CanFireCannons=false when enemy aircraft appears, while bothe have CanFireCannons=true when enemy ship appears. Seems like they really don't want to fight planes. |
TDW included an AI Cannon for Subs but there is no AI AA gun for Subs.
Check the files. Do a copy of the 20mm and follow what he did for the Deck gun. Then check the Subs eqp files and adjust. You have 010 so COMPARE the AI deck gun to the stock Deck gun! Notice names are changed so ID's will change! Adjust the SIM with Goblin (Or S3D if you have the SH5 files for it) to match ID's. Should you want the CRC in the new edited GR2 file to be correct? I have a script for 010 that will do that. |
One thing that still bothers me.
How exactly are ID's being generated? Sergbuto posted about it years ago but I still have not figured out how it's done! Finding the key to THAT would make editing files SO MUCH faster! |
Quote:
https://i.imgur.com/JVKDwwC.jpg It will also fire at surface targets with its AA gun (and with any gun I tell it to mount on AA station), but refuse to use anything against planes. So, no progress with AA for now. On the bright side, thanks to you I learned how to compare files with 010 today, something I feel will come in handy more than once :salute: |
All times are GMT -5. The time now is 06:24 AM. |
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.