Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
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.
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
(default TTT weapons would blur your entire screen when aiming down sights):
"cl_tfa_fx_rtscopeblur_mode 0"
seems to fix it.
SWEP.IronSightsSensitivity = .4
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
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.
https://steamhost.cn/steamcommunity_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 {LINK REMOVED}https://steamworkshopdownloader.io/ and poke around in the weapon lua files and see how the weapons are set up.
--elseif string.find(bind, "zoom") and pressed then
elseif string.find(bind, "noclip") and pressed then
in
garrysmod/gamemodes/terrortown/gamemode/cl_keys.lua
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.
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.
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.
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 --
https://steamhost.cn/steamcommunity_com/workshop/filedetails/?id=253746161