Garry's Mod

Garry's Mod

Call of Duty-like Weapon Swapping [ARC9 / TFA/ ArcCW / MW Base]
238 Comments
BonegraVE 20 Jun @ 9:34pm 
Would be cool if you could set how many weapons you can carry and a blacklist.
(Insert Username Here) 26 Mar @ 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 @ 10:33pm 
insane stats? i kind of like that addon so maybe i can look into this
(Insert Username Here) 26 Mar @ 4:34pm 
Ok well that sucks Insane Stats completely breaks this. That destroys what I'm trying to do.
(Insert Username Here) 26 Mar @ 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.
(Insert Username Here) 26 Mar @ 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 @ 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 @ 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 @ 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
breaks dedicated servers. Breaks ULib. Do not use in multiplayer
Jasx435 31 Jan @ 1:54pm 
nice
Froze  [author] 24 Jan @ 10:50pm 
will look into it
Pecel 24 Jan @ 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 @ 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 @ 6:18pm 
yes, the detection is flawed, will be reworked.
Delta606 9 Jan @ 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 @ 3:46am 
will be considered
Ⓕⓛⓞⓟⓟⓞ 7 Jan @ 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 @ 9:57am 
noted, will check and attempt for compatibility
Auestia 2 Jan @ 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.
the feeling of being watched 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 ?
Steve 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
General Michael 3 May, 2023 @ 2:13am 
I tried restarting, I see it only happends on Multiplayer.
Froze  [author] 2 May, 2023 @ 9:43pm 
try restarting the game, the serverside console commands aren't registering yet
Froze  [author] 2 May, 2023 @ 7:39pm 
will be looked into
General Michael 2 May, 2023 @ 2:50pm 
may I know what's wrong?
General Michael 2 May, 2023 @ 2:49pm 
[Call of Duty-like Weapon Swapping [ARC9 / TFA/ ArcCW / MW Base]] lua/autorun/sh_cod_interactions.lua:380: attempt to index a nil value
1. v - lua/autorun/sh_cod_interactions.lua:380
2. unknown - lua/includes/modules/hook.lua:96 (x1761)
Froze  [author] 24 Apr, 2023 @ 7:51pm 
ohh those are not my errors, those are from MW NPC Support and GWZ
please report to their respective pages then
OuterGodBoi 24 Apr, 2023 @ 7:27pm 
[NPC Support for MW 2019 SWEPs] lua/mwbnpcweps/add_compatibility.lua:129: attempt to call method 'IsNPC' (a nil value)
1. Send - lua/mwbnpcweps/add_compatibility.lua:129
2. v - lua/autorun/gwz_hud/elements/closecaptions.lua:476
3. unknown - lua/includes/modules/hook.lua:96
4. EmitSound - [C]:-1
5. unknown - lua/weapons/mg_base/modules/shared/sh_think.lua:155


[GWZ - COD:Warzone Hud] Warning! A net message (EmitSoundDataToClient) is already started! Discarding in favor of the new message! (PlayerIsAttacking)
1. v - lua/autorun/gwz_hud/elements/health_team.lua:173
2. unknown - lua/includes/modules/hook.lua:96

they keep repeating
Froze  [author] 24 Apr, 2023 @ 6:56pm 
still, what are the errors though?
OuterGodBoi 24 Apr, 2023 @ 6:25pm 
there are errors but there not actually causing any issues
OuterGodBoi 24 Apr, 2023 @ 6:13pm 
yep!! That worked finally!!! thank you :)
OuterGodBoi 24 Apr, 2023 @ 5:48pm 
Ok ill try it
Froze  [author] 23 Apr, 2023 @ 10:23pm 
try cod_pickups_key "+walk"
OuterGodBoi 23 Apr, 2023 @ 10:11pm 
yes it does