GamerGambit / cw2-fas2-weapon-attachment-vendor

Garry's Mod Addon
MIT License
4 stars 1 forks source link

Function to return player attachments after getting revived #6

Open Pauluaner opened 2 months ago

Pauluaner commented 2 months ago

Hey there, I’m using GDef medic system on my server and I am searching for an way to give players back their attachments after they got revived by an defi. You know any why how I can do that.

GamerGambit commented 2 months ago

This should be possible. There's nothing in this addon that actively removes attachments when players die, that happens in the weapon attachments themselves.

I'm unable to find that addon would you be able to provide a link?

Are you also able to provide what game mode and weapon packs you are using please.

Pauluaner commented 2 months ago

Sadly I can’t provide you with the original addon since it’s a payed one, but there is an similar one. Would be cool if you can make it so if you use that defibrillator you keep attachments. Gamemode is DarkRP https://github.com/OverlordAkise/scprp-addons/blob/main/luctus_smedic/lua/weapons/weapon_gdefib.lua

Pauluaner commented 2 months ago

Weapon Base used is CW2.0

GamerGambit commented 2 months ago

Have a quick look this should be possible but without the addon you are using I won't be able to test this. Can you provide the name of the actual addon or a link and I'll buy it.

Pauluaner commented 2 months ago

So currently im using https://www.gmodstore.com/market/view/easzy-s-body-damage-an-effective-body-damage-system/versions as an Medic System, but since there is no Defi included im using the one from an addon from GMSTORE that sadly (i just relized) is not available to buy anymore. So basicaly i can use this one https://github.com/OverlordAkise/scprp-addons/tree/main/luctus_smedic as well, its just an recreation of the Medic System i took the Defibrilator from, with better code.

Pauluaner commented 2 months ago

You need the addons from the weapons im using as well?

GamerGambit commented 2 months ago

No thanks I have CW2.0 from the workshop. I can see about adding support for Luctus Medic if that's acceptable. No promises but it seems doable

Pauluaner commented 2 months ago

Yeah would be lovely if you could make it happen.

GamerGambit commented 2 months ago

I've pushed support for this but haven't tested it thoroughly. I tested with CW2.0, CW2.0 Magazine System, FAS2.0, and ArcCW and they all seem to work correctly. Let me know how you go.

Pauluaner commented 2 months ago

Thx a lot mate <3

GamerGambit commented 1 month ago

How did you go with this? Any issues?