1
0
Fork 0

Mobs: Disable war_cry sound for now

objects
Wuzzy 2019-01-31 07:57:03 +01:00
parent 27823dbbb3
commit 0a803400fe
2 changed files with 7 additions and 5 deletions

View File

@ -124,9 +124,10 @@ local do_attack = function(self, player)
self.attack = player
self.state = "attack"
if random(0, 100) < 90 then
mob_sound(self, self.sounds.war_cry, true)
end
-- TODO: Implement war_cry sound without being annoying
--if random(0, 100) < 90 then
--mob_sound(self, self.sounds.war_cry, true)
--end
end
@ -1300,7 +1301,8 @@ local smart_mobs = function(self, s, p, dist, dtime)
self.path.stuck_timer = stuck_timeout - 2
else
-- 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)
-- follow path now that it has it

View File

@ -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.
'random' played randomly from time to time.
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.
'shoot_attack' sound played when mob shoots.
'damage' sound heard when mob is hurt.