diff --git a/lib_planes/entities.lua b/lib_planes/entities.lua index 19c9a76..80adad0 100644 --- a/lib_planes/entities.lua +++ b/lib_planes/entities.lua @@ -70,7 +70,14 @@ function airutils.on_activate(self, staticdata, dtime_s) self.object:set_armor_groups({immortal=1}) - self.object:set_animation({x = 1, y = self._anim_frames}, 0, 0, true) + local start_frame = 1 + local end_frame = self._anim_frames + if self._anim_start_frame then + start_frame = self._anim_start_frame + end_frame = self._anim_start_frame + self._anim_frames + end + + self.object:set_animation({x = start_frame, y = end_frame}, 0, 0, true) if self.wheels then self.wheels:set_animation({x = 1, y = self._anim_frames}, 0, 0, true) end diff --git a/sounds/airutils_engine.ogg b/sounds/airutils_engine.ogg new file mode 100644 index 0000000..a10b552 Binary files /dev/null and b/sounds/airutils_engine.ogg differ