Updated documentation, fixed a few minor things.

This commit is contained in:
Storm Dragon
2026-01-26 10:52:09 -05:00
parent f8a885f506
commit 837deacf6c
4 changed files with 43 additions and 2 deletions
+5 -2
View File
@@ -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) {