/usr/share/games/colobot/ai/tremot2a.txt is in colobot-common 0.1.2-3build1.
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 | extern void object::Remote( )
{
SendToPost(1, 20); // move(20);
SendToPost(2, 90); // turn(90);
SendToPost(1, 20); // move(20);
SendToPost(2, 90); // turn(90);
SendToPost(1, 10); // move(10);
SendToPost(2, 90); // turn(90);
SendToPost(1, 10); // move(10);
SendToPost(2,-90); // turn(-90);
SendToPost(1, 10); // move(10);
}
void object::SendToPost(float order, float param)
{
// send the order and the parameter
send("order", order, 100);
send("param", param, 100);
// wait for end of work
while ( testinfo("order", 100) )
{
wait(1);
}
}
|