b6e586edaf
I had forgotten to license the sonic boom texture lol |
||
---|---|---|
textures | ||
LICENSE.txt | ||
README.md | ||
depends.txt | ||
description.txt | ||
init.lua |
README.md
Sound distance mod [v1.0] by Cosmos
This mod only adds a function, which plays a sound with a different gain depending on the distance to the sound origin. It can be used so players can know if they're either closer or further to the sound origin.
Incase the sound source is moving, it has a pitch change if moving towards the player.
How to use:
sound_distance_play(pos, sound, sound_gain, distance, moving, yaw, vel, force_sound_speed)
Example:
sound_distance_play(self.object:get_pos(), "example_sound", 1, 16, true, self.object:get_yaw(), self.object:get_velocity(), false)
See: license.txt for license.