Garry's Mod

Garry's Mod

TFA For TTT
75 条留言
Karate Walrus 2023 年 2 月 5 日 上午 3:59 
Krystalhydralisk the clip and and the gun's ammo need to be the same. But that has to be changed per-weapon unless someone knows how to write a script to do that automatically. But you really need a custom lua script for a ttt weapon where you rewrite the existing one so that it has the right slow, hold type, ammo type, clip size (that equals ammo and isn't bigger than the ammo), whether or not it's a traitor or detective weapon and can be bought, what the icon is for it in the shop, etc.
Krystalhydralisk 2022 年 4 月 1 日 下午 4:16 
So i know it's porably been asked before but is there an easy way to download an Lua so that TTT TFA guns can pick up ammo normally and not use their reserves for the clip?
Torbjörn sgn.gg 2021 年 7 月 12 日 下午 9:16 
@kebokyo, did you figure that out? I'm trying to use the CS:GO guns for TFA in TTT and am having the same exact issue.
kebokyo 2020 年 12 月 12 日 上午 10:47 
I'm trying to use a bunch of Mac Tonight's COD weapons, and for some reason half the guns won't let me ironsight. What's up with that?
X 2020 年 10 月 30 日 下午 6:40 
Fantastic Addon if you're using TFA for TTT
Ender 2020 年 9 月 4 日 下午 8:48 
help with error in equipment shop interact with other ttt traitor weapons
[GOTR] Mechami  [作者] 2020 年 6 月 23 日 下午 8:03 
When you say customize do you mean customize the weapons stats?

This version of the addon is quite old; I'm hoping to update it at some point but haven't gotten around to doing so.

Alot has probably changed in TFA base so I don't have any context for what's causing your issue at the moment.
🦊ОкУнь НеБEсHый✞ 2020 年 6 月 23 日 上午 9:38 
I can't customize the weapon, what should I do?
Karate Walrus 2020 年 3 月 18 日 下午 5:59 
Yah it's nice - gets the old weapons on tfa if you are using them. And then also it has a nice f1 menu in-game so you can edit all the settings like graphical stuff, aim down sight sensitivity, gun bob, etc. via the graphical interface vs using console commands.
bingley 2020 年 3 月 18 日 下午 4:10 
Ay, does this addon still work? I mean, it's from 4 years ago...
Karate Walrus 2020 年 3 月 18 日 上午 9:10 
Also a video on youtube for longevity https://www.youtube.com/watch?v=CGRd23TNjUs
Karate Walrus 2020 年 3 月 18 日 上午 7:46 
PIZZA TIME I put up a guide for tfa ttt crap https://www.twitch.tv/videos/569698451
Marrko 2020 年 3 月 17 日 下午 11:32 
How do I port over TFA weapons into TTT?
Alt+F4 2020 年 3 月 5 日 下午 3:54 
For anyone who is trying to use this mod on their TTT servers:
If you're noticing gunshots registering more than 1 hit randomly on people, you need to turn off penetration for the server. Sadly this means you can't shoot through doors but it will stop the random multi-hits which breaks gameplay.

sv_tfa_bullet_penetration 0 <--- put this in server console
CullyDC 2019 年 10 月 25 日 上午 7:24 
Heads up for people who had the same problem as me:
(default TTT weapons would blur your entire screen when aiming down sights):
"cl_tfa_fx_rtscopeblur_mode 0"
seems to fix it.
Niko #teamtojo 2019 年 7 月 12 日 下午 8:11 
Thanks for the iron sights tip, and yeah I set up the ammo to use the black ops ammo boxes for the rifles.
Karate Walrus 2019 年 7 月 12 日 下午 7:39 
Also I'd recommend setting this value so you can actually aim down sights at targets and be able to shoot them if they aren't like right in front of you (for guns that don't have scopes).

SWEP.IronSightsSensitivity = .4
Karate Walrus 2019 年 7 月 12 日 下午 7:38 
oh yeah swep.primary.ammo should match with swep.ammoent

So if you are using swep.primary.ammo = smg then swep.ammoent needs to be equal to item_ammo_smg1_ttt

ar ammo doesn't exist by default in ttt but it does come included in that blackops pack
Also, you will end up with more ammo each time you drop and pick up the gun (for TFA guns) unless SWEP.Primary.ClipSize and SWEP.Primary.DefaultClip are the same number
Niko #teamtojo 2019 年 7 月 12 日 下午 2:06 
Ah, I figured it out! The CS:GO guns want the TTT ammo boxes to match the base ammo type that the guns have themselves. E.G. if the Deagle uses 357 ammo in sandbox, the ammo box it has to pick up must be the 357 box that TTT Snipers use, instead of the custom TTT Deagle ammo. I suppose if I were to set the base ammo to the custom one, it would work that way.
Niko #teamtojo 2019 年 7 月 12 日 下午 1:55 
Huh, if I set the AK47's ammo to the ammo type that the Black Ops Assault Rifles use (the one RKellyJelly sent earlier in the thread), they start working. Weird...
Niko #teamtojo 2019 年 7 月 12 日 下午 1:19 
https://pastebin.com/iVtHJtfR

There's a part of the code labeled --[[TTT]]-- that was already present. Only difference is throughout the CSGO lua files that have this chunk of code (others didnt and i merely added it's presence), AutoSpawnable was set to false, and the string.find() functions checked for the wrong gamemode name (since the name of the gamemode internally is "terrortown", and the original --[[TTT]]-- checked for "ttt" and "terrorist") and the ammo type was always item_ammo_smg1_ttt. There were several things i noticed when I flipped the switch for the AK-47 only:

- Enabling AutoSpawnable in only the AK47 lua file suddenly made ALL of the CSGO guns spawn, even stuff like the C4 and Medi-Shot.
- Weapons would sometimes obey the AmmoEnt line, and others would flat out ignore it. This also seemingly happened at random, and reconnecting would even sometimes break guns that would pick up ammo in the past.
Karate Walrus 2019 年 7 月 12 日 上午 11:11 
If you pastebin the lua and link it here I could take a look
Niko #teamtojo 2019 年 7 月 11 日 下午 8:09 
Been trying to get the CS:GO weapons working, seems like the lua files already have a TTT section of code in them. However, for the life of me I can't figure out why they cannot pick up ammo, despite the line SWEP.AmmoEnt = "item_ammo_smg1_ttt" being present. They only receive ammo when you drop the weapon and pick it back up again.
Karate Walrus 2019 年 6 月 29 日 上午 8:51 
tfa guns do have to be configured to work with ttt though. They need to be configured to spawn and have the same clipsize as defaultclip otherwise dropping them and picking them up just gives you more ammo each time. Dunno why. For example - here is this nice tfa weapon
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=1725472147

with lua converted to make it work with ttt - complete with random attachments being picked for it upon picking it up
https://pastebin.com/vn3EjwzT

Or you can download that file pack I mentioned below via {链接已删除} and poke around in the weapon lua files and see how the weapons are set up.

Karate Walrus 2019 年 6 月 29 日 上午 8:38 
The default guns already work in ttt due to tfa base coming with a ttt patch. So this is not needed. The only thing this is good for now is the f1 menu (which is super nice) to customize the tfa base settings in the graphical interface rather than having to use console commands. The default guns kinda suck ballsacks though. Recommend https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=1551226871 for a comprehensive weapon pack and traitor weapons that are pretty well-balanced, very low on the graphics required and file size.
BENNI.RoR 2019 年 6 月 29 日 上午 8:31 
I suppose there is no proper tutorial to get these working in TTT?
Karate Walrus 2019 年 4 月 8 日 下午 4:54 
Alibiks, I changed the key to noclip because noclip isn't really used in ttt. That way I can still access quickchat with v by default For example:

--elseif string.find(bind, "zoom") and pressed then
elseif string.find(bind, "noclip") and pressed then

in
garrysmod/gamemodes/terrortown/gamemode/cl_keys.lua
Karate Walrus 2019 年 4 月 6 日 下午 9:14 
Welcome, Thanks for telling me how to be able to change the radio commands. That's big fat oprah tits.
TheAlibiks 2019 年 4 月 6 日 下午 1:38 
Rebinding the cmenu works well. Thanks for that, I didn't knew it was rebindable.

If you feel fine altering the terrortown files and disabling the radio commands you can go into \gamemode\cl_keys.lua and comment out line 63 to 66. This allows other mods to use the button. The Killing Floor 2 Melees all work for me with the radio commands disabled.
Karate Walrus 2019 年 4 月 5 日 下午 9:46 
you can change the bind for the menu. You can set it manually on a local server you are running from gmod via 'bind l sv_tfa_cmenu_key' to make it the L key. It should not longer be the c key then. If it is, you can type 'unbind c' Also, on a server you can make a .lua file with this command in it and put it in the garrysmod/lua/autorun folder

RunConsoleCommand( "sv_tfa_cmenu_key", "22" ) -- rebinds inspect menu to L, otherwise it will conflict with buy menu

As for the chat issue. I dunno about that. I would like to figure that out too because while I don't really care about the skins, weapon bashing (melee with a weapon in your hand) mostly uses +zoom as well. So all these tfa_bash_base guns you can't bash with and that's a bummer. Plus one of the samurai swords has a nifty attack AND the killing floor shield that can actually block bullets (would be a great item for the detective) requires +zoom to work. I checked weapon_tttbase and it's not in there.
TheAlibiks 2019 年 4 月 5 日 上午 5:28 
@RKellyJelly How do you handle the C menu of TFA? I know that you can disable it with sv_tfa_cmenu 0 but some weapons use it so change scopes and attachments.

Some other weapons use different key binds that also conflict with TTT. For example the CSGO pack you posted uses the "Suit Zoom" Key as a custom menu key to change skins which conflicts with the chat call outs from TTT. I havn't really found a way to solve those conflicts.
Karate Walrus 2019 年 4 月 3 日 下午 3:53 
Mechwarrior also did mention below you don't need this mod anymore for tfa weapons to work in ttt. Although, this mod does add a nice f1 menu option for enabling/disabling features for tfa which is pretty useful in instances where your fps is tanking because of the massive effects and you want to disable some graphical stuff.
Karate Walrus 2019 年 4 月 3 日 下午 3:52 
Ok, I got the tfa weapons working. I couldn't pick up the ammo because I had to a

SWEP.AmmoEnt = "item_ammo_pistol_ttt"

line.
That's the ammo that will be picked up (pistol ammo in this case). Also, to keep from weapons automatically giving ammo everytime they get picked up (rather than just once as it should be) you have to set the clipsize and defaultclip to be the same.
So if SWEP.Primary.ClipSize = 10 then
SWEP.Primary.DefaultClip = 10 is correct

Also swep.slot has to be in there somewhere and swep.kind. Usually I do 3 for heavies (main weapons) and 2 for pistols (secondaries)
For example -

-- TTT Code --

SWEP.AutoSpawnable = false

SWEP.AmmoEnt = "item_ammo_smg1_ttt"

SWEP.Kind = WEAPON_HEAVY

SWEP.AllowDrop = true

SWEP.Slot = 3

-- End of TTT Code --

Karate Walrus 2019 年 3 月 25 日 下午 9:15 
actually I can't get any tfa weapons so far to pick up ammo in ttt, the ammo boxes don't seem to work
Karate Walrus 2019 年 3 月 25 日 下午 5:08 
also vipes I think you'd be better off with https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=533104097 for tfa. Better weapon models and everything and they work great in ttt
Karate Walrus 2019 年 3 月 25 日 下午 5:07 
Well all the tfa weapons seem to work in ttt so far for me that I've tested, just the same as they do in gmod.
Vipes 2019 年 3 月 25 日 上午 12:57 
Also, I hate to ask, but could you also bring over these weapons?
https://psteamcommunity.yuanyoumao.com/workshop/filedetails/?id=253746161
Vipes 2019 年 3 月 25 日 上午 12:35 
The latest TFA Base as TTT support? But the author left a comment saying it doesn't. I'm confused.
Karate Walrus 2019 年 3 月 17 日 下午 6:53 
Oh yeah, I did it. I just placed into a map in ttt with weapon placer and boom. I got a mag 7 =D I dunno how to change the context menu though. c brings up both the menu for the traitor and also does weapon examining.
Karate Walrus 2019 年 3 月 17 日 下午 6:03 
so then if I use the weapon placer I could place them on a map or how I get them to spawn in ttt?
Karate Walrus 2019 年 3 月 17 日 下午 5:36 
oh neat thanks!
[GOTR] Mechami  [作者] 2019 年 3 月 17 日 上午 10:52 
@RKellyJelly The latest version of TFA Base has TTT support; You don't need this for that. At some point this addon will be updated to just port the vanilla TTT weapons to the latest version of TFA Base.
Karate Walrus 2019 年 3 月 17 日 上午 10:48 
so I can convert existing tfa weapons to use this base?
< blank > 2018 年 9 月 12 日 上午 12:31 
I'm having issues with ironsight aiming on a gun I am porting. Any advice?
< blank > 2018 年 9 月 11 日 下午 9:34 
Does this still work?
Fesiug 2018 年 5 月 16 日 下午 3:14 
hi is this jesus
Igzilee 2017 年 7 月 26 日 下午 12:46 
does it only work in TTT, because i downloaded the base and they only appear as spawnable scopes no weapons

miss sluggiez 2017 年 6 月 29 日 下午 7:48 
RDM, what's wrong with it? ;/
CupCakeR 2017 年 5 月 28 日 上午 12:26 
this is very bad
Estrogen Enjoyer 2017 年 2 月 26 日 上午 10:13 
Is there a way to rebind the inspection menu?