real head yaw fixed

This commit is contained in:
GameHerobrine 2024-01-09 08:51:15 +03:00
parent 9d6322f587
commit 88cec22404
4 changed files with 41 additions and 10 deletions

View file

@ -135,6 +135,8 @@ abstract class Living extends Entity implements Pathfindable{
//Yaw rotation in 1.5 is handled in a bit different place but hopefully this will work too
$this->ai->mobController->updateHeadYaw();
}
public function moveEntityWithHeading($strafe, $forward){
@ -153,15 +155,17 @@ abstract class Living extends Entity implements Pathfindable{
$var8 = 0.16277136 / ($friction*$friction*$friction);
if($this->onGround){
//all mobs have ai enabled in nc for now
$var5 = $this->getAIMoveSpeed();
//TODO if AIEnabled
{
//{
//TODO $var5 = getAIMoveSpeed
}
//}
//else
{
$var5 = $this->landMovementFactor;
}
$var5 *= $var8;
//{
// $var5 = $this->landMovementFactor;
//}
//$var5 *= $var8;
}else{
$var5 = $this->jumpMovementFactor;
}