Garry's Mod

Garry's Mod

34 ratings
[TTT2] Music Box Gun [WEAPON]
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Weapon
Addon Tags: Fun, Realism
File Size
Posted
Updated
20.591 MB
Apr 18, 2020 @ 4:10am
Feb 28 @ 10:32am
32 Change Notes ( view )

Subscribe to download
[TTT2] Music Box Gun [WEAPON]

In 1 collection by mexikoedi
Eskalation Pur Server Addons for TTT2 [STANDARD]
161 items
Description
What is this?

This weapon has nice background music. The primary attack of the weapon will shoot a beam that does area damage. It has 7 meme sounds already included which will be picked randomly. Every time you stop firing and start again it will pick a random sound. If you reach the end of the sound it will start again. (Loop) It also has 1 meme sound if you do secondary attack and 1 sound for the background. (You can switch to another weapon to stop the sound.)

Everything is configurable with ConVars. So you can for example deactivate the sounds if they are disturbing or change other settings.
A round restart or map reload/change is required to apply ConVar changes.

Requirements

This works ONLY in TTT2.
TTT2 should appear on the right or if you try to download this addon it should appear for you too.

Who can use it?

It's a weapon that is available for one credit for the detective. (You can change that in the F1 menu.)

F1 ConVars

Name
Description
ttt2_music_box_gun_primary_sound (Def. 1)
Enable/disable sound of the primary attack
ttt2_music_box_gun_secondary_sound (Def. 1)
Enable/disable sound of the secondary attack
ttt2_music_box_gun_standby_sound (Def. 1)
Enable/disable standby sound
ttt2_music_box_gun_damage (Def. 20)
Damage of the music box gun

Can I change the sound?

Yes you can. Extract the addon and delete the sound files which you don't like and add your sound files.
Don't forget to modify the code for the new sound files.
The primary attack sound files are located at: "ttt2_music_box_gun\sound\weapons\musicboxgun\songs" under the names "musicboxgun_loop1.wav", "musicboxgun_loop1.wav", "musicboxgun_loop2.wav", "musicboxgun_loop3.wav", "musicboxgun_loop4.wav", "musicboxgun_loop5.wav", "musicboxgun_loop6.wav" and "musicboxgun_loop7.wav".
The background sound file is located at: "ttt2_music_box_gun\sound\weapons\musicboxgun\songs\dullsounds" under the name "popstar_loop.wav".
The secondary attack sound file is located at: "ttt2_music_box_gun\sound" under the name "meme.wav".
Important: You need .wav sound files and these sound files must be loopable. Only the secondary attack sound file is an exception.
If you don't know how to extract an addon: How to extract GMA files
If you don't know how to create loopable sound: How to create loopable sounds [wiki.facepunch.com]

Can I change other settings?

You can change anything you want after you extracted the addon. After you finished just save and put the whole folder on your server (into the addons folder).

Can I contribute/translate to this addon?

Of course. Thank you very much. Here you go: Source [github.com]

Bugs
  • Beam comes from the head (feature, haha...)
  • This bug only appears sometimes. If you see a player with the weapon, the weapon may be pointed to the ground. Maybe it will be fixed if the player drops the weapon and picks it up again. Maybe you will not get this bug or maybe it is already fixed...
  • Nothing ...

Credits

Auzlex and MARK2580 - Originally made
G. Freimann™
(Based on his "TTT Dubstep Gun" addon: Here )

Thanks to

Reispfannenfresser - For his amazing help with the random sound.
No0b3LiX - For his help with the code.
demarvLP/TTV - For the video and for the beautiful ingame/workshop icons.
DennisWlfgng - For his Spanish translations.
berry - For his Russian translations.

Additional information

If you have any suggestions for improvements, just write them here in the comments. You can also post any ideas or feedback for my future workshop items.

Thanks for using the "Music Box Gun" addon.
6 Comments
mexikoedi  [author] Mar 4, 2021 @ 2:04am 
Yes, the normal path is garrysmod/addons . But it can also be at the new location. Maybe here: steamapps/workshop/content/4000/2065361921 . Don't forget to check the description above for more information.
NoColorFrog Mar 3, 2021 @ 11:14pm 
i want to replace the music file but i can't find the .gma file, is it in /garry'mod/addons ?
mexikoedi  [author] Dec 25, 2020 @ 4:13am 
My Website [mexikoedi.github.io]
Noob3LiX Apr 21, 2020 @ 12:46pm 
ach man Anmoderation wieder verkackt und auf ein neues ITS marphin Time und willkommen zu einer neuen Folge TTT2 mit den Jungs aus dem Gamers Romm <3
demarvLP/TTV Apr 18, 2020 @ 9:31am 
It's Marphin Time :steamhappy:
Slifer808 Apr 18, 2020 @ 9:05am 
⠀⠀ ⠀ ⣀⣀⣤⣤⣤⣀⡀
⠸⠿⡀⠀ ⠀ ⠀⣀⡴⢿⣿⣿⣿⣿⣿⣿⣿⣷⣦⡀
⠀⠀⠀⠀⠑⢄⣠⠾⠁⣀⣄⡈⠙⣿⣿⣿⣿⣿⣿⣿⣿⣆ SHREK APPROVES THIS
⠀⠀⠀⠀⢀⡀⠁⠀⠀⠈⠙⠛⠂⠈⣿⣿⣿⣿⣿⠿⡿⢿⣆
⠀⠀⠀⢀⡾⣁⣀⠀⠴⠂⠙⣗⡀⠀⢻⣿⣿⠭⢤⣴⣦⣤⣹⠀⠀⠀⢀⢴⣶⣆
⠀⠀⢀⣾⣿⣿⣿⣷⣮⣽⣾⣿⣥⣴⣿⣿⡿⢂⠔⢚⡿⢿⣿⣦⣴⣾⠸⣼⡿
⠀⢀⡞⠁⠙⠻⠿⠟⠉⠀⠛⢹⣿⣿⣿⣿⣿⣌⢤⣼⣿⣾⣿⡟⠉
⠀⣾⣷⣶⠇⠀⠀⣤⣄⣀⡀⠈⠻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇
⠀⠉⠈⠉⠀⠀⢦⡈⢻⣿⣿⣿⣶⣶⣶⣶⣤⣽⡹⣿⣿⣿⣿⡇
⠀⠀⠀⠀⠀⠀⠀⠉⠲⣽⡻⢿⣿⣿⣿⣿⣿⣿⣷⣜⣿⣿⣿⡇
⠀⠀ ⠀⠀⠀⠀⠀⢸⣿⣿⣷⣶⣮⣭⣽⣿⣿⣿⣿⣿⣿⣿⠇
⠀⠀⠀⠀⠀⠀⣀⣀⣈⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠇
⠀⠀⠀⠀⠀⠀⢿⣿