Garry's Mod

Garry's Mod

Call of Duty-like Weapon Swapping [ARC9 / TFA/ ArcCW / MW Base]
251 Comments
Link Jul 17 @ 4:05am 
does this work with m9k?
KittyCatValera Jun 20 @ 3:31am 
isn`t working i can pickup many weapons and weapons don`t swaping
Froze  [author] May 25 @ 6:07am 
noted
hl1x May 25 @ 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
hl1x May 25 @ 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 ♥♥♥♥♥♥
Cigarette May 21 @ 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 May 6 @ 9:45am 
By any chance could you please also make it swapable with default HL2 weapons?
Froze  [author] Feb 11 @ 6:03pm 
shouldn't be happening, i'll look into it
Jaden The Gundragon Feb 11 @ 5:05pm 
why does the swap doesn't let me have any ammo?
Toxic_Trap Oct 21, 2024 @ 5:40am 
for some reason when i throw the grenade back at the combine the grenade just despawns
fix??
Froze  [author] Oct 17, 2024 @ 9:07pm 
when does that happen
mikuu Oct 17, 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)
Drun(H10) Aug 21, 2024 @ 7:40am 
IT IS WORKING WITH CW2
BonegraVE Jun 20, 2024 @ 9:34pm 
Would be cool if you could set how many weapons you can carry and a blacklist.
Democratic Ice Noodle Mar 26, 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] Mar 26, 2024 @ 10:33pm 
insane stats? i kind of like that addon so maybe i can look into this
Democratic Ice Noodle Mar 26, 2024 @ 4:34pm 
Ok well that sucks Insane Stats completely breaks this. That destroys what I'm trying to do.
Democratic Ice Noodle Mar 26, 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 Mar 26, 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 Mar 15, 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 Mar 15, 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] Mar 6, 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
catlord Mar 6, 2024 @ 12:56pm 
breaks dedicated servers. Breaks ULib. Do not use in multiplayer
Anchovy Jan 31, 2024 @ 1:54pm 
nice
Froze  [author] Jan 24, 2024 @ 10:50pm 
will look into it
Pecel Jan 24, 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] Jan 11, 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] Jan 9, 2024 @ 6:18pm 
yes, the detection is flawed, will be reworked.
Delta606 Jan 9, 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] Jan 9, 2024 @ 3:46am 
will be considered
Ⓕⓛⓞⓟⓟⓞ Jan 7, 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] Jan 2, 2024 @ 9:57am 
noted, will check and attempt for compatibility
ReV20k Jan 2, 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] Oct 24, 2023 @ 5:31pm 
no
Rocky Stone Rogers Oct 24, 2023 @ 12:49pm 
dose this work with the default weapons?
BonegraVE Oct 14, 2023 @ 12:17am 
Finally a functional weapon swap addon! This is all I ever wanted since I first brought gmod back in middle school.
the drunken inspector of sinks Sep 23, 2023 @ 2:55am 
Why do npc a pose when die or just dont turn into ragdoll?
beetlebug_11 Aug 15, 2023 @ 8:46pm 
Froze  [author] Jun 30, 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
WolfPaxHD Jun 30, 2023 @ 7:02pm 
yes its installed for the collection and him
Froze  [author] Jun 30, 2023 @ 6:09pm 
you sure both of you have the addon?
WolfPaxHD Jun 30, 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 Jun 14, 2023 @ 6:34am 
oh ok thx a lot bro :steamthumbsup:
Froze  [author] Jun 14, 2023 @ 4:28am 
same key as swapping
SEAL Jun 14, 2023 @ 2:00am 
how do i bind the grenade throwback button?
Froze  [author] May 12, 2023 @ 1:12am 
interesting, will look into it.
Stand_Up May 12, 2023 @ 12:59am 
game crash if I press the pickup key without a weapon fix ?
Earthes May 11, 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] May 8, 2023 @ 2:08am 
i will try looking into this.
JJoestar May 7, 2023 @ 4:21pm 
i have the same prob than general micheal