new autojump

This commit is contained in:
GameHerobrine 2023-12-15 06:17:47 +03:00
parent f7745aa69c
commit f7fed3cd74
4 changed files with 33 additions and 33 deletions

View file

@ -12,7 +12,8 @@ abstract class Creature extends Living{
$this->inPanic = false; //force for now
parent::__construct($level, $eid, $class, $type, $data);
$this->setHealth(isset($this->data["Health"]) ? $this->data["Health"] : 1, "generic");
// $this->setName((isset($mobs[$this->type]) ? $mobs[$this->type]:$this->type));
$this->enableAutojump = true;
//$this->setName((isset($mobs[$this->type]) ? $mobs[$this->type]:$this->type));
$this->ai->addTask(new TaskLookAround());
$this->ai->addTask(new TaskRandomWalk());
$this->ai->addTask(new TaskLookAtPlayer());