/usr/share/games/colobot/ai/strain2.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 | extern void object::Attack( )
{
point traject[10];
int nb, i;
errmode(0);
nb = cmdline(0)+1;
traject[0] = position;
for ( i=1 ; i<nb ; i++ )
{
traject[i].x = cmdline((i-1)*2+1);
traject[i].y = cmdline((i-1)*2+2);
}
for ( i=1 ; true ; i++ )
{
goto(traject[i%nb], 0,0,2);
sniff();
}
}
|