Garry's Mod
34 ψήφοι
[TTT2] Music Box Gun [WEAPON]
   
Βραβείο
Αγαπημένο
Αγαπημένο
Μη αγαπημένο
Content Type: Addon
Addon Type: Weapon
Addon Tags: Fun, Realism
Μέγεθος αρχείου
Αναρτήθηκε
Ενημερώθηκε
20.591 MB
18 Απρ 2020, 4:10
28 Φεβ, 10:32
32 σημειώσεις αλλαγών ( προβολή )

Συνδρομή για λήψη
[TTT2] Music Box Gun [WEAPON]

ΣΕ 1 ΣΥΛΛΟΓΗ ΑΠΟ mexikoedi
Eskalation Pur Server Addons for TTT2 [STANDARD]
161 αντικείμενα
ΠΕΡΙΓΡΑΦΗ
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 σχόλια
mexikoedi  [Δημιουργός] 4 Μαρ 2021, 2:04 
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 3 Μαρ 2021, 23:14 
i want to replace the music file but i can't find the .gma file, is it in /garry'mod/addons ?
mexikoedi  [Δημιουργός] 25 Δεκ 2020, 4:13 
My Website [mexikoedi.github.io]
Noob3LiX 21 Απρ 2020, 12:46 
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 18 Απρ 2020, 9:31 
It's Marphin Time :steamhappy:
Slifer808 18 Απρ 2020, 9:05 
⠀⠀ ⠀ ⣀⣀⣤⣤⣤⣀⡀
⠸⠿⡀⠀ ⠀ ⠀⣀⡴⢿⣿⣿⣿⣿⣿⣿⣿⣷⣦⡀
⠀⠀⠀⠀⠑⢄⣠⠾⠁⣀⣄⡈⠙⣿⣿⣿⣿⣿⣿⣿⣿⣆ SHREK APPROVES THIS
⠀⠀⠀⠀⢀⡀⠁⠀⠀⠈⠙⠛⠂⠈⣿⣿⣿⣿⣿⠿⡿⢿⣆
⠀⠀⠀⢀⡾⣁⣀⠀⠴⠂⠙⣗⡀⠀⢻⣿⣿⠭⢤⣴⣦⣤⣹⠀⠀⠀⢀⢴⣶⣆
⠀⠀⢀⣾⣿⣿⣿⣷⣮⣽⣾⣿⣥⣴⣿⣿⡿⢂⠔⢚⡿⢿⣿⣦⣴⣾⠸⣼⡿
⠀⢀⡞⠁⠙⠻⠿⠟⠉⠀⠛⢹⣿⣿⣿⣿⣿⣌⢤⣼⣿⣾⣿⡟⠉
⠀⣾⣷⣶⠇⠀⠀⣤⣄⣀⡀⠈⠻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇
⠀⠉⠈⠉⠀⠀⢦⡈⢻⣿⣿⣿⣶⣶⣶⣶⣤⣽⡹⣿⣿⣿⣿⡇
⠀⠀⠀⠀⠀⠀⠀⠉⠲⣽⡻⢿⣿⣿⣿⣿⣿⣿⣷⣜⣿⣿⣿⡇
⠀⠀ ⠀⠀⠀⠀⠀⢸⣿⣿⣷⣶⣮⣭⣽⣿⣿⣿⣿⣿⣿⣿⠇
⠀⠀⠀⠀⠀⠀⣀⣀⣈⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠇
⠀⠀⠀⠀⠀⠀⢿⣿