Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 15, 2015, 4:47:35 PM (9 years ago)
Author:
gania
Message:

Finished groundwork: AI fights enemies like I want it to. TODO implement all the functionality of old AI, like Waypoints, XMLPort

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/AI_HS15/data/levels/AITest.oxw

    r10803 r10805  
    11<LevelInfo
    2  name = "AI testing level"
    3  description = "A level with two opposing AI teams"
     2 name = "New AI testing level"
     3 description = "A level with two opposing new AI teams"
    44 tags = "test"
    55 screenshot = "emptylevel.png"
     
    3333    <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0"/>
    3434    <SpawnPoint team=0 position="-1000,-1000,-1000" lookat="1,1,-1" spawnclass=SpaceShip pawndesign=spaceshipassff />
    35     <!-->
    36 
     35    >
     36<!--
    3737    <?lua
    3838      for i = 0, 5, 1 do
    3939    ?>
    4040
    41     <StaticEntity position="0,-10000,0" direction="0,-1,0" >
    42      <controller>
    43         <FleetController team=1>
    44         </FleetController>
    45       </controller>
    46     </StaticEntity>
    47     <StaticEntity position="0,10000,0" direction="0,-1,0" >
    48      <controller>
    49         <FleetController team=2>
    50         </FleetController>
    51       </controller>
    52     </StaticEntity>
    53     <SpaceShip position="<?lua print(1600+i*200) ?>,<?lua print(3000-i*500) ?>, -1500 ?>" lookat="0,0,0">
    54       <templates>
    55         <Template link=spaceshipassff />
    56       </templates>
    57       <controller>
    58         <AIController accuracy=10 team=1>
    59         </AIController>
    60       </controller>
    61     </SpaceShip>
    62     <?lua end ?>
    63   </!-->
    64     <SpaceShip position="0,-10000,0" direction="0,-1,0" >
    65      <templates>
    66         <Template link=spaceshipassff />
    67       </templates>
    68      <controller>
    69         <FleetController team=1>
    70         </FleetController>
    71       </controller>
    72     </SpaceShip>
    73     <?lua
    74       for i = 0, 0, 1 do
    75     ?>
    76 
    77    
    78     <SpaceShip position="<?4000 ?>,<?lua print(1500+i*1000) ?>, -1000 ?>" lookat="0,0,0">
    79       <templates>
    80         <Template link=spaceshipassff />
    81       </templates>
    82       <controller>
    83         <DivisionController team=1 formationMode="DIAMOND">
    84         </DivisionController>
    85       </controller>
    86     </SpaceShip>
    87     <!-- <SpaceShip position="<?1000 ?>,<?lua print(1500+i*1000) ?>, -1600 ?>" lookat="0,0,0">
    88       <templates>
    89         <Template link=spaceshipassff />
    90       </templates>
    91       <controller>
    92         <WingmanController team=1>
    93         </WingmanController>
    94       </controller>
    95     </SpaceShip>
    96     <SpaceShip position="<?1000 ?>,<?lua print(1500+i*1000) ?>, -2200 ?>" lookat="0,0,0">
    97       <templates>
    98         <Template link=spaceshipassff />
    99       </templates>
    100       <controller>
    101         <WingmanController team=1>
    102         </WingmanController>
    103       </controller>
    104     </SpaceShip>
    105     <SpaceShip position="<?1000 ?>,<?lua print(1500+i*1000) ?>, -2800 ?>" lookat="0,0,0">
    106       <templates>
    107         <Template link=spaceshipassff />
    108       </templates>
    109       <controller>
    110         <SectionController team=1>
    111         </SectionController>
    112       </controller>
    113     </SpaceShip> -->
    114     <?lua end ?>
    115    <!--  <SpaceShip position="4000, 1500, -1300 ?>" lookat="0,0,0">
    116       <templates>
    117         <Template link=spaceshipassff />
    118       </templates>
    119       <controller>
    120         <WingmanController team=2>
    121         </WingmanController>
    122       </controller>
    123     </SpaceShip> -->
    124 <!--
    125     <?lua
    126       for i = 0, 0, 1 do
    127     ?>
    128 
    129     <StaticEntity position="1000,-10000,0" direction="0,-1,0" >
    130      <controller>
    131         <FleetController team=2>
    132         </FleetController>
    133       </controller>
    134     </StaticEntity>
    135     <SpaceShip position="<?50000 ?>,<?lua print(1500+i*1000) ?>, -1000 ?>" lookat="0,0,0">
    136       <templates>
    137         <Template link=spaceshipassff />
    138       </templates>
    139       <controller>
    140         <DivisionController team=2>
    141         </DivisionController>
    142       </controller>
    143     </SpaceShip>
    144     <SpaceShip position="<?50000 ?>,<?lua print(1500+i*1000) ?>, -1600 ?>" lookat="0,0,0">
    145       <templates>
    146         <Template link=spaceshipassff />
    147       </templates>
    148       <controller>
    149         <WingmanController team=2>
    150         </WingmanController>
    151       </controller>
    152     </SpaceShip>
    153     <SpaceShip position="<?50000 ?>,<?lua print(1500+i*1000) ?>, -2200 ?>" lookat="0,0,0">
    154       <templates>
    155         <Template link=spaceshipassff />
    156       </templates>
    157       <controller>
    158         <WingmanController team=2>
    159         </WingmanController>
    160       </controller>
    161     </SpaceShip>
    162     <SpaceShip position="<?50000 ?>,<?lua print(1500+i*1000) ?>, -2800 ?>" lookat="0,0,0">
    163       <templates>
    164         <Template link=spaceshipassff />
    165       </templates>
    166       <controller>
    167         <SectionController team=2>
    168         </SectionController>
    169       </controller>
    170     </SpaceShip>
    171     <?lua end ?> -->
    172 
    173 <!--
    174 
    175     <StaticEntity position = "-1000, -1000, -1000">
    176  
    177       <controller>
    178         <FleetController accuracy=10 team=1 >
    179         </FleetController>
    180       </controller>
    181     </StaticEntity>
    182    
    183     <SpaceShip position="1000, 1000, -1300 ?>" lookat="0,0,0">
    184       <templates>
    185         <Template link=spaceshipassff />
    186       </templates>
    187       <controller>
    188         <DivisionController team=1>
    189         </DivisionController>
    190       </controller>
    191     </SpaceShip>
    192     <SpaceShip position="1000, 1500, -1300 ?>" lookat="0,0,0">
    193       <templates>
    194         <Template link=spaceshipassff />
    195       </templates>
    196       <controller>
    197         <WingmanController team=1>
    198         </WingmanController>
    199       </controller>
    200     </SpaceShip>
    201     <SpaceShip position="1000, 1500, -1700 ?>" lookat="0,0,0">
    202       <templates>
    203         <Template link=spaceshipassff />
    204       </templates>
    205       <controller>
    206         <WingmanController team=1>
    207         </WingmanController>
    208       </controller>
    209     </SpaceShip>
    210     <SpaceShip position="1000, 1000, -1900 ?>" lookat="0,0,0">
    211       <templates>
    212         <Template link=spaceshipassff />
    213       </templates>
    214       <controller>
    215         <SectionController team=1>
    216         </SectionController>
    217       </controller>
    218     </SpaceShip>
    219 
    220 
    221       <StaticEntity position = "-1000, -1000, -2000">
    222  
    223       <controller>
    224         <FleetController accuracy=10 team=2 >
    225         </FleetController>
    226       </controller>
    227     </StaticEntity>
    228    
    229     <SpaceShip position="4000, 1000, -1300 ?>" lookat="0,0,0">
    230       <templates>
    231         <Template link=spaceshipassff />
    232       </templates>
    233       <controller>
    234         <DivisionController team=2>
    235         </DivisionController>
    236       </controller>
    237     </SpaceShip>
    238     <SpaceShip position="4000, 1500, -1300 ?>" lookat="0,0,0">
    239       <templates>
    240         <Template link=spaceshipassff />
    241       </templates>
    242       <controller>
    243         <WingmanController team=2>
    244         </WingmanController>
    245       </controller>
    246     </SpaceShip>
    247     <SpaceShip position="4000, 1500, -1700 ?>" lookat="0,0,0">
    248       <templates>
    249         <Template link=spaceshipassff />
    250       </templates>
    251       <controller>
    252         <WingmanController team=2>
    253         </WingmanController>
    254       </controller>
    255     </SpaceShip>
    256     <SpaceShip position="4000, 1000, -1900 ?>" lookat="0,0,0">
    257       <templates>
    258         <Template link=spaceshipassff />
    259       </templates>
    260       <controller>
    261         <SectionController team=2>
    262         </SectionController>
    263       </controller>
    264     </SpaceShip> -->
    265 
    266    
    267     <!-->
    268     <?lua
    269       for i = 0, 5, 1 do
    270     ?>
    271     <SpaceShip position="<?lua print(1600+i*200) ?>,3000, 6000 ?>" lookat="0,0,0">
     41   
     42    <SpaceShip position="<?lua print(-1600+i*200) ?>,<?lua print(-3000-i*500) ?>, -1500 ?>" lookat="0,0,0">
    27243      <templates>
    27344        <Template link=spaceshipassff />
     
    27849      </controller>
    27950    </SpaceShip>
    280     <?lua end ?>
    281     </!-->
     51    <?lua end ?> -->
     52 
     53   
     54    <SpaceShip position="4000, 1500, -1000" lookat="0,0,0">
     55      <templates>
     56        <Template link=spaceshipassff />
     57      </templates>
     58      <controller>
     59        <DivisionController team=1 formationMode="DIAMOND">
     60        </DivisionController>
     61      </controller>
     62    </SpaceShip>
     63    <SpaceShip position="4000 ,1500, -1600 " lookat="0,0,0">
     64      <templates>
     65        <Template link=spaceshipassff />
     66      </templates>
     67      <controller>
     68        <WingmanController team=1>
     69        </WingmanController>
     70      </controller>
     71    </SpaceShip>
     72    <SpaceShip position="4000, 1500, -2200" lookat="0,0,0">
     73      <templates>
     74        <Template link=spaceshipassff />
     75      </templates>
     76      <controller>
     77        <WingmanController team=1>
     78        </WingmanController>
     79      </controller>
     80    </SpaceShip>
     81    <SpaceShip position="6000, 1500, -2800" lookat="0,0,0">
     82      <templates>
     83        <Template link=spaceshipassff />
     84      </templates>
     85      <controller>
     86        <SectionController team=1>
     87        </SectionController>
     88      </controller>
     89    </SpaceShip>
     90    <SpaceShip position="6000, 1500, -1000" lookat="0,0,0">
     91      <templates>
     92        <Template link=spaceshipassff />
     93      </templates>
     94      <controller>
     95        <DivisionController team=1 formationMode="DIAMOND">
     96        </DivisionController>
     97      </controller>
     98    </SpaceShip>
     99    <SpaceShip position="6000 ,1500, -1600 " lookat="0,0,0">
     100      <templates>
     101        <Template link=spaceshipassff />
     102      </templates>
     103      <controller>
     104        <WingmanController team=1>
     105        </WingmanController>
     106      </controller>
     107    </SpaceShip>
     108    <SpaceShip position="6000, 1500, -2200" lookat="0,0,0">
     109      <templates>
     110        <Template link=spaceshipassff />
     111      </templates>
     112      <controller>
     113        <WingmanController team=1>
     114        </WingmanController>
     115      </controller>
     116    </SpaceShip>
     117    <SpaceShip position="6000, 1500, -2800" lookat="0,0,0">
     118      <templates>
     119        <Template link=spaceshipassff />
     120      </templates>
     121      <controller>
     122        <SectionController team=1>
     123        </SectionController>
     124      </controller>
     125    </SpaceShip>
     126 
     127   
     128    <SpaceShip position="-4000, 1500, -5000" lookat="0,0,0">
     129      <templates>
     130        <Template link=spaceshipassff />
     131      </templates>
     132      <controller>
     133        <DivisionController team=2 formationMode="FINGER4">
     134        </DivisionController>
     135      </controller>
     136    </SpaceShip>
     137    <SpaceShip position="-4000 , 1500, -5600" lookat="0,0,0">
     138      <templates>
     139        <Template link=spaceshipassff />
     140      </templates>
     141      <controller>
     142        <WingmanController team=2>
     143        </WingmanController>
     144      </controller>
     145    </SpaceShip>
     146    <SpaceShip position="-4000, 1500, -6200" lookat="0,0,0">
     147      <templates>
     148        <Template link=spaceshipassff />
     149      </templates>
     150      <controller>
     151        <WingmanController team=2>
     152        </WingmanController>
     153      </controller>
     154    </SpaceShip>
     155    <SpaceShip position="-4000, 1500, -6800 " lookat="0,0,0">
     156      <templates>
     157        <Template link=spaceshipassff />
     158      </templates>
     159      <controller>
     160        <SectionController team=2>
     161        </SectionController>
     162      </controller>
     163    </SpaceShip>
     164
     165       <SpaceShip position="-6000, 1500, -5000" lookat="0,0,0">
     166      <templates>
     167        <Template link=spaceshipassff />
     168      </templates>
     169      <controller>
     170        <DivisionController team=2 formationMode="FINGER4">
     171        </DivisionController>
     172      </controller>
     173    </SpaceShip>
     174    <SpaceShip position="-6000 , 1500, -5600" lookat="0,0,0">
     175      <templates>
     176        <Template link=spaceshipassff />
     177      </templates>
     178      <controller>
     179        <WingmanController team=2>
     180        </WingmanController>
     181      </controller>
     182    </SpaceShip>
     183    <SpaceShip position="-6000, 1500, -6200" lookat="0,0,0">
     184      <templates>
     185        <Template link=spaceshipassff />
     186      </templates>
     187      <controller>
     188        <WingmanController team=2>
     189        </WingmanController>
     190      </controller>
     191    </SpaceShip>
     192    <SpaceShip position="-6000, 1500, -6800 " lookat="0,0,0">
     193      <templates>
     194        <Template link=spaceshipassff />
     195      </templates>
     196      <controller>
     197        <SectionController team=2>
     198        </SectionController>
     199      </controller>
     200    </SpaceShip>
     201
     202
     203   
     204   
    282205
    283206  </Scene>
Note: See TracChangeset for help on using the changeset viewer.