Начинающий
			
			
				
					
				
			
		- Статус
 - Оффлайн
 
- Регистрация
 - 19 Янв 2024
 
- Сообщения
 - 217
 
- Реакции
 - 0
 
у меня уже все готовое но - с камерой отвод норм - с головой не воркает 
public boolean update() {
if (!this.isActive) {
return false;
}
long elapsed = System.currentTimeMillis() - startTime;
if (elapsed >= duration) {
if (mc.player != null) {
float yaw = targetYaw;
float pitch = clamp(targetPitch, -90f, 90f);
if (applyDirectly) {
mc.player.rotationYaw = yaw;
mc.player.rotationPitch = pitch;
} else {
mc.player.rotationYawHead = yaw;
mc.player.renderYawOffset = yaw;
}
}
this.isActive = false;
return false;
}
if (mc.player != null) {
float currentYaw = getCurrentYaw();
float currentPitch = getCurrentPitch();
if (applyDirectly) {
mc.player.rotationYaw = currentYaw;
mc.player.rotationPitch = currentPitch;
} else {
mc.player.rotationYawHead = currentYaw;
mc.player.rotationPitchHead = currentPitch;
}
}
return true;
}
уже все перепробовал хз че делать.
				
			public boolean update() {
if (!this.isActive) {
return false;
}
long elapsed = System.currentTimeMillis() - startTime;
if (elapsed >= duration) {
if (mc.player != null) {
float yaw = targetYaw;
float pitch = clamp(targetPitch, -90f, 90f);
if (applyDirectly) {
mc.player.rotationYaw = yaw;
mc.player.rotationPitch = pitch;
} else {
mc.player.rotationYawHead = yaw;
mc.player.renderYawOffset = yaw;
}
}
this.isActive = false;
return false;
}
if (mc.player != null) {
float currentYaw = getCurrentYaw();
float currentPitch = getCurrentPitch();
if (applyDirectly) {
mc.player.rotationYaw = currentYaw;
mc.player.rotationPitch = currentPitch;
} else {
mc.player.rotationYawHead = currentYaw;
mc.player.rotationPitchHead = currentPitch;
}
}
return true;
}
уже все перепробовал хз че делать.
				
	