Skip to content
DataNext edited this page Jul 21, 2024 · 6 revisions

This page will help you to setup custom taunts on your server

Old explaination here

Sound files

To start, we will need audio/sounds files.

Sound file are in .wav and .mp3 format. Other format haven't been tested.
Prefer .wav files to mp3 files for best compatibilty. (mp3 also works)

Then, you will have to place your sound files on your server in garrysmod/sound/ultimateph/ (if the folders don't exist, create them)

Configurating taunts

After you have installed your sound files, you will need to create and configure the taunt.
To do this, go to garrysmod/lua/, create a folder called ultimateph and inside this new folder, create another folder called taunts.

You should end up with something like garrysmod/lua/ultimateph/taunts/

Inside the taunts folder, create a file called wathever you want but which ends with .lua (for example something.lua).
Open that lua file with you favorite code editor (like VS Code, Notepad++, ...)
Copy and paste the code below in the lua file

addTaunt("name", {
    "ultimateph/sound1.wav",
    "ultimateph/sound2.wav"
}, "team", "gender", {"category1", "category2"}, durationOverride, allowedModels)

This code will add only 1 taunt, so add as many as you want taunts
In clear, each addTaunt adds one entry to the taunt list which when clicked will randomly play one of the sound files

Then you will need to replace these values:

  • name : the name of your sound/taunt that will appear in the list
  • sound1.wav : the path to your sound file (don't include sound/)
  • team : the team it should belong to (props or hunters); may be a list of teams
  • gender : the gender of the voice (male, female or both/nil); Note: if set to male, only male player models will be able to use the taunt, same for female
  • category : the categories the taunt should belong to (all categories should be camelCase and not contain spaces)
  • durationOverride : the length the taunt goes for (you must specify this for mp3, unnecessary for wav)
  • allowedModels : a table of player model names or paths which should have access to the taunt. If nil (or not specified), all may access the taunt.

Examples

image

Clone this wiki locally