Garry's Mod

Garry's Mod

Not enough ratings
[TTT2] Hidden Trap [WEAPON]
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Weapon
Addon Tags: Fun, Realism
File Size
Posted
Updated
4.795 MB
Apr 6, 2021 @ 1:11pm
Jan 26 @ 11:46am
9 Change Notes ( view )

Subscribe to download
[TTT2] Hidden Trap [WEAPON]

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

This is a weapon that shoots invisible traps on valid surfaces if you do primary attack.
Secondary attack plays a random sound from three looped sounds which will be audible for everyone near the owner in case you want to surprise someone. (You can switch to another weapon to stop the sound.)
The trap activation sound is also for everyone near the owner audible.

One trap will cause 20 damage for everyone who steps on it except for the owner and his team.
A popup is also included which will inform the toucher of the trap that he walked over it.
The popup comes with a sound, which will be heard for the toucher and everyone near them.
The shoot animation and the bullet holes are only visible for the owner.

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 and you NEED CS:S for the textures.
TTT2 should appear on the right or if you try to download this addon it should appear for you too.
If you need CS:S, here is how you can get it free and legally: CS:S

Who can use it?

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

F1 ConVars

Name
Description
ttt2_hidden_trap_primary_sound (Def. 1)
Sound of the primary attack
ttt2_hidden_trap_secondary_sound (Def. 1)
Sound of the secondary attack
ttt2_hidden_trap_damage_sound (Def. 1)
Sound of the damage
ttt2_hidden_trap_damage_popup (Def. 1)
Popup because of the damage
ttt2_hidden_trap_damage_popup_duration (Def. 5)
Popup duration of the damage popup
ttt2_hidden_trap_damage (Def. 20)
Damage of the Hidden Trap
ttt2_hidden_trap_ammo (Def. 4)
Ammo of the Hidden Trap
ttt2_hidden_trap_clipSize (Def. 4)
Clipsize of the Hidden Trap

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 file is located at: "ttt2_hidden_trap\sound" under the name "hidden_trap1.wav".
The secondary attack sound files are located at: "ttt2_hidden_trap\sound\secondary" under the names "hidden_trap2.1.wav", "hidden_trap2.2.wav" and "hidden_trap2.3.wav".
The damage sound file is located at: "ttt2_hidden_trap\sound" under the name "hidden_trap3.wav".
Important: You need .wav sound files and these sound files must be loopable. Only the primary attack and the damage sound files are 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
  • Nothing ...

Thanks to

Slifer808 - For the addon idea.
demarvLP/TTV - For the video and for the beautiful ingame/workshop icons.

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 "Hidden Trap" addon.
5 Comments
RealFknNito Apr 29, 2021 @ 10:56am 
It's seriously appreciated. Too many mods with like 50 words or less. :steamhappy:
mexikoedi  [author] Apr 29, 2021 @ 9:22am 
Thanks, the description takes some time too, especially the first one. :)
RealFknNito Apr 29, 2021 @ 8:44am 
The description of this alone is incredible, thank you for this work. Looking forward to testing this!
Slifer808 Apr 6, 2021 @ 5:08pm 
It´s a trap!
mexikoedi  [author] Apr 6, 2021 @ 1:43pm 
My Website [mexikoedi.github.io]