![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
01-05-13, 07:53 AM
|
#11 |
|
A-ganger
![]() Join Date: Jan 2011
Posts: 72
Downloads: 289
Uploads: 0
|
Thank you trevally for your quick response. The problem is if i activate only fx mod starshells doesn't appears only after i activate irai mod. I made your modifications and still appears because irai activate them again.
I find this path in irai mod. irai/data/scripts/ai/ship-weapons.aix # Ship weapons: # strategy ShipFire(Ship) { precond { Ship:ContactPresenceIs(PRESENCE_SENSORS, 0) or (Ship:ContactPresenceIs(PRESENCE_LOOSING, 0) and Ship:GetContactLostTime() <= 360.0) } strategies { DC, Cannons, CannonsAtSubmerged, #CheckStarshellEnable, ShipFireStarShells, ShipFireStarShellsDistance } } strategy DC(Ship) { precond { Ship:ContactIs(SUBMARINE) or (Ship:ContactIs(UNITUNKNOWN) and Ship:GetContactDepth() <= -4.0) #SUBISSUBMERGEDDEPTH } strategies { DCRacks, HHogs, DCThrower } } strategy DCRacks(Ship) { precond { Ship:CanFireDCRacks() and Ship:GetContactDepth() <= -4.0 and Ship:GetCurrentSpeed() >= 2 #SUBISSUBMERGEDDEPTH } action { Ship:FireDCRacks(); } } strategy HHogs(Ship) { precond { Ship:CanFireHHogs() } action { Ship:FireHHogs(); } } strategy DCThrower(Ship) { precond { Ship:CanFireDCThrowers() } action { Ship:FireDCThrowers(); } } strategy Cannons(Ship) { precond { Ship:CanFireCannons() } action { Ship:FireCannons(); } } strategy CannonsAtSubmerged(Ship) { precond { (Ship:ContactPresenceIs(PRESENCE_LOOKOUT, 0) or Ship:ContactPresenceIs(PRESENCE_SONAR, 0)) and (Ship:ContactIs(SUBMARINE) or Ship:ContactIs(UNITUNKNOWN)) and Ship:GetContactDepth() <= 0.0 and Ship:GetContactDepth() >= -20.0 and Ship:GetContactRelDist() <= 8000 } action { Ship:FireCannons(); } } #strategy CheckStarshellEnable(Ship) #{ # precond # { # (Ship:ContactPresenceIs(PRESENCE_SENSORS, 0) or Ship:ContactPresenceIs(PRESENCE_LOOSING, 0)) and Ship:GetContactRelDist() <= 10000 # } # action # { # Ship:EnableStarshells(); # } #} strategy ShipFireStarShells(Ship) { precond { Ship:CanFireStarShells() and Ship:GetContactRelDist() <= 10000 } action { Ship:FireStarShells(); } } strategy ShipFireStarShellsDistance(Ship) { precond { Ship:GetContactRelDist() <= 10000 } action { Ship:FireStarShells(); #Ship:ShipWaitAction(10) Ship:TimeEventHappen(5); } } |
|
|
| Tags |
| awesome, campaign, graf zeppelin, harbour, new bases, new ships, ohii |
|
|
