/usr/share/games/colobot/ai/twasp1.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 | extern void object::Example()
{
object item;
aim(0);
while (true)
{
while(radar(AlienWasp, 0, 360, 0, 20) == null)
{
item = radar(AlienWasp);
turn(direction(item.position));
motor(1,1);
jet(0);
if(position.z > item.position.z)
{
jet(-0.3);
}
if(position.z < item.position.z - 1)
{
jet(0.3);
}
wait(0.2);
}
item = radar(AlienWasp);
turn(direction(item.position));
fire(1);
}
}
|