Skip to content

Commit

Permalink
Fixed play_sound
Browse files Browse the repository at this point in the history
Co-Authored-By: Artemii Kravchuk <115405408+ArtemiiKravchuk@users.noreply.github.com>
  • Loading branch information
glebi574 and artiekra committed May 2, 2024
1 parent 73c3761 commit 229f8e4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ppol/pewpew.lua
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,11 @@ end
local ps = pewpew.play_sound
local psa = pewpew.play_ambient_sound
function play_sound(path, v1, v2, v3)
return v2 and psa(mpath(path), v1, v2, v3 or 0) or ps(mpath(path), v1 or 0)
if v2 then
ps(mpath(path), v3 or 0, v1, v2)
else
psa(mpath(path), v1 or 0)
end
end

local ne = pewpew.new_customizable_entity
Expand Down

0 comments on commit 229f8e4

Please sign in to comment.