Updated documentation, fixed a few minor things.
This commit is contained in:
@@ -29,8 +29,11 @@ int get_current_weapon_range() {
|
||||
|
||||
void play_weapon_range_sound(string sound_file, int creature_pos) {
|
||||
if (!file_exists(sound_file)) return;
|
||||
// Notification sound: play at player position for consistent perception
|
||||
play_1d_with_volume_step(sound_file, x, x, false, PLAYER_WEAPON_SOUND_VOLUME_STEP);
|
||||
// Notification sound: keep centered on the player like footsteps
|
||||
int handle = p.play_stationary(sound_file, false);
|
||||
if (handle != -1) {
|
||||
p.update_sound_positioning_values(handle, -1.0, PLAYER_WEAPON_SOUND_VOLUME_STEP, true);
|
||||
}
|
||||
}
|
||||
|
||||
void update_weapon_range_audio(int creature_pos, bool &inout was_in_range) {
|
||||
|
||||
Reference in New Issue
Block a user