Garry's Mod

Garry's Mod

69 ratings
Custom Taunt Menu for Prop Hunt
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Fun, Roleplay
File Size
Posted
8.923 KB
21 Dec, 2017 @ 4:16am
1 Change Note ( view )

Subscribe to download
Custom Taunt Menu for Prop Hunt

In 1 collection by Brumble
Hybrid Networks | Addon Storage
139 items
Description
This is a script/addon for Prop Hunt (any version)

All you have to do is look how the current taunts are done and use the same method, do note that the added taunts MUST be of maximum 44100HZ or less, beyond that the taunt will not be heard in-game.

HOW TO INSTALL

1) Subscribe to this addon.
2) Lauch Gmod to download the addon then quit.
3) Head over to garrysmod/addons and look for the tauntmenu.gma
4) Download the latest version of gmad (Addon Extractor.)
5) Copy the tauntmenu.gma into the gmad folder.
6) Run gmad (a folder called tauntmenu will appear)
7) Open tauntmenu.lua and edit to add your custom taunts. (Don't edit if you use default taunts)
8) If you use Pointshop 1, scroll down to line 130 to see how to replace PS2 code with PS1 code
9) upload the tauntmenu.lua to your FTP (IP/lua/autorun/)

Enjoy!

If you have any problems with this, please comment below and I'm happy to help.


Special thanks to Vash for creating this and giving me permission to take it over.

FAQ

-----------------
I don't have a workshop lua?
-----------------

- Create a new lua file with notepad++

- in your empty lua file add this line..

- resource.Addworkshop("") --

- Right click this page (or any addon's page) and click copy page URL

-Paste inside your lua and remove all text from the link except the NUMBERS.

For example..

-https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1238175881&tscn=1516407153

-The numbers you want here are 1238175881.

-Paste them inside the ("") so your new workshop lua looks like this..

-resource.Addworkshop("1238175881") -- TauntMenu

- Save your new workshop lua as "workshop.lua" and save it in your

lua/autorun/server/ (for dedicated)
lua/autorun/ (local)

Version 1.0 changelog:
- Removed bad code from buttons. (send_tauntb14) etc.
- Added example and guides for lua noobs to insert their own taunts.
- recoded the pointshop/points system so this will now work with Pointshop 1 or 2.
- Recoded the GUI for a better fit on screen.
- Re-ordeded the Derma and fixed resolution bugs.
- Added default taunts to lua
- Commented out buttons 2 to 10 with a guide on how to re-enable them.

Version 1.1
- Fixed hunter menu vectors
- Changed bind to KEY_C


Version 1.2
- Added new taunts
- Added more tutorial text for new coders
- Added better descriptions

20 Comments
Brumble  [author] 7 Dec, 2022 @ 5:15am 
I think you're right.
Zetzaro 25 May, 2021 @ 2:30pm 
Got it! I understand now. I do have some further problems sadly but it did open.
The first is that using the default file, I see an error:
[ERROR] lua/autorun/tauntmenu.lua:65: '}' expected (to close '{' at line 22) near 'add'

I commented out the 3 lines found at line 65 and that seemed to resolve it, they didn't seem to be code and were instead instructions. The next problem is that although the menu opened with C, clicking Next for next page closed the menu instead. However, at that point it cannot be reopened, an error appears in chat saying it is already open. I feel like this could be due to /* and */ not being recognised as comment handlers like -- is. I think it's reading all the pages code and breaking somewhere perhaps? I could be completely wrong of course.
Brumble  [author] 25 May, 2021 @ 2:09pm 
lua = goes inside FTP @ Autorun/

FOLDER (tauntmenu/) goes inside gmod/addons/
Zetzaro 25 May, 2021 @ 1:41pm 
Sorry, I must seem stupid at this point, tad confused. Inside my own /addons on my PC, I found the tauntmenu as custom_taunt_menu_for_prop_hunt_1238175881.gma
Running this though the gmad.exe or Gmad Easy Addon Extractor gives me a file called the same name, that contains just a lua file, that then contains just tauntmenu.lua and that is it.

Are you saying I need to put that entire folder made through Gmad Easy Addon, into the /addons folder of my FTP and that's all? I don't need to do anything in ip/lua/autorun like step 9 mentions? Or do I need to have the entire file in /addons and also have the tauntmenu.lua inside /lua/autorun?
I have tried just now to only have the tauntmenu file inside /addons but that didn't work. So it looked like /addons/tauntmenu/lua/tauntmenu.lua
Brumble  [author] 25 May, 2021 @ 1:28pm 
So, pop the .gma addon inside the gma's with the others.

Extract the folder so you end up with a "tauntmenu" folder, and pop that in your FTP (on your server) gmod/addons/

and the autorun files on your server autorun/

it's not a clientside plugin, its for FTP/Server use.
Zetzaro 25 May, 2021 @ 1:24pm 
I used the Gmad inside Garrysmod/Bin and also the Easy GMad route. Both of these gave me the tauntmenu.lua. I then tried using the FTP to add the file to ip/garrysmod/lua/autorun and also tried ip/garrysmod/lua/autorun/server due to it being a hosted server. Neither of these worked. There is no IP/lua/autorun route from what I can tell.
I didn't edit the file at all due to using default taunts and PS2. After those attempts I did edit the file a bit and my actual taunts due to 29 (Running in the 90's) never turning off when used by a prop. Just makes the noise endlessly so I removed the taunt and dropped all the numbers after 29 by one.
Brumble  [author] 25 May, 2021 @ 1:15pm 
1) Subscribe to this addon.
2) Lauch Gmod to download the addon then quit.
3) Head over to garrysmod/addons and look for the tauntmenu.gma
4) Download the latest version of gmad (Addon Extractor.)
5) Copy the tauntmenu.gma into the gmad folder.
6) Run gmad (a folder called tauntmenu will appear)
7) Open tauntmenu.lua and edit to add your custom taunts. (Don't edit if you use default taunts)
8) If you use Pointshop 1, scroll down to line 130 to see how to replace PS2 code with PS1 code
9) upload the tauntmenu.lua to your FTP (IP/lua/autorun/)
Enjoy!

Dont put the file in Autorun... decompile the addon using gmad.exe - then move the addon folder into gmod/addons

Look for tauntmenu.gma, extract it with gma.exe and edit as you see fit.
Zetzaro 25 May, 2021 @ 12:37pm 
Hi! Same as DizzyAdam below, nothing I have done has worked. I added it to my workshop collection, then put the lua file in the Autorun > server > *here*. I thought this was all I needed but I'm not seeing anything appear inside Prop Hunt. Is there a console command usable to force it to appear and check it works? Where should I begin to figure out the problem?
Also, I sent a friend request without reading your profile or considering how many you must get, sorry about that!
Brumble  [author] 10 May, 2020 @ 8:07am 
That's strange, the sound file should play instantly, check your code and ensure net.Start is enabled and not committed out.

2) yeah at the bottom of the code you will see KEY="F3" end) -- you can change this to whager you want.

3) You could create yourself a delay, or a timer use Timer.Create to generate a delay beteween sound files.
RevampPakrati 22 Apr, 2020 @ 7:06am 
Hi The Realist, I will have questions for you regarding tom BetterTon Menu that you have made.

1) When I click on a sound it disappears and reappears in the next round, how do I keep it?

2) Is it possible to change the "F3" to access the menu?

3) How to avoid spamming?

Thank to you and MrBrumble