semperfi: Make AI build ripple rockets and archangels, and stormbringer AA.

master
Per Inge Mathisen 2011-01-18 22:42:57 +01:00
parent 90f506feb5
commit 45460926cf
2 changed files with 13 additions and 15 deletions

View File

@ -103,9 +103,9 @@ public STRUCTURESTAT vtolTarget[10],rebuildStat[4];
private int baseX,baseY,minx,miny,maxx,maxy;
public int numStructs,numIncendrys,numDefStructs,numWallWeaps,numBaseStruct,numLightCyborgs,numFundamental;
private STRUCTURESTAT structChoice[5];
public STRUCTURESTAT incendrys[8],structs[13],defStructs[26],wallWeaps[11];
public STRUCTURESTAT incendrys[20],structs[13],defStructs[26],wallWeaps[11];
public STRUCTURESTAT sensorTower,wall,cornerWall,resLab,powGen,playerHQ,lassat,factory,derrick,cybFactory,
vtolDefStruct[5],vtolPad,vtolFactory,uplink,baseStruct[8];
vtolDefStruct[6],vtolPad,vtolFactory,uplink,baseStruct[8];
public STRUCTURESTAT powModule,facModule,resModule,vtolModule;
public int extraStruct;
@ -164,7 +164,7 @@ private int sender,x,y,beaconX[MAX_PLAYERS_HACK],beaconY[MAX_PLAYERS_HACK],tB
private string message;
private int defendX,defendY,defendRadius,tDefendStart,tDefendTimeout,
defendMoveType,baseRange,curTech,numVtolAttackGroups,numAttackVtols,
defendMoveType,curTech,numVtolAttackGroups,numAttackVtols,
numDefendVtols,rebuildStructX[MAX_REBUILD_STRUCT],rebuildStructY[MAX_REBUILD_STRUCT],countRebuildStruct;
private STRUCTURESTAT rebuildStructStat[MAX_REBUILD_STRUCT];
@ -329,8 +329,6 @@ event initialisedEvent(CALL_GAMEINIT)
defendMoveType = -1; //move or scout
seenAnyAA = false;
baseRange = 4 * TILE;
// set current research branch
setTechBranch(-1);
@ -1074,7 +1072,7 @@ function bool aiResponsibleForPlayer(int _player)
// keep details about the size and postion of the ai players base
event basedetails(basedetailsTr)
{
local int result;
local int result, baseRange;
// clear old extremities.
maxy = 0;
@ -1450,7 +1448,6 @@ event incendry(inactive)
if(buildX != 0)
{
// choose a device
count = numIncendrys - 1;
result = 99;
@ -1467,7 +1464,6 @@ event incendry(inactive)
}
}
// find a unit and build an incendry device.
if(result != 99)
{
@ -3333,12 +3329,11 @@ event vtolDefend(vtolDefendTr)
{
buildX = structure.x;
buildY = structure.y;
// if ! vtol defense already built...
//find best defense we can build.
count = 0;
count2 = -1;
while( count < 5)
while (count < 6)
{
if(isStructureAvailable(vtolDefStruct[count],me))
{

View File

@ -105,7 +105,7 @@ run
maxVTOLs[1] int 70
// incendry emplacements.
numIncendrys int 8
numIncendrys int 10
incendrys[0] STRUCTURESTAT "Emplacement-MortarPit01"
incendrys[1] STRUCTURESTAT "Emplacement-MortarPit02"
incendrys[2] STRUCTURESTAT "Emplacement-MortarPit-Incenediary"
@ -114,6 +114,8 @@ run
incendrys[5] STRUCTURESTAT "Emplacement-Howitzer150"
incendrys[6] STRUCTURESTAT "Emplacement-Howitzer-Incenediary"
incendrys[7] STRUCTURESTAT "Emplacement-RotHow"
incendrys[8] STRUCTURESTAT "Emplacement-Rocket06-IDF"
incendrys[9] STRUCTURESTAT "Emplacement-HvART-pit"
//anti a.
vtolDefStruct[0] STRUCTURESTAT "AASite-QuadMg1" //1
@ -121,6 +123,7 @@ run
vtolDefStruct[2] STRUCTURESTAT "AASite-QuadRotMg"
vtolDefStruct[3] STRUCTURESTAT "P0-AASite-SAM1" //3
vtolDefStruct[4] STRUCTURESTAT "P0-AASite-SAM2"
vtolDefStruct[5] STRUCTURESTAT "P0-AASite-Laser"
// upgrade structures
powModule STRUCTURESTAT "A0PowMod1"
@ -146,7 +149,7 @@ run
structs[11] STRUCTURESTAT "X-Super-MassDriver"
structs[12] STRUCTURESTAT "X-Super-Missile"
/* Base structures */
/* List what counts as base structures */
numBaseStruct int 8
baseStruct[0] STRUCTURESTAT "A0PowerGenerator"
baseStruct[1] STRUCTURESTAT "A0LightFactory"
@ -356,17 +359,17 @@ run
wyvernBody BODY "Body13SUP"
dragonBody BODY "Body14SUP"
// anti-tank weapons, in reverse order of priority
// VTOL anti-tank weapons, in reverse order of priority
numAtWeapons int 3
atWeapon[0] WEAPON "Rocket-VTOL-LtA-T" // vtol lancer
atWeapon[1] WEAPON "Rocket-VTOL-HvyA-T" // vtol tank-killer
atWeapon[2] WEAPON "Missile-VTOL-AT" // vtol scourge
// anti-building weapons, in order of priority
// VTOL anti-building weapons, in reverse order of priority
numAsWeapons int 1
asWeapon[0] WEAPON "Rocket-VTOL-BB" // vtol bunker-buster
// weapons of mass destruction
// VTOL weapons of mass destruction, in reverse order of priority
numMdWeapons int 3
mdWeapon[0] WEAPON "Bomb3-VTOL-LtINC" // phosphor bomb
mdWeapon[1] WEAPON "Bomb4-VTOL-HvyINC" // thermite bomb