Garry's Mod

Garry's Mod

48 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:
42 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] 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.
Khaela 7 Mar @ 1:30pm 
I was thinking players should be able to drop one attachment of their choice at a time, as dropping the entire inventory at once wouldn't be very interesting or useful. As for performance, I'm thinking it shouldn't be so much of an issue if the entities are picked back up immediatly by someone else as they would be in most scenarios.
Melow  [author] 7 Mar @ 1:17pm 
Hi. Should the player’s inventory drop as a single entity? I can make each item drop separately, but that would be bad for performance.