I suspiciously f****d up last commit so theres second part of the previous one
This commit is contained in:
@@ -92,22 +92,22 @@ local entity = {
|
||||
-- play sus sound randomly with different pitch depending on situation
|
||||
|
||||
if self.mode == 0 or self.mode == 1 then -- stand still or walk
|
||||
sound_pitch = 0.8
|
||||
sound_propability = 100
|
||||
self.sound_pitch = 0.8
|
||||
self.sound_propability = 100
|
||||
|
||||
else -- chase (2)
|
||||
sound_pitch = 1.2
|
||||
sound_propability = 50
|
||||
self.sound_pitch = 1.2
|
||||
self.sound_propability = 50
|
||||
end
|
||||
|
||||
|
||||
if math.random(sound_propability) == 1 then
|
||||
if math.random(self.sound_propability) == 1 then
|
||||
amogus_general.play_random_sound(
|
||||
"sus_sound",
|
||||
self.object:get_pos(),
|
||||
1.0, -- gain
|
||||
40, -- max_hear_distance
|
||||
sound_pitch -- pitch
|
||||
self.sound_pitch -- pitch
|
||||
)
|
||||
end
|
||||
|
||||
|
||||
1
mods/amogus_entities/mod.conf
Normal file
1
mods/amogus_entities/mod.conf
Normal file
@@ -0,0 +1 @@
|
||||
name = amogus_entities
|
||||
Reference in New Issue
Block a user