add sounds for bulls and cows
This commit is contained in:
parent
ac208f173e
commit
ecfc49c7a3
@ -191,6 +191,7 @@ function wildcow.hq_stare(self,prty,target)
|
||||
if not mobkit.is_alive(target) then return true end
|
||||
if init then
|
||||
mobkit.animate(self,"headdown")
|
||||
mobkit.make_sound(self,"angry")
|
||||
init = false
|
||||
end
|
||||
local pos = self.object:get_pos()
|
||||
|
20
female.lua
20
female.lua
@ -91,6 +91,11 @@ local function female_brain(self)
|
||||
childent = baby[1]:get_luaentity() -- get the entity to do further checks
|
||||
end
|
||||
|
||||
local rnd = random(1000)
|
||||
if rnd < 10 then
|
||||
mobkit.make_sound(self,"idle")
|
||||
end
|
||||
|
||||
if childent then
|
||||
predator = water_life.get_closest_enemy(childent,true)
|
||||
if predator then
|
||||
@ -233,10 +238,6 @@ minetest.register_entity("wildcow:auroch_female",{
|
||||
max_hp = 25,
|
||||
timeout = wildcow.lifetime,
|
||||
attack={range=0.5,damage_groups={fleshy=5}},
|
||||
sounds = {
|
||||
--scared='deer_scared',
|
||||
--hurt = 'deer_hurt',
|
||||
},
|
||||
animation = {
|
||||
walk={range={x=216,y=231},speed=10,loop=true},
|
||||
trot={range={x=85,y=114},speed=20,loop=true},
|
||||
@ -249,7 +250,16 @@ minetest.register_entity("wildcow:auroch_female",{
|
||||
{name = "default:diamond", chance = 20, min = 1, max = 3,},
|
||||
{name = "water_life:meat_raw", chance = 2, min = 1, max = 3,},
|
||||
},
|
||||
|
||||
sounds = {
|
||||
idle={
|
||||
{name = "wildcow_cow1",
|
||||
gain = water_life.soundadjust},
|
||||
{name = "wildcow_cow2",
|
||||
gain = water_life.soundadjust},
|
||||
{name = "wildcow_cow3",
|
||||
gain = water_life.soundadjust},
|
||||
}
|
||||
},
|
||||
brainfunc = female_brain,
|
||||
|
||||
on_punch=function(self, puncher, time_from_last_punch, tool_capabilities, dir)
|
||||
|
25
male.lua
25
male.lua
@ -83,7 +83,10 @@ local function male_brain(self)
|
||||
local obj = self.object
|
||||
local pos = self.object:get_pos()
|
||||
local bosspos = water_life.headpos(self)
|
||||
|
||||
local rnd = random(1000)
|
||||
if rnd < 20 then
|
||||
mobkit.make_sound(self,"idle")
|
||||
end
|
||||
|
||||
if wildcow.debug then
|
||||
local kepala = ""
|
||||
@ -178,10 +181,6 @@ minetest.register_entity("wildcow:auroch_male",{
|
||||
max_hp = 25,
|
||||
timeout = wildcow.lifetime,
|
||||
attack={range=0.5,damage_groups={fleshy=10}},
|
||||
sounds = {
|
||||
--scared='deer_scared',
|
||||
--hurt = 'deer_hurt',
|
||||
},
|
||||
animation = {
|
||||
walk={range={x=216,y=231},speed=10,loop=true},
|
||||
trot={range={x=85,y=114},speed=20,loop=true},
|
||||
@ -195,6 +194,22 @@ minetest.register_entity("wildcow:auroch_male",{
|
||||
{name = "default:diamond", chance = 20, min = 1, max = 3,},
|
||||
{name = "water_life:meat_raw", chance = 2, min = 1, max = 3,},
|
||||
},
|
||||
sounds = {
|
||||
angry={
|
||||
{name = 'wildcow_bull_angry',
|
||||
gain = water_life.soundadjust},
|
||||
{name = 'wildcow_bull_angry2',
|
||||
gain = water_life.soundadjust},
|
||||
},
|
||||
idle={
|
||||
{name = "wildcow_bull1",
|
||||
gain = water_life.soundadjust},
|
||||
{name = "wildcow_bull2",
|
||||
gain = water_life.soundadjust},
|
||||
{name = "wildcow_bull3",
|
||||
gain = water_life.soundadjust},
|
||||
}
|
||||
},
|
||||
|
||||
brainfunc = male_brain,
|
||||
|
||||
|
BIN
sounds/wildcow_bull1.ogg
Normal file
BIN
sounds/wildcow_bull1.ogg
Normal file
Binary file not shown.
BIN
sounds/wildcow_bull2.ogg
Normal file
BIN
sounds/wildcow_bull2.ogg
Normal file
Binary file not shown.
BIN
sounds/wildcow_bull_angry.ogg
Normal file
BIN
sounds/wildcow_bull_angry.ogg
Normal file
Binary file not shown.
BIN
sounds/wildcow_bull_angry2.ogg
Normal file
BIN
sounds/wildcow_bull_angry2.ogg
Normal file
Binary file not shown.
BIN
sounds/wildcow_cow1.ogg
Normal file
BIN
sounds/wildcow_cow1.ogg
Normal file
Binary file not shown.
BIN
sounds/wildcow_cow2.ogg
Normal file
BIN
sounds/wildcow_cow2.ogg
Normal file
Binary file not shown.
BIN
sounds/wildcow_cow3.ogg
Normal file
BIN
sounds/wildcow_cow3.ogg
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user