Garry's Mod

Garry's Mod

45 ratings
[TFA] Attachment Entities + Gun Workbench
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Entity
Addon Tags: Fun, Roleplay, Realism
File Size
Posted
Updated
13.454 MB
17 Jun, 2022 @ 2:34am
9 Mar @ 7:40am
25 Change Notes ( view )

Subscribe to download
[TFA] Attachment Entities + Gun Workbench

Description
✨ Generates entities for the all TFA attachments, supports every attachment.
Have you ever wished to pick up attachments like in CW 2.0? Then this addon is perfect for you! It generates entities for all TFA attachments, supporting every single one.



📦 Stacking
Stack as many attachments as you want!



🛠️ Workbench (Inspired by ArcCW)
Now you can customize weapons using a workbench! (Enable in "Utilities - TFA settings")



📃 Whitelist / Blacklist / Freelist
  • Attachment Whitelist:
    Allows specified attachments to be equipped or removed without the need for a Gun Workbench.
  • Attachment Blacklist:
    Prevent specific attachments from being generated as entities. Useful for excluding certain attachment bases from spawning in the game.
  • Attachment Freelist:
    Each listed attachment can be used infinitely.

⚙️ Configuration:
It is simple to configure this addon in the "Utilities - TFA settings - Attachments"

⚠️ Warning:
Some TFA attachments may have the same name. Additionally, this addon will generate entities for attachment bases as there’s no way to differentiate them automatically.



📄 Credits:
44 Comments
c4t 30 Jun @ 11:43pm 
Got this error :

[[TFA] Attachment Entities + Gun Workbench] lua/tfa/external/cl_attachment_options.lua:71: attempt to call field 'AddColorMixer' (a nil value)
1. ControlPanelBuildFunction - lua/tfa/external/cl_attachment_options.lua:71
2. FillViaTable - gamemodes/sandbox/gamemode/spawnmenu/controlpanel.lua:188
3. ActivateTool - lua/includes/modules/spawnmenu.lua:116
4. DoClick - gamemodes/sandbox/gamemode/spawnmenu/toolpanel.lua:203
5. unknown - lua/vgui/dlabel.lua:253
audhubhehe 5 Jun @ 11:06pm 
can it just let workbench work,but dont need the atttachment ?
Gnilomord 3 Jun @ 4:19am 
your mod trolled me. Very much. I used the fucking mysterious watermelon, and now with this addon when I enter the world I have constant errors
Melow  [author] 9 Mar @ 7:41am 
I’ve pushed the update. Now, I’m working on the attachment-dropping feature.
Melow  [author] 8 Mar @ 6:07pm 
Soon, I will push a new update with a few fixes and improvements. In the meantime, I'm trying to break everything - but so far, everything seems stable. I also made a few concepts for dropping attachments with a pretty UI instead of the old chat commands method.
Melow  [author] 8 Mar @ 12:37pm 
Hi. It should be fixed now.
Khaela 8 Mar @ 8:56am 
Hey, got the following error on a dedicated server :

[TFA Base] lua/tfa/modules/cl_tfa_settingsmenu.lua:51: Unknown ConVar: sv_tfa_ents_deathreset!
1. assert - [C]:-1
2. CheckBoxNet - lua/tfa/modules/cl_tfa_settingsmenu.lua:51
3. ControlPanelBuildFunction - lua/tfa/external/cl_attachment_options.lua:51
4. FillViaTable - gamemodes/sandbox/gamemode/spawnmenu/controlpanel.lua:126
5. ActivateTool - lua/includes/modules/spawnmenu.lua:116
6. DoClick - gamemodes/sandbox/gamemode/spawnmenu/toolpanel.lua:202
7. unknown - lua/vgui/dlabel.lua:254
Melow  [author] 7 Mar @ 3:07pm 
Absolutely.
Khaela 7 Mar @ 2:33pm 
Ok great ! In case of player death then yeah one single entity would be better. If you add that drop on death feature could you include the option to turn it off please ?
Melow  [author] 7 Mar @ 1:32pm 
Oh, sorry, I meant as if the player dies, should their inventory drop as a single entity? But the idea you suggested would work without any problems, so I'll start with that.