The ship weapons.aix file contains info on them.
Wonder if its called?
Code:
# Ship weapons:
#
strategy ShipFire(Ship)
{
precond
{
Ship:ContactDetected()
}
strategies
{
DC,
ShipFireStarShells,
Cannons
}
}
strategy DC(Ship)
{
precond
{
Ship:GetRole() != ROLE_SPIRAL
}
strategies
{
DCRacks,
HHogs,
DCThrower
}
}
strategy Cannons(Ship)
{
precond
{
Ship:CanFireCannons()
}
action
{
Ship:FireCannons();
}
}
strategy DCRacks(Ship)
{
precond
{
Ship:CanFireDCRacks()
}
action
{
Ship:FireDCRacks();
}
}
strategy HHogs(Ship)
{
precond
{
Ship:CanFireHHogs()
}
action
{
Ship:FireHHogs();
}
}
strategy DCThrower(Ship)
{
precond
{
Ship:CanFireDCThrowers()
}
action
{
Ship:FireDCThrowers();
}
}
strategy ShipFireStarShells(Ship)
{
precond
{
Ship:CanFireStarShells()
}
action
{
Ship:FireStarShells();
}
}
Also in the ship tatics.aix file
Code:
strategy Role_Pineapple1(Ship)
{
precond
{
Ship:GetRole() == ROLE_PINEAPPLE1
}
action
{
Ship:SetGotoDestRelToContact(-500);
Ship:GotoAction(0, false, 100);
Ship:SetGotoForwardDist(1000);
Ship:EnableStarshells(true);
Ship:GotoAction(0, false, 100);
Ship:EnableStarshells(false);
newHeading = Ship:GetCurrentHeading() - 180.0;
Ship:TurnToHeading(newHeading, 1.0);
Ship:SetGotoForwardDist(300);
Ship:GotoAction(0, false, 100);
}
}
EDIT:
Just found this in the ship commander.aix file
Code:
strategy Commander(Ship)
{
precond
{
Ship:IsCommander()
}
strategies
{
#OperationPlasterComm,
OperationSpiralSearchComm,
OperationFollow,
#OperationSinglePlasterComm,
#PineappleComm,
#RaspberryComm,
TerminateOperationComm
}
}
As you can see above the Pineapple stragey is disabled - The AI ships won't call the Pineapple stratagies which have the starshells in them.
Can someone test if we change
#PineappleComm to
PineappleComm
will it enable the AI to use the
strategy Role_Pineapple1(Ship)
Still in development stage of my UI Mod so can't test this out at the moment.