Skip to content

Commit

Permalink
aw dangit
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan committed Sep 29, 2024
1 parent a722320 commit 63658b9
Show file tree
Hide file tree
Showing 38,490 changed files with 78,169 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.lua text eol=lf
17 changes: 17 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Pull Request Action
on:
pull_request:
paths:
- 'sound/**'
- 'lua/chatsounds/lists_nosend/**'
branches:
- 'master'
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2

- name: Preprocessor 🔧
uses: Metastruct/chatsounds-preprocessor-action@v1
34 changes: 34 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Push Action
on:
push:
paths:
- 'sound/**'
- 'lua/chatsounds/lists_nosend/**'
jobs:
check:
if: github.ref != 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2

- name: Preprocessor 🔧
uses: Metastruct/chatsounds-preprocessor-action@v1
deploy:
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2

- name: Preprocessor 🔧
uses: Metastruct/chatsounds-preprocessor-action@v1

- name: Deploy 🚀
uses: EndBug/add-and-commit@v7
with:
add: 'lua/chatsounds/lists_nosend'
author_name: Meta Automator
author_email: [email protected]
default_author: user_info
pull: 'NO-PULL'
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/chatsounds-preprocessor-cache
/invalid-soundfiles.txt
/chatsounds-preprocessor
95 changes: 95 additions & 0 deletions HOW TO ADD SOUNDS.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
https://github.com/Metastruct/garrysmod-chatsounds

1. Fork the repository: https://help.github.com/articles/fork-a-repo/

=== using GitHub for Windows: https://windows.github.com/ ===
2. Click the "Clone in Desktop" button on https://github.com/Metastruct/garrysmod-chatsounds
( or if you forked: https://github.com/YOUR_USERNAME/garrysmod-chatsounds )

=== using TortoiseSVN: http://tortoisesvn.net/downloads.html ===
2. Right click in your addons folder and "SVN Checkout..." the url: https://github.com/Metastruct/garrysmod-chatsounds/trunk
( or if you forked: https://github.com/YOUR_USERNAME/garrysmod-chatsounds/trunk )

3. Add the sounds using the preferred format.

=============================================
format : ogg
ogg quality : ~30% / ~3
sample rate : 44.1 kHz
channels : mono (if it's music use stereo)
bit depth : 16 bit
=============================================

- Must follow Github's AUP
- Name your folders properly, this involves naming the folder after a category that fits all of its contained sounds
- "Personalized folders" are to be avoided, do not just shove whatever inside a folder with your name
- Ensure that you can spell

4. Make sure you remove left over files that aren't ogg files
5. If necessary, you can add a "map.txt" into the folder that contains lines formatted like this:
[source] ; [dest]
or like this
[source] ; [dest]; replace
[source] is the sound name that you want to copy or move
[dest] is the sound name that you want to copy or move to
'replace' is a keyword that you can add to move instead of copy
The file is executed from top to bottom.
"sound name" can refer to either single sounds or entire sound groups.
If [dest] exists already, [source] will be added/merged (see the example below).

If you have a sound named "single" and a sound group "multi", you could, for example, create such a map:
single; single2
single ;single3
single2;single4
single; single1; replace
multi; multiple; replace
single1; multiple

This would change the generated list from the default:
single = single.ogg; multi = {multi/1.ogg, multi/2.ogg}
to something like this:
single1 = single.ogg
single2 = single.ogg
single3 = single.ogg
single4 = single.ogg
multiple = {multi/1.ogg, multi/2.ogg, single.ogg}

Note, you can't add a line like "single; singleX" to the bottom of this example file because at that point "single"
doesn't exist anymore (it has been moved in line 4 ("single; single1; replace" <- note the "replace" keyword))

6. Run "chatsounds-preprocessor.exe" in the root of the repo ( optional, will be generated by a CI script
and committed as a separate commit in case you don't run it )
7. Commit!! ( and Sync if using GitHub for Windows )

8. If you forked you will need to create a "Pull Request": https://help.github.com/articles/creating-a-pull-request/
( if using GitHub for Windows you can click the button to the left of "Sync" to do a pull request
but be sure to select "Metastruct/master" as the destination branch )


You can use Audacity, foobar2000 or Adobe Audition to convert to ogg.

HOW TO CONVERT STEREO TRACKS TO MONO IN AUDACITY:

1. Select the track by clicking in its Track Control Panel
2. Click Tracks > Stereo Track to Mono

HOW TO CHANGE OGG QUALITY IN AUDACITY:

1. Click on "File" > "Export"
2. Select "Ogg Vorbis Files" in the "Save as type" drop-down menu.
3. Click on "Options..."
4. Adjust the slider and set it to 3
5. Press OK

HOW TO CONVERT WITH FOOBAR2000:

1. Right click on desired track, then Convert -> Quick Convert
2. Select "Ogg Vorbis", then press Edit and set Quality to q3.0
3. Press OK, then Convert
4. At this step you will be required to specify path to oggenc2, if you haven't done it already.
Download it from here: http://www.rarewares.org/files/ogg/oggenc2.87-1.3.3-generic.zip
Put it in some folder and specify path to it when foobar2000 prompts for it.


In Adobe Audition it helps to make markers and name markers that you can export all at once in the end.
In Audacity you can attach marker to current selection by pressing Ctrl-B.
35 changes: 35 additions & 0 deletions HOW TO USE MODIFIERS.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@

===============================================
Default Chatsound Volume: (75)
Volume range: (0 - 100)

Default Chatsound Pitch range: (95 - 105)
Pitch range: (0 - 255)
===============================================

! (Louder volume)
!! (Even Louder volume)
!!! (WHAT???)

?? (Change pitch depending on eye angle pitch)

% (pitch set)
%%x.x (pitch(x) to pitch(x) fade)

^ (volume set)
^^x.x (volume(x) to volume(x) fade)

# (specific chatsound if multiples exist)
##x (chatsound from that folder(x) if it exists)

& (DSP mod)

--x (interupts the sound when (x)% of the sound has been played)

=x (play next sound after (x) seconds)

%0.1?? (loops sound with pitch changing depending on eye angle pitch)

%%100.101=x (loop sound at 100% pitch for (x) seconds)

++x (starts sound (x)% in (this one never works though))
49 changes: 49 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
Chatsounds
==========

Chat sounds system for Garry's Mod (with extra sounds)
<a href="https://github.com/Metastruct/garrysmod-chatsounds/actions/workflows/push.yml"><img align="right" alt="check sounds and update lists" src="https://github.com/Metastruct/garrysmod-chatsounds/actions/workflows/push.yml/badge.svg?branch=master" /></a>

## NOTICE 2020-01-13
- Repository was rewritten and forced pushed on 2020-01-13. Commit messages, commits and files were altered or removed to attempt removing sounds violating [GitHub AUP](https://help.github.com/en/github/site-policy/github-acceptable-use-policies#2-content-restrictions). You will have to force pull the repository to get all changes. You can use `repo-reset.cmd` to do that. [better_profanity](https://pypi.org/project/better-profanity/) python module was used for the removal.
- tl;dr: run [repo-reset.cmd](https://raw.githubusercontent.com/Metastruct/garrysmod-chatsounds/master/repo-reset.cmd) in the chatsounds directory.
- **Please report any remaining offensive or otherwise GitHub AUP violating sounds you might find by creating a new issue!**

## How to install
### Installing is not necessary to hear the sounds if the server has [neo-chatsounds](https://github.com/Earu/neo-chatsounds) installed.
- Install a git client ([GitKraken](https://www.gitkraken.com) or [GitHub Dekstop](https://desktop.github.com)) or use the [command line](https://docs.gitlab.com/ee/gitlab-basics/start-using-git.html).
- Git clone https://github.com/Metastruct/garrysmod-chatsounds.git into your addons folder.
- To see if you installed it correctly, you should now have ```garrysmod/addons/garrysmod-chatsounds/lua``` folder.

<details>
<summary>Old alternative install method (not recommended to use)</summary>

- Install subversion client: http://tortoisesvn.net/downloads.html
- Checkout: https://github.com/Metastruct/garrysmod-chatsounds/trunk
- Save to ```garrysmod/addons/garrysmod-chatsounds```
- To see if you installed it correctly, you should now have ```garrysmod/addons/garrysmod-chatsounds/lua``` folder
</details>

## How to install on server
- Git clone or download zip of https://github.com/Earu/neo-chatsounds.
- This allows players to not have to download the entire repo to use chatsounds.

<details>
<summary>Old method</summary>

- Create directory ```garrysmod/addons/garrysmod-chatsounds```
- Checkout: ```https://github.com/Metastruct/garrysmod-chatsounds/trunk/lua``` to ```garrysmod/addons/garrysmod-chatsounds/lua```
- To see if you installed it correctly, you should now have ```garrysmod/addons/garrysmod-chatsounds/lua/autorun/chatsounds.lua``` file.
</details>

## How to contribute more sounds to this repository
- **SOUNDS MUST OBEY [GITHUB AUP](https://help.github.com/en/github/site-policy/github-acceptable-use-policies#2-content-restrictions).**
- This includes any attempt at hiding violating sounds via it's name or other means.
- [Read this](https://github.com/Metastruct/garrysmod-chatsounds/blob/master/HOW%20TO%20ADD%20SOUNDS.txt).
- We accept pull requests.
- Running the preprocessor is not mandatory anymore - if you don't run it, lists will be auto-generated about 3 minutes after you commit/push the changes.

If you do not understand, you can ask people who have already added sounds to add them for you.

## Want to preview or share sounds over the Web?
- Check out the Web version [here](https://cs.spiralp.xyz/).
2 changes: 2 additions & 0 deletions chatsounds-preprocessor source.url
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[InternetShortcut]
URL=https://github.com/PotcFdk/chatsounds-preprocessor
1 change: 1 addition & 0 deletions chatsounds-preprocessor.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
preprocessor\chatsounds-preprocessor.exe
17 changes: 17 additions & 0 deletions lua/autorun/chatsounds.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
if CLIENT then
include("chatsounds/co.lua")
include("chatsounds/cl_core.lua")
include("chatsounds/capsadmins_font_cache_thing.lua")
include("chatsounds/autocomplete.lua")
include("chatsounds/updatecheck.lua")
end

if SERVER then
AddCSLuaFile("autorun/chatsounds.lua")
AddCSLuaFile("chatsounds/capsadmins_font_cache_thing.lua")
AddCSLuaFile("chatsounds/autocomplete.lua")
AddCSLuaFile("chatsounds/co.lua")
AddCSLuaFile("chatsounds/updatecheck.lua")

include("chatsounds/sv_core.lua")
end
Loading

0 comments on commit 63658b9

Please sign in to comment.