/usr/share/games/colobot/ai/wingsh02.txt is in colobot-common 0.1.6-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | extern void object::Attaque1()
{
object alien;
while(true)
{
if(energyCell != null) if(energyCell.energyLevel > 0.5) break;
}
aim(-20);
while(true)
{
jet(0.4);
while(position.z - topo(position) < 1.5)
{
wait(1);
}
alien = radar(AlienAnt, 0, 360, 0, 1000, -1);
if (alien == null) break;
turn(direction(alien.position));
motor(1,1);
while(distance(position, alien.position) > 50)
{
wait(0.2);
alien = radar(AlienAnt, 0, 360, 0, 1000, -1);
if (alien == null) break;
turn(direction(alien.position));
motor(1,1);
}
fire(3);
wait(4);
}
}
|