I suspiciously f****d up last commit so theres second part of the previous one

This commit is contained in:
2023-02-18 17:15:39 +01:00
parent cbeab46431
commit 1622e5cd6d
8 changed files with 49 additions and 87 deletions

View File

@@ -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

View File

@@ -0,0 +1 @@
name = amogus_entities