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-21-21, 02:42 PM   #1
Jeff-Groves
GLOBAL MODDING TERRORIST
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 4,242
Downloads: 149
Uploads: 0


Default

Is that AI Subs firing deck guns?
Jeff-Groves is offline   Reply With Quote
Old 03-21-21, 02:49 PM   #2
kapuhy
Grey Wolf
 
Join Date: Oct 2010
Location: Poland
Posts: 875
Downloads: 72
Uploads: 3
Default

Quote:
Originally Posted by Jeff-Groves View Post
Is that AI Subs firing deck guns?
Yes.

I added Ship:CanFireCannons as additional condition to hitherto non-functional surface attack strategy and AI subs started firing both AA and deck guns.
kapuhy is offline   Reply With Quote
Old 03-21-21, 02:56 PM   #3
Jeff-Groves
GLOBAL MODDING TERRORIST
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 4,242
Downloads: 149
Uploads: 0


Default

Now you need to add crew to those Guns!
Jeff-Groves is offline   Reply With Quote
Old 03-21-21, 02:58 PM   #4
Jeff-Groves
GLOBAL MODDING TERRORIST
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 4,242
Downloads: 149
Uploads: 0


Default

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.
Jeff-Groves is offline   Reply With Quote
Old 03-21-21, 03:57 PM   #5
kapuhy
Grey Wolf
 
Join Date: Oct 2010
Location: Poland
Posts: 875
Downloads: 72
Uploads: 3
Default

Quote:
Originally Posted by Jeff-Groves View Post
Here's the complete list of AI commands.
I didn't take time to make it all pretty.
Thanks In fact I already noted most of these down after doing, as you've suggested before, a string search in ShSim.act with 010 Editor.
kapuhy 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 01:15 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.