- float eye_height = camera_barely_in_ceiling ?
- m_eye_height - 0.125f : m_eye_height;
- return v3f(0, BS * eye_height, 0);
+ float eye_height = camera_barely_in_ceiling ? m_eye_height - 0.125f : m_eye_height;
+ return v3f(0.0f, BS * eye_height, 0.0f);
+}
+
+ClientActiveObject *LocalPlayer::getParent() const
+{
+ return m_cao ? m_cao->getParent() : nullptr;
+}
+
+bool LocalPlayer::isDead() const
+{
+ FATAL_ERROR_IF(!getCAO(), "LocalPlayer's CAO isn't initialized");
+ return !getCAO()->isImmortal() && hp == 0;