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.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
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue