Garry's Mod

Garry's Mod

Call of Duty-like Weapon Swapping [ARC9 / TFA/ ArcCW / MW Base]
251 Comments
Link 17 Jul @ 4:05am 
does this work with m9k?
KittyCatValera 20 Jun @ 3:31am 
isn`t working i can pickup many weapons and weapons don`t swaping
Froze  [author] 25 May @ 6:07am 
noted
MF DOOM enjoyer 25 May @ 5:51am 
figured it out
mod doesnt like it when your alt key isnt binded to +walk
so it breaks? what a strange bug lmao
MF DOOM enjoyer 25 May @ 5:46am 
[Call of Duty-like Weapon Swapping [ARC9 / TFA/ ArcCW / MW Base]] lua/autorun/sh_cod_interactions.lua:580: bad argument #1 to 'upper' (string expected, got no value)
1. upper - [C]:-1
2. v - lua/autorun/sh_cod_interactions.lua:580
3. unknown - lua/includes/modules/hook.lua:102 (x4)

happens when i hover over a compatibile weapon so it doesnt work at all
also hud ui is fucked
Cigarette 21 May @ 4:19pm 
A issue i seem to constantly encounter when using Arc9, is it doesn't equip the weapon with attachments, only the base model.

Granted, i primarily use the Escape From Tarkov pack.
Nderyu 6 May @ 9:45am 
By any chance could you please also make it swapable with default HL2 weapons?
Froze  [author] 11 Feb @ 6:03pm 
shouldn't be happening, i'll look into it
Jaden The Gundragon 11 Feb @ 5:05pm 
why does the swap doesn't let me have any ammo?
Toxic_Trap 21 Oct, 2024 @ 5:40am 
for some reason when i throw the grenade back at the combine the grenade just despawns
fix??
Froze  [author] 17 Oct, 2024 @ 9:07pm 
when does that happen
mikuu 17 Oct, 2024 @ 8:55pm 
[Call of Duty-like Weapon Swapping [ARC9 / TFA/ ArcCW / MW Base]] lua/autorun/sh_cod_interactions.lua:453: attempt to compare nil with number
1. fn - lua/autorun/sh_cod_interactions.lua:453
2. unknown - lua/ulib/shared/hook.lua:109 (x3961)
H10 21 Aug, 2024 @ 7:40am 
IT IS WORKING WITH CW2
BonegraVE 20 Jun, 2024 @ 9:34pm 
Would be cool if you could set how many weapons you can carry and a blacklist.
Democratic Ice Noodle 26 Mar, 2024 @ 11:19pm 
Yeah it might be because Insane stats has settings for autopickup which might be what is causing problems. Trying to use Insane Stats, plus a entity replacer, TFA CSO sweps and half life coop to make a sort of rouge lit mode, but you can only take four weapons.
Froze  [author] 26 Mar, 2024 @ 10:33pm 
insane stats? i kind of like that addon so maybe i can look into this
Democratic Ice Noodle 26 Mar, 2024 @ 4:34pm 
Ok well that sucks Insane Stats completely breaks this. That destroys what I'm trying to do.
Democratic Ice Noodle 26 Mar, 2024 @ 4:28pm 
[Call of Duty-like Weapon Swapping [ARC9 / TFA/ ArcCW / MW Base]] lua/autorun/sh_cod_interactions.lua:190: attempt to index global 'new_wep' (a nil value)
1. func - lua/autorun/sh_cod_interactions.lua:190
2. unknown - lua/includes/extensions/net.lua:38 (x16)
Wondering if the TFA CSO sweps don't work with this for some reason.
Democratic Ice Noodle 26 Mar, 2024 @ 4:24pm 
[Call of Duty-like Weapon Swapping [ARC9 / TFA/ ArcCW / MW Base]] lua/autorun/sh_cod_interactions.lua:535: bad argument #1 to 'upper' (string expected, got no value)
1. upper - [C]:-1
2. v - lua/autorun/sh_cod_interactions.lua:535
3. unknown - lua/includes/modules/hook.lua:96 (x180)
Happened when I tried to pickup a weapon.
Strangely I cannot spawn gear in my inventory.
Omarb10legends 15 Mar, 2024 @ 11:44am 
This happens anytime you drop a weapon. On the ground and if you are standing near it, the errors stop if you walk away from it
Omarb10legends 15 Mar, 2024 @ 11:43am 
[Call of Duty-like Weapon Swapping [ARC9 / TFA/ ArcCW / MW Base]] lua/autorun/sh_cod_interactions.lua:524: bad argument #1 to 'SetMaterial' (IMaterial expected, got userdata)
1. SetMaterial - [C]:-1
2. v - lua/autorun/sh_cod_interactions.lua:524
3. unknown - lua/includes/modules/hook.lua:96
Froze  [author] 6 Mar, 2024 @ 3:13pm 
can't test the dedicated server part, but it does not break ulib if you use the github version and it works for peer to peer gmod hosted servers
-=rPR=- Vincent Vega 6 Mar, 2024 @ 12:56pm 
breaks dedicated servers. Breaks ULib. Do not use in multiplayer
Anchovy 31 Jan, 2024 @ 1:54pm 
nice
Froze  [author] 24 Jan, 2024 @ 10:50pm 
will look into it
Pecel 24 Jan, 2024 @ 9:37pm 
the throwback doesnt function anymore for some reason
[Call of Duty-like Weapon Swapping [ARC9 / TFA/ ArcCW / MW Base]] lua/autorun/sh_vmanip_throw_back_grenade.lua:81: bad argument #1 to 'upper' (string expected, got no value)
1. upper - [C]:-1
2. v - lua/autorun/sh_vmanip_throw_back_grenade.lua:81
3. unknown - lua/includes/modules/hook.lua:96
[Call of Duty-like Weapon Swapping [ARC9 / TFA/ ArcCW / MW Base]] lua/autorun/sh_vmanip_throw_back_grenade.lua:117: bad argument #1 to 'upper' (string expected, got no value)
1. upper - [C]:-1
2. v - lua/autorun/sh_vmanip_throw_back_grenade.lua:117
3. unknown - lua/includes/modules/hook.lua:96
Froze  [author] 11 Jan, 2024 @ 1:46am 
tfa weapon packs that has it's own base that uses the tfa base (tfa mw guns use base_iw3 instead of tfa_gun_base) are now supported

reserve ammunition will retain it's ammunition after swapping now (tfa guns' ammunition kept adding up before)

i haven't ran into the quick loadouts and drop weapon problem though
Froze  [author] 9 Jan, 2024 @ 6:18pm 
yes, the detection is flawed, will be reworked.
Delta606 9 Jan, 2024 @ 3:56pm 
After testing, this mod is not registering TFA weapon packs for Call of Duty: Modern Warfare 2 & 3, as well as Call of Duty 4. While testing along side MW Base, those are being registered just fine, and the grenade throw is working just fine as well. It just appears that some submods of TFA won't be picked up under your system.
Froze  [author] 9 Jan, 2024 @ 3:46am 
will be considered
Ⓕⓛⓞⓟⓟⓞ 7 Jan, 2024 @ 3:59pm 
Hey, is there any way to make this the only method of picking up weapons? It doesnt seems as if vmanip pickup gives an option to disable picking weapons up entirely. any help would be appreciated, thank you!
Froze  [author] 2 Jan, 2024 @ 9:57am 
noted, will check and attempt for compatibility
ReDmon 2 Jan, 2024 @ 9:44am 
it seems it makes conflict with YuRaNnNzZZ´s Drop Weapon addon (and maybe with ARC9 with that mod), everytime i drop the weapon or trying to switch it shoots a lua error
Froze  [author] 24 Oct, 2023 @ 5:31pm 
no
Rocky Stone Rogers 24 Oct, 2023 @ 12:49pm 
dose this work with the default weapons?
BonegraVE 14 Oct, 2023 @ 12:17am 
Finally a functional weapon swap addon! This is all I ever wanted since I first brought gmod back in middle school.
Alpha 2-1 23 Sep, 2023 @ 2:55am 
Why do npc a pose when die or just dont turn into ragdoll?
beetlebug_11 15 Aug, 2023 @ 8:46pm 
Froze  [author] 30 Jun, 2023 @ 9:43pm 
must be a multiplayer issue
will try looking into it but i dont play multiplayer so i'm sorry if i can't fix this
WolfPax 30 Jun, 2023 @ 7:02pm 
yes its installed for the collection and him
Froze  [author] 30 Jun, 2023 @ 6:09pm 
you sure both of you have the addon?
WolfPax 30 Jun, 2023 @ 3:24pm 
causes errors when my friend joins the game, and spams a sound


[Call of Duty-like Weapon Swapping [ARC9 / TFA/ ArcCW / MW Base]] lua/autorun/sh_cod_interactions.lua:380: attempt to index a nil value

fn - lua/autorun/sh_cod_interactions.lua:380
unknown - lua/ulib/shared/hook.lua:109
SEAL 14 Jun, 2023 @ 6:34am 
oh ok thx a lot bro :steamthumbsup:
Froze  [author] 14 Jun, 2023 @ 4:28am 
same key as swapping
SEAL 14 Jun, 2023 @ 2:00am 
how do i bind the grenade throwback button?
Froze  [author] 12 May, 2023 @ 1:12am 
interesting, will look into it.
Stand_Up 12 May, 2023 @ 12:59am 
game crash if I press the pickup key without a weapon fix ?
Earthes 11 May, 2023 @ 7:23am 
i have an issue where the +zoom key does not allow me to throwback grenades at all, while weapon swapping function works just fine with that key. i made sure to type "+zoom" for the cvar cod_pickups_key.
Froze  [author] 8 May, 2023 @ 2:08am 
i will try looking into this.
JJoestar 7 May, 2023 @ 4:21pm 
i have the same prob than general micheal