Garry's Mod

Garry's Mod

193 ratings
[TFA][AT] Keep your attachments after death
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Weapon
Addon Tags: Roleplay, Realism
File Size
Posted
Updated
721.000 B
4 Aug, 2019 @ 1:07pm
5 Aug, 2019 @ 9:32am
2 Change Notes ( view )

Subscribe to download
[TFA][AT] Keep your attachments after death

Description
Only supports TFA Attachments

This simple addon permits you to keep your attachments upon death, every 2 seconds it will scrap your current attachments and insert them into a table, each attachment has a specific ID associated to the weapon they were placed onto, if you die in between it doesn't matter either. The attachments are immediatly attached as soon as you pull the concerned weapon out.

If your server is using specific hooks in order to lock/unlock attachments, this will work as well as long as the attachments are unlocked for the player.

There's also another check to make sure the attachments are saved which is called upon weapon switch.
23 Comments
M0RE_THE_V1CT1M 23 Jul, 2024 @ 4:31am 
[[TFA][AT] Keep your attachments after death] lua/autorun/att_death.lua:46: attempt to call method 'Attach' (a nil value)
1. unknown - lua/autorun/att_death.lua:46
spazbot 1 Aug, 2022 @ 12:32am 
?
Alfraido 16 Jul, 2022 @ 10:47am 
just doesnt work sigh
MrPoker 8 Oct, 2021 @ 5:21am 
DONT USE IF YOU USE DROP WEAPON, IT WILL BREAK
R1SU 5 Jan, 2021 @ 9:23pm 
It only works sometimes. sometimes it just doesn't work.
Master Chief 8 Nov, 2020 @ 10:45am 
[[TFA][AT] Keep your attachments after death] lua/autorun/att_death.lua:42: attempt to call method 'GetActiveWeapon' (a nil value)
1. v - lua/autorun/att_death.lua:42
2. Run - lua/includes/modules/hook.lua:84
3. InitAttachments - lua/weapons/tfa_gun_base/common/attachments.lua:485
4. unknown - lua/weapons/tfa_gun_base/shared.lua:692

Ren 5 Nov, 2020 @ 12:30am 
Well this doesn't work at all.
X 2 Nov, 2020 @ 9:54pm 
Broken with latest TFA update
wAFF 30 Aug, 2019 @ 7:55pm 
one of the guys in the thumbnail looks like ricardo milos when he is not
mellish 30 Aug, 2019 @ 2:20pm 
This is perfect.