]> git.lizzy.rs Git - minetest.git/blobdiff - src/content_sao.cpp
Allow the LUA API to set animations to meshes as well as the animation speed. Also...
[minetest.git] / src / content_sao.cpp
index 7526e03533bc1829bea4f9f9c5111f6ec99dce37..6c2abf8f6b3a7e91f253dbed26ff7e90ae945a73 100644 (file)
@@ -782,13 +782,15 @@ PlayerSAO::PlayerSAO(ServerEnvironment *env_, Player *player_, u16 peer_id_,
        m_prop.physical = false;
        m_prop.weight = 75;
        m_prop.collisionbox = core::aabbox3d<f32>(-1/3.,-1.0,-1/3., 1/3.,1.0,1/3.);
+       // start of default appearance, this should be overwritten by LUA
        m_prop.visual = "upright_sprite";
        m_prop.visual_size = v2f(1, 2);
        m_prop.textures.clear();
        m_prop.textures.push_back("player.png");
        m_prop.textures.push_back("player_back.png");
        m_prop.spritediv = v2s16(1,1);
-       m_prop.is_visible = (getHP() != 0);
+       // end of default appearance
+       m_prop.is_visible = (getHP() != 0); // TODO: Use a death animation instead for mesh players
        m_prop.makes_footstep_sound = true;
 }