Garry's Mod

Garry's Mod

43 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
Jun 17, 2022 @ 2:34am
Mar 9 @ 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:
41 Comments
Melow  [author] Mar 9 @ 7:41am 
I’ve pushed the update. Now, I’m working on the attachment-dropping feature.
Melow  [author] Mar 8 @ 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] Mar 8 @ 12:37pm 
Hi. It should be fixed now.
Khaela Mar 8 @ 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] Mar 7 @ 3:07pm 
Absolutely.
Khaela Mar 7 @ 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] Mar 7 @ 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 Mar 7 @ 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] Mar 7 @ 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.
Khaela Mar 7 @ 8:14am 
Hey, me again, still a fan of this addon, I was wondering if you could consider adding the possibility for players to drop attachments in their inventory ? Would be useful for roleplay to let players give attachments to eachother.