Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make random sounds index a table. #337

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

slarer
Copy link

@slarer slarer commented Sep 27, 2019

fixes multiple pointless concatenations every time a sound is emitted.
also makes it easier to add new sounds, and in the torch swep removes partial duplicate string in util.PrecacheSound.
the comment was omitted from the torch because, since they are not added by acf, adding them to the table programmatically does not really have any disadvantage other than consistency.

this also helps for the unlikely use case of searching for sound file strings in ACF, i.e. to add them to a fastdl.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant