Garry's Mod

Garry's Mod

Prophunters
Adding taunts is not bloody working
So, I followed the tutorial, did everything as asked and the taunt does not appear on the taunt list no matter what.

Here's a few pics to show what I did.

http://puu.sh/9P1Jd/0342c2a2ee.png
http://puu.sh/9P1L4/17232fd07e.png
http://puu.sh/9P1M6/6681b0b52b.png

Tell me, how can all this be possibly not working?
< >
正在显示第 1 - 15 条,共 22 条留言
Mechanical Mind  [开发者] 2014 年 6 月 29 日 上午 5:53 
Don't start the file name with "sound/"
Dont use backslashes \ replace all backslashes \ with forward slashes /
Make sure you end with the file extension ".wav" or ".mp3"
If its an mp3 make sure to specify the duration after the category (in seconds) e.g. {"talk"}, 130)
Fluffypaws, The Fluffy Pawed 2014 年 6 月 29 日 上午 10:11 
Alright so,
I did the stuff and I realised most of the other people with custom taunts working
ARE USING THE BLOODY DEDICATED SERVER
I use my own darn GMod to host servers.

Here's how it looks like right now

addTaunt("Hashtag", {
"taunts/props/DravenSkin03.UltimateEffort3D.mp3"
}, "props", nil, {"Sound Pack"}, 2)

For gods sake please take me out of this hell
Iceman_F1 2014 年 6 月 29 日 上午 10:44 
If you get the zip file from here - https://github.com/mechanicalmind/prophunters - and put that in the steam folder on your computer

Steam\steamapps\common\GarrysMod\garrysmod\gamemodes\prophunters

that should let you load things. Then, in

Steam\steamapps\common\GarrysMod\garrysmod\gamemodes\prophunters\gamemode\taunts

make your own <name>.lua and insert the addTaunt code. The sounds are located in the following area

Steam\steamapps\common\GarrysMod\garrysmod\sound\prophunters\taunts

My code looks like this

addTaunt("D3", {
"prophunters/taunts/d3_legendary_sound.mp3"
}, "both", nil, {"misc", "Iceman_F1"}, 2)

and I am able to play it in game. I have yet to test if others can hear it but it's a step in the right direction for me.
Fluffypaws, The Fluffy Pawed 2014 年 6 月 29 日 上午 10:49 
THANK YOU
I HAVE ACOMPLISHED CODING THANKS TO FELLOW CODERS
YEEEEEEEEEEEEEEEEEEEEEEEEEE
Iron_Alpha10 2014 年 7 月 14 日 下午 6:21 
Hi i wanted to ask if someone can make a .lua code for ALL the taunts i have here in these 2 screenshots for taunting in prophunters. (There all .wav and i want them for the client gmod not server)

http://pbrd.co/1mc7E1W
http://pbrd.co/1mc7QhJ
最后由 Iron_Alpha10 编辑于; 2014 年 7 月 14 日 下午 6:25
Iceman_F1 2014 年 7 月 14 日 下午 7:53 
Iron_alpha, I doubt anyone is going to do the work for you and make you the files you can easily do yourself.

Although I run my own server, I have tested on my client to see if it can host it and run custom taunts and it works. Since, as you said in a different discussion, you know how to rename a file, I'm pretty sure you can follow the instructions I laid out above.

If you extracted everything properly, in the folder you will create your own lua file, there is a text file called "how-to-add-new-taunts" that will explain everything else you need to know.

Subscribing to workshop files is as-is with no further customization. If you want to customize things, you have to be calm and willing to mess around with it yourself from time to time to tweak it just right. Getting angry at others who are just trying to help isn't the right way to go about it.
Mechanical Mind  [开发者] 2014 年 7 月 14 日 下午 9:32 
Iron_alpha10, There is a tutorial here
https://github.com/mechanicalmind/prophunters/blob/master/gamemode/taunts/how-to-add-new-taunts.txt
I've recently improved it so it should be easy enough to follow. If you have any questions reply here.
Iron_Alpha10 2014 年 7 月 15 日 上午 11:05 
still does not work -__-
Mechanical Mind  [开发者] 2014 年 7 月 15 日 下午 11:07 
Post a picture of where your sound files are located, a picture of where your .lua file is and a picture of the lua file.
Iron_Alpha10 2014 年 7 月 16 日 下午 12:32 
Where my .lua is located
http://pbrd.co/1ysrtKW
Where my sound files are located
http://pbrd.co/1ysry1a
Mechanical Mind  [开发者] 2014 年 7 月 16 日 下午 10:22 
Remove the space from the name of the lua file, if that doesn't help post the contents of the lua file.
Iceman_F1 2014 年 7 月 17 日 上午 9:06 
There's no close bracket and an extra comma.

You have

addTaunt("90s", {
"prophunters/90s.wav"
}, "props", "both", {"Old Taunts"}, <-- comma not needed

and should look like

addTaunt("D3", {
"prophunters/taunts/d3_legendary_sound.mp3"
}, "both", nil, {"misc", "Iceman_F1"}, 2) <-- Need this close bracket
最后由 Iceman_F1 编辑于; 2014 年 7 月 17 日 上午 9:08
Iron_Alpha10 2014 年 7 月 17 日 上午 9:50 
that really did'nt really do anything but it keeps creating the "Something is creating script errors" in the console
Mechanical Mind  [开发者] 2014 年 7 月 18 日 上午 12:29 
Post the new file contents and any errors from your console.
< >
正在显示第 1 - 15 条,共 22 条留言
每页显示数: 1530 50