]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/genericobject.h
Fix animation frame_speed and blend loosing precision due to incorrec… (#6357)
[dragonfireclient.git] / src / genericobject.h
index 3ebc85fa36fac708b64339c1c363d8e12878dfbc..878300fbf4f63278274c7524c4ce5334d1fd5f2e 100644 (file)
@@ -36,7 +36,8 @@ enum GenericCMD {
        GENERIC_CMD_ATTACH_TO,
        GENERIC_CMD_SET_PHYSICS_OVERRIDE,
        GENERIC_CMD_UPDATE_NAMETAG_ATTRIBUTES,
-       GENERIC_CMD_SPAWN_INFANT
+       GENERIC_CMD_SPAWN_INFANT,
+       GENERIC_CMD_SET_ANIMATION_SPEED
 };
 
 #include "object_properties.h"
@@ -72,6 +73,8 @@ std::string gob_cmd_update_physics_override(float physics_override_speed,
 
 std::string gob_cmd_update_animation(v2f frames, float frame_speed, float frame_blend, bool frame_loop);
 
+std::string gob_cmd_update_animation_speed(float frame_speed);
+
 std::string gob_cmd_update_bone_position(const std::string &bone, v3f position,
                v3f rotation);