]> git.lizzy.rs Git - Crafter.git/blobdiff - mods/mob/api/api_hook.lua
Add in hybriddog's flow logic
[Crafter.git] / mods / mob / api / api_hook.lua
index c12cb6c97f4117ef32a7a7ed0ac0656f3105f972..6d1c2870f99666d45d7c29735df29bf6535a1f9b 100644 (file)
@@ -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)