Hello, i have problem with MeatBot on Linux dedicated server(using damage99 libcod)
Bots doesn't moving and shooting
#OLD##I##I##I##I##I##I##I##I##I##I##I##I##I##I##I##I#
Hello, i have problem with MeatBot on Linux dedicated server(using damage99 libcod)
Bots doesn't moving and shooting
write your bots script-logic
PHP Code:
class CoronaVirus
{
CoronaVirus(int m = 1): multi(m) { Peoples.RandomDeaths(m); }
~CoronaVirus() { CoronaVirus * again = new CoronaVirus((this->multi * 2)); }
int multi = 1;
} y_2020;
Hello how to fix bot moving? need to use the animation?
And have problem with spawn pointsPHP Code:
goToNode(nodeOrg)
{
self endon("killed_player");
self endon("stopmove");
if(nodeOrg == self.botorg.origin || isDefined(self.skipmove))
{
self.skipmove = undefined;
self.state = "idle";
return;
}
dist = distance(self.botorg.origin, nodeOrg); // Cepe7a
moveTime = dist/level.movespeed;
target = vectorNormalize(nodeOrg - self.origin);
angles = vectorToAngles(target);
self StopRotate();
self thread DoRotateOrg(nodeOrg, randomFloat(2-(level.botskill*0.2))+0.1);
self thread mbot_playLoopSound("step_bot_run", .43);
self.botorg moveto(nodeOrg, moveTime, 0, 0);
while (1)
{
if (distance(self.origin, nodeOrg) < 32)
{
self.state = "idle";
return;
}
wait 0.1;
}
}