X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;ds=sidebyside;f=mods%2Fmob%2Fapi%2Fapi_hook.lua;h=6d1c2870f99666d45d7c29735df29bf6535a1f9b;hb=242a3d1665399c43fc68e3ae36cb5bf01334d98a;hp=c12cb6c97f4117ef32a7a7ed0ac0656f3105f972;hpb=1b545bfcfc35230efb9ad6ba8519d2a45e1bc4a3;p=Crafter.git diff --git a/mods/mob/api/api_hook.lua b/mods/mob/api/api_hook.lua index c12cb6c..6d1c287 100644 --- a/mods/mob/api/api_hook.lua +++ b/mods/mob/api/api_hook.lua @@ -147,6 +147,13 @@ mob_register.on_fire = false mob_register.fire_table = def.fire_table +mob_register.sound_pitch_mod_min = def.sound_pitch_mod_min +mob_register.sound_pitch_mod_max = def.sound_pitch_mod_max + +mob_register.sound_pitch_mod_min_die = def.sound_pitch_mod_min_die +mob_register.sound_pitch_mod_max_die = def.sound_pitch_mod_max_die + + if def.pathfinds then --mob_register.path = {} mob_register.pathfinding_timer = 0 @@ -170,7 +177,6 @@ mob_register.on_step = function(self, dtime,moveresult) self.custom_function_begin(self,dtime) end - flow(self) self.collision_detection(self) if self.fall_damage then self.fall_damage(self)