mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-26 03:07:32 +01:00
Mobs: Disable war_cry sound for now
This commit is contained in:
parent
27823dbbb3
commit
0a803400fe
@ -124,9 +124,10 @@ local do_attack = function(self, player)
|
|||||||
self.attack = player
|
self.attack = player
|
||||||
self.state = "attack"
|
self.state = "attack"
|
||||||
|
|
||||||
if random(0, 100) < 90 then
|
-- TODO: Implement war_cry sound without being annoying
|
||||||
mob_sound(self, self.sounds.war_cry, true)
|
--if random(0, 100) < 90 then
|
||||||
end
|
--mob_sound(self, self.sounds.war_cry, true)
|
||||||
|
--end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
@ -1300,7 +1301,8 @@ local smart_mobs = function(self, s, p, dist, dtime)
|
|||||||
self.path.stuck_timer = stuck_timeout - 2
|
self.path.stuck_timer = stuck_timeout - 2
|
||||||
else
|
else
|
||||||
-- yay i found path
|
-- yay i found path
|
||||||
mob_sound(self, self.sounds.war_cry, true)
|
-- TODO: Implement war_cry sound without being annoying
|
||||||
|
--mob_sound(self, self.sounds.war_cry, true)
|
||||||
set_velocity(self, self.walk_velocity)
|
set_velocity(self, self.walk_velocity)
|
||||||
|
|
||||||
-- follow path now that it has it
|
-- follow path now that it has it
|
||||||
|
@ -133,7 +133,7 @@ functions needed for the mob to work properly which contains the following:
|
|||||||
'distance' maximum distance sounds can be heard, default is 10.
|
'distance' maximum distance sounds can be heard, default is 10.
|
||||||
'random' played randomly from time to time.
|
'random' played randomly from time to time.
|
||||||
also played for overfeeding animal.
|
also played for overfeeding animal.
|
||||||
'war_cry' what you hear when mob starts to attack player.
|
'war_cry' what you hear when mob starts to attack player. (currently disabled)
|
||||||
'attack' what you hear when being attacked.
|
'attack' what you hear when being attacked.
|
||||||
'shoot_attack' sound played when mob shoots.
|
'shoot_attack' sound played when mob shoots.
|
||||||
'damage' sound heard when mob is hurt.
|
'damage' sound heard when mob is hurt.
|
||||||
|
Loading…
Reference in New Issue
Block a user