Sound_Distance: Use pointsound, because the engine may do a funny

with channels and whatnot in the OpenAL backend. It works when
no entities are involved.
This commit is contained in:
Marco Cawthorne 2021-09-12 01:17:26 +02:00
parent ab34230016
commit 81116646e4
Signed by: eukara
GPG Key ID: C196CD8BA993248A
1 changed files with 3 additions and 2 deletions

View File

@ -329,7 +329,7 @@ Sound_Distance(entity target, string shader)
print(sprintf("Sound_Distance: %s\n", argv(r)));
#endif
sound(
/*sound(
target,
5,
argv(r),
@ -338,7 +338,8 @@ Sound_Distance(entity target, string shader)
pitch,
flag,
g_sounds[sample].offset
);
);*/
pointsound(target.origin, argv(r), volume, ATTN_NONE);
}
void