Garry's Mod

Garry's Mod

TTT to CW2.0 Weapon Conversion Addon V2
123 Comments
Fixz 4 Apr @ 4:15pm 
Well, I didnt thougt it will ne that easy, just deleted the files, thats it. Thanks anyway :)
Logan  [author] 3 Apr @ 6:51pm 
Delete them from your server, lol
Fixz 3 Apr @ 8:02am 
Hey Logan, thanks for the Awesome mod. I installed it to the server via the Collection option. It seems to work. Is there an option to disable the guns, that doesnt get changed with your mod? (for example: the G3SG1, standart mp5...) ?
Logan  [author] 18 Nov, 2024 @ 6:34pm 
No idea. Probably, unless TTT2 has updated the weapon base to do additional stuff, in which case, it probably wouldn't work.
Hydroenix 17 Nov, 2024 @ 10:25am 
Does this addon work with TTT2?
Logan  [author] 13 Oct, 2024 @ 7:17pm 
Simply having other CW2 weapons installed on the server, and having `ttt_cw2_allow_generation_for_unused` enabled (which it is by default) should allow the pack to spawn in additional weapons.
Cozmo 8 Oct, 2024 @ 9:13pm 
How do I customize this mod, id like to add more guns to the pool and such and I'm having trouble getting it to work
Logan  [author] 21 Sep, 2024 @ 9:02pm 
ADDON HAS BEEN UPDATED TO V2 - ConVars have changed and new functionality has been introduced!

If you don't want to update your server, don't add the newest version of the addon to your server. Clients only need the materials and they haven't been updated.
Logan  [author] 27 Nov, 2023 @ 8:33pm 
Issues should be fixed. I can run the basic weapons with just this script locally with 0 problems. Let me know if there's any other issues.
Logan  [author] 21 Nov, 2023 @ 4:52pm 
I'll take a peak but I make no promises.
allsan6 19 Nov, 2023 @ 8:46pm 
Great mod but do you mind updating the CW 2.0 weapons for TTT? There's a guy in the comments with the supposed fix but every time I try to add those lines, Gmod keeps deleting the file whenever I start up a game.
Valdrenik 13 Nov, 2023 @ 10:40am 
where can i find cw2tttmain.lua
V von B 8 Jan, 2023 @ 3:33am 
In case anyone is experiencing issues after upgrading to the most recent CW2.0 update:

To fix the issue that you can't aim anymore while walking:
in cw2tttmain.lua, find this line (line 149):
local wepbase = weapons.GetStored( wepbasestring )

and insert

-- Fix aiming while walking
wepbase.LoseAimVelocity = 1 --original value: 0.8

after it.

To fix the lua error "lua/weapons/cw_base/cl_model.lua:1172: attempt to call local 'v' (a table value)":

in cw2tttmain.lua find this function (lines 271 - 296)

function wepbase:drawAttachments()

and insert

function wepbase:drawAttachmentsPost()
for k, v in pairs(self.elementRenderPost) do
if not isfunction(v) and IsValid( v ) then
v(self)
elseif isfunction(v) then
v(self)
end
end
end

after the end of that function
Logan  [author] 28 Jul, 2022 @ 7:37am 
That information should be located in the Installers Guide located in the addon description, above.
Norzka 20 Jul, 2022 @ 6:20am 
so to add your own guns, do you create a file called cw2ttconfig.lua, does it already exist or do I have to decompile the plugin gma file?
Logan  [author] 16 Jul, 2022 @ 3:06pm 
This addon converts CW2.0 weapons to be compatible with TTT. This is doable because the amount of code overhead that makes a "TTT weapon" a "TTT weapon" is relatively small.

This inverse is absolutely NOT true. You will, unfortunately, need to be skilled enough at coding to make the weapon yourself.
Greenie /Taxibutler 6 Jul, 2022 @ 8:02pm 
Hey, is there an easy way to add new weapons to TTT to convert them to CW? I tried to add/copy weapons in my gamemode folder, and they do show up ingame, but they don't switch to the CW version. If there really isn't an easy way, do you think you could make an example file that has what the finished file looks like for the CW weapons when they get loaded, so I can just drop that in and figure it out myself?
Logan  [author] 3 Jan, 2022 @ 10:25am 
It's actually the first paragraph in the item description...
Touch Me 3 Jan, 2022 @ 10:09am 
I accidentaly rewrote my keybindings and now can't seem to open the attachements. What's the console command for the attachments so that I can bind it manually again?
Logan  [author] 6 Dec, 2020 @ 1:25pm 
Sounds like they don't have CW2.0 queued to download on server join. That is not an issue with my addon.
Ren 6 Dec, 2020 @ 11:21am 
hey I'm having some issue with playing this with my friends. When ever i fire a gun in full auto or even just in rapid succession I can hear it just fine. How ever when people on my server do the same thing their gun will shoot once then it will empty the mag but have no recoil animation, sound, or muzzle flash. Is there any fix to this?
Ostross 14 Sep, 2020 @ 3:47am 
Thank you for your help Logan and thank you, Viscus, for the excellent suggestion. Much of my time has been saved.
Viscus 13 Sep, 2020 @ 6:52pm 
ArcCW supports TTT and TTT2 out of the box - and replaces all the weapons.
Logan  [author] 13 Sep, 2020 @ 6:27pm 
You're welcome to check on your own.

This mod is not intended for ArcCW, but I'm sure it could be made to work with that base with some minor edits.
Viscus 13 Sep, 2020 @ 3:09pm 
just use arccw at this point.
Ostross 13 Sep, 2020 @ 2:55pm 
Yep, just wanna confirm that real problems start when ttt_cw20conversionmod_attachmentstyle 1 is chosen.
Ostross 13 Sep, 2020 @ 2:30pm 
Oh, I forgot to mention that the weapons will be indeed replaced. you can use them and reload and change fire modes and add attachments, but if attachments are spawning around the map, they are bugged.
Ostross 13 Sep, 2020 @ 1:31pm 
Could you check? Pretty please with sugar on top. :-)
Logan  [author] 13 Sep, 2020 @ 11:32am 
I have no idea, more than likely not.
Ostross 13 Sep, 2020 @ 10:32am 
Hi! DOes this work with TTT2?
Logan  [author] 19 Jul, 2020 @ 6:53pm 
No, it can't be done like that. This addon simply converts the ttt weapon, such as weapon_ttt_m16 INTO a custom cw_ar15. It doesn't simply replace what's being spawned, it fully overwrites all backend values for the weapon.
Viscus 19 Jul, 2020 @ 9:54am 
Did it. Thanks.

I don't know if it would be possible, but could a weapon table be made for weapons such as: weapon_ttt_m16 = { cw2_ak47, cw2_ar15} etc - it would replace ttt m16 spawns from weapons with those tables. that way I won't have to re-arm every map.
Logan  [author] 15 Jul, 2020 @ 12:50pm 
If you use style 2 or 3, and go into the code and disable the PostGamemodeLoaded hook (can be found at line 363 in the cw2tttmain.lua file), either by editing the code (if you're comfortable with that) or by commenting out each line. That'll do what you want it to do.
Viscus 15 Jul, 2020 @ 10:29am 
I use pointshop 2 for attachments. Is there a way to enable the V menu and disable attachments from spawning - or could you make a new style for that?
Logan  [author] 12 Jul, 2020 @ 2:26pm 
The CW2.0 base allows each weapon to have their own individual FOV value that overrides user settings (some weapon models & animations clip at higher FOVs). If you want to change the FOV when you use a gun, you have to adjust it for each gun. You'll have to go into the lua file to do this.
Rymd 12 Jul, 2020 @ 8:44am 
Is there anyway to fix the FOV change when you use CW2 guns? I have my FOV in the settings to 100
Logan  [author] 7 Jul, 2020 @ 8:18am 
Sorry couldn't be more help.
Jakey 7 Jul, 2020 @ 1:15am 
Ack, almost it, but not quite exactly :p
Thanks anyway though!
Logan  [author] 6 Jul, 2020 @ 6:27pm 
@V1197 That's not a native issue with the addon. Something's either conflicting with it, or they're from another addon entirely. Just because it shows up as an error doesn't mean they can't be interacted with, and since you CAN'T pick them up, I don't think it's related to CW2 or my addon. Can you verify what the entity is that's erroring?

@Jakey Yes, it's explained in the Installer's Guide, which is linked in the addon description above. Section III. All it requires is that you have some non-default TTT weapons installed on the server (there's a link to an addon pack in the installer's guide that you can follow).
Jakey 6 Jul, 2020 @ 5:59am 
Is there a way to have additional weapons spawn? Like other types of pistols, SMGs, ARs etc
Viscus 5 Jul, 2020 @ 10:08pm 
So, some of the weapon attachment boxes show up as errors? Unable to pick them up too. CW2 + CW2 Extra are both on the server, I spawned all the boxes in sandbox and they showed up fine.
Logan  [author] 4 Jun, 2020 @ 12:58pm 
That is not an issue with my addon.
Goblin Conscript 4 Jun, 2020 @ 3:29am 
Sometimes when firing a CW weapon there will be no gunshot but only an impact sound, any fix for this?
333232 5 May, 2020 @ 12:38pm 
Thanks for help,now it work:GiveHug:
Logan  [author] 5 May, 2020 @ 12:36pm 
You may alternatively be running an addon that conflicts with mine.
Logan  [author] 5 May, 2020 @ 12:36pm 
Either enable the attachments with ttt_cw20conversionmod_attachmentstyle set to > 0, or re-bind noclip to v. All I did was switch the weapon base's default key to open the modification menu from +context_menu to noclip. I altered nothing else. If you're running into problems, it's out of my control.
333232 5 May, 2020 @ 12:29pm 
When i press "noclip" button "v" attachments menu dont appear,how can i fix it?
Logan  [author] 30 Apr, 2020 @ 2:32pm 
The attachment menu is opened with noclip.
Sloppy Papi 30 Apr, 2020 @ 12:04am 
Whats the command for changing the keybind of the attachment menu?
Elkelly 10 Apr, 2020 @ 10:24pm 
thank u again logan, i appreciate it