Coder Social home page Coder Social logo

ttt-2 / ttt2 Goto Github PK

View Code? Open in Web Editor NEW
172.0 12.0 71.0 31.3 MB

Trouble in Terrorist Town 2 for Garry's Mod (gmod)

Home Page: https://steamcommunity.com/sharedfiles/filedetails/?id=1357204556

Lua 100.00%
ttt gmod garrysmod trouble-in-terroristtown addon ttt2-roles ttt2 hud addons gamemodes

ttt2's Introduction

TTT2 - Trouble in Terrorist Town 2

CI Steam Subscriptions Steam Downloads Discord

This is still a beta version.

Please make sure to check out our FAQ page and browse existing issues before reporting bugs or suggestions!

MOTIVATION

TTT2 was the next logical step after TTT was such a massive success. It is a spiritual successor to this classic gamemode by Bad King Urgrain. Aiming to introduce new features, fix old bugs and modernize the user interface.

ADDONS

We know that TTT lives from its huge community and all its great addons. Because of this, compatibility is one of the highest priorities. Almost every item that works with TTT also works with TTT2. HUD and role related addons are the exceptions.

Additionally we have introduced a compatibility checker. On server start it prints incompatible or outdated addons to the server console. More on this in our documentation here.

TTT2 also features some additions which TTT needed addons for:

  • overhauled equipment menu
  • drowning indicator
  • sprinting and stamina

NEW GAMEMODES

There are a few new gamemodes based on TTT2. Click on these icons to open the steam collection to these official gamemodes.

TTT2 Totem TTT2 Fate TTT2 Heroes

SETUP

The setup is fairly easy. Just subscribe to TTT2 and the addons you want to use.

Removal of the 'vanilla' TTT files is not needed and actively harmful as those files are still needed for TTT2.

THE HISTORY OF TTT2

The idea of TTT2 was born in early 2018 by Alf21. He was annoyed of all these different role mods (such as TTT Totem and Town Of Terror) that wouldn’t work together. So he created a new role system and called it TTT2.

Mineotopia was the first one to join his team. He is by himself a very active player and server admin and liked the concept. There was only one big problem: The icons were the definition of ugly. He offered to help with graphics and over time he became an active member of TTT2.

The next big step was a project with two german youtubers, Dhalucard and PietSmiet. We created an exclusive addon for TTT2, called TTT Heroes. At this point, Saibotk joined the team and the development rate increased. The idea of a completely revamped user interface was born!

Credits

Credit to rubiez for creating the DNA Scanner model. It was ported to source engine and animated. The original can be found here It is licensed under the CC BY 4.0 license.

ttt2's People

Contributors

a7f3 avatar aaronmckenney avatar alessandrolevante avatar alf21 avatar ceifa avatar entrancejew avatar histalek avatar lebroomer avatar mcazaly avatar menof36go avatar mexikoedi avatar misterclems avatar neoxult-ci-bot[bot] avatar nickcloudat avatar novadiablox avatar reispfannenfresser avatar ruby0b avatar saibotk avatar satton2 avatar sbzlzh avatar schokoshampoo avatar spanospy avatar tegtainfan avatar theonly8z avatar theplatinumghost avatar timgoll avatar tw1stal1cky avatar westooooo avatar wryyyong avatar zenbre4ker avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ttt2's Issues

Untrue report of a hitman

image

When at the person merge and he has a role Hitman and he dies, in a chat reports that it was hitman and killed not that...

Scoring issue

If a player gets another role, at the end of a role, the score will be multiplied by the specific multiplier of the custom role. That's wrong because the points the player got if he was another role had another multiplier

Role‘s index

Change role‘s initialization of data from dynamic (with syncing) to static (init shared on start). There, use a GetIndex function to get the index of a role (like equipment addons do).
Last but not least, remove ROLES.team and change it to subroles. Traitor, Hitman and Vampire will have ROLE = 1 while T has SUBROLE 0, H SUBROLE 1,... This will support the compatibility with other addons to check eg if someone is a Traitor.

INFECTED ROLE BUG

If the infected, kills someone, the weapon is not issued to him and his servant goes without weapons, apparently the weapon is registered, which is not. Also, if GL.infected kills someone, and until the emergence of Ml.infected, kill the Main, then reborn Ml.infected innocent, although I should die.

After updating writes a mistake.

[ERROR] addons/animations/lua/autorun/rv_init.lua:113: bad argument #1 to '(for generator)' (table expected, got nil)

  1. (for generator) - [C]:-1
  2. func - addons/animations/lua/autorun/rv_init.lua:113
    3. unknown - lua/includes/extensions/net.lua:32

jester bug

The murder of a clown, if murder is made a sidekick, the jester reborn accomplice, but without a team and the Jackal does not appear as an accomplice of the Jackal. This happens occasionally.

Sometimes the jester's changing role the role of the killer.

Sometimes the jester dies and isn't reborn, and the killer is still alive. (This often happens to a traitor)

All these bugs happen sometimes, which is why I don't know.

I have used version https://github.com/Alf21/ttt2-role_jes

Suggestions to improve damagelogs role mapping.

Can do in damagelogs that showed who shoots from ttt2_sidekickdeagle Jackal. And that is the role that change in the game, and changed in the logs, but not so that a jester or an accomplice in the logs was a clown, not a role which it was issued, I would be grateful.

Unkown bug dead

Меня убили, когда моя роль была неизвестный, но после этого я не возродился.
bug unkown

The strangeness of the jester

The clown the problem is, sometimes when he kills a traitor/innocent, then he is still a buffoon. But if you kill him, he will be Inno or a traitor, but he will not know and would not work. There are also times when he after 1 death, remains a buffoon, kill it again and then it becomes let's say a traitor, but the shop With, he will not have to work, and only write when you murder someone that you have been given credit for the store.

Bug with clairvoyant

When a psychic someone dies from the active roles marked, it ceases to be marked at the TAB and that means he died, this is a bug? Or so intended?

Bug with the notice of a role

Когда я определил труп survivalist, то мне написало в центре уведомление, мне выпала роль survivalist как в самом начале.

Change to SteamID64

Is your feature request related to a problem? Please describe.
Bots are differable with SteamID64

Describe the solution you'd like
Change to SteamID64

Describe alternatives you've considered
Not staying to SteamID

Additional context
Nothing to add

Traitorvoicechat bug

The traitor voicechat can be heard by everyone sometimes, everyone who knows about it can reveal him as a traitor.

Change weapons during prep-phase is causing an error

After this update i was nervous when a new error would show up in the console, but you almost got it, since didn't notice anything besides this one below. 💯

To Reproduce
When the match starts, while the preparation phase, if you get 2 weapons and change one to another this error show up for both server and client:

[ERROR] ttt2/gamemodes/terrortown/gamemode/cl_wepswitch.lua:73: attempt to index local 'c' (a nil value)
  1. DrawBarBg - addons/[ttt]_ttt2/gamemodes/terrortown/gamemode/cl_wepswitch.lua:73
   2. Draw - addons/[ttt]_ttt2/gamemodes/terrortown/gamemode/cl_wepswitch.lua:159
    3. unknown - addons/[ttt]_ttt2/gamemodes/terrortown/gamemode/cl_hud.lua:333

Expected behaviour
Change weapons without errors? =)

Radar issue

Currently, the radar doesn‘t work properly.

SURVIVALIST has no shop

SURVIVALIST has no shop.
SURVIVALIST does not have the possibility of choosing your store, there is only a choice at another role, or disable, although it should be a choice like all other choices of his store with a choice for him personally weapons.
image

As we can see, there is no possibility to choose your store on C

voicechat bug

If a player forces another role, the voice chat vars won't reset.

Whether the karma normally works?

Я хотел узнать, карма работает нормально или если убить шакала к примеру, то ты получаешь - карму?

Weaponshop sync bug

If the server is crashed or closed with [STRG] + [C] (I don't know why people does not use "exit"), the server is not able to sync the ConVars and gets async with clients ConVars. Initialize them as NetworkVars on server start-up.

TeamChat BUG

Currently, the TeamChat doesn‘t support the custom roles.

jester bug respawn

Иногда шута убивают, к примеру вампир и он не возрождается, даже после смерти вампира. У меня такое лично было, когда я был шутом.

TTTPlayerSpeedModifier Hook

Describe the bug
"TTTPlayerSpeedModifier" Hook dont work correctly
Gmod Changes the Hook for Player speed. Now in the shared.lua
Weapons like Homerun Bat wont give movement speed

To Reproduce
Equip a Homerunbat

Expected behaviour
25% more Movement Speed

Additional context
see In the player_ext.lua the plymeta:SetSpeed function

Bug with display of the status

Теперь после обновления, если вы выставляете статус подозрительный к примеру в TAB, то на игроке это не отображается.

Infected the notice as at a jackal

Предлагаю сделать уведомление, когда тебя убивает зараженный, а то так же как и с шакалом некоторые убивают главного зараженного, а вообще лучше будет здесь отключить урон помощникам зараженного, так-как они с ножами и выглядят как зомби, тут ничего странного в этом не будет

Scoreboard ([TAB]) issue

<1% of the players have the issue that there wont be any players shown as MIA or dead. Sometimes, they disappear looks like they have been disconnected. This is a rare problem in TTT and TTT2.

jester

Из-за последнего обновления шута, сервер крашится, по какой причине из-за него не знаю, но причина в нем, убрал его, краш сервера убрался.

Jester respawn jester

Jester respawned after death with the same role. On one of the screenshots you can see his role after death, on the other one his death logs.
default
default

Secondary goal

Add a secondary goal, e.g. for Jester. So, if the Jester wins, the round is not over.

ERROR

Sometimes appears when trying to talk.

[TTT2 BETA + all TTT2 add-ons] gamemodes/terrortown/gamemode/cl_voice_main.lua:157: attempt to concatenate local 'tm' (a nil value)

  1. unknown - gamemodes/terrortown/gamemode/cl_voice_main.lua:157

Sidekickdeagle ConVar not working

Describe the bug
Im ULX menu unter dem TAB TTT -> Weapons kann man die SideKickDeagle nicht umstellen. Heißt, es speichert sich nicht. Sobald man neu connected/map wechselt steht es automatisch wieder auf 0

To Reproduce
Steps to reproduce the behaviour:
Bereits oben erklärt

Expected behaviour
ConVar sollte sich speichern

Desktop (please complete the following information):

  • Collection-Link of your Server: [e.g. https://steamcommunity.com/workshop/filedetails/?id=1357745995]

Keine Errors oder sonstiges. Beim umstellen wird die ConVar auch nicht im Chat angezeigt, wie z.B. bei anderen.

2 accomplices, one bullet

У шакала есть баг с его оружием weapon_ttt2_sidekickdeagle.lua только, что шакал превратил 2 человек в сообщников, я не знаю каким образом, вроде мы шли цепочкой, но я протестировал еще раз, но это не повторилось, но возможность такая есть, это факт.

Bug the ever-living

bug damagelogs

There may be a bug, I suppose due to damagelogs they don't work, this happens when changing cards, in 1 round(Sometimes, for whatever reason I don't know yet). People who come in, become like that, if they're killed, they can talk to other people.

When it writes the same error:
[ERROR] gamemodes/terrortown/gamemode/cl_voice_main.lua:157: attempt to concatenate local 'tm' (a nil value)

  1. unknown - gamemodes/terrortown/gamemode/cl_voice_main.lua:157

ERROR coonect

При входе на сервер или же при открытии !menu, выскакивает эта ошибка. Из-за этой ошибки не работает в !menu отдел истории банов, в остальном просто спам ошибки. Появилась это ошибка после последнего вашего обновления беты, возможно здесь есть моя вина, но я вроде ничего не делал серьезного.

[ERROR] lua/includes/modules/hook.lua:120: attempt to index local 'gm' (a number value)

  1. Call - lua/includes/modules/hook.lua:120
  2. fn - addons/ulib/lua/ulib/cl_init.lua:58
    3. func - addons/ulib/lua/ulib/client/cl_util.lua:22
    4. unknown - lua/includes/extensions/net.lua:32

ULib queue error: lua/includes/modules/hook.lua:120: attempt to index local 'gm' (a number value)

Так же бывает пишет при открытии !menu

[ERROR] lua/includes/modules/hook.lua:120: attempt to index a string value with bad key ('UCLAuthed' is not part of the string library)

  1. error - [C]:-1
  2. __index - lua/includes/extensions/string.lua:297
    3. Call - lua/includes/modules/hook.lua:120
    4. fn - addons/ulib/lua/ulib/cl_init.lua:58
    5. func - addons/ulib/lua/ulib/client/cl_util.lua:22
    6. unknown - lua/includes/extensions/net.lua:32

Infected with weapon

Теперь помощники зараженного, могут носить и использовать оружие кроме ножа. Это началось после обновления роли или режима, тут я не могу сказать точно,

adaptation HUD

Hello, I would like that you made adaptation of this HUD

vampire blod start game

Бывает, что при появлении ролью вампир, жажда крови сразу на нуле и начинает тратиться HP. Хотя ты ничего не делал.

Bug of the shop infected.

При открытии магазина у зараженного появилась такая ошибка.
[TTT2] gamemodes/terrortown/gamemode/cl_equip_main.lua:290: attempt to call method 'IsEquipment' (a nil value)

  1. unknown - gamemodes/terrortown/gamemode/cl_equip_main.lua:290
  2. unknown - lua/includes/modules/concommand.lua:54

Bug Instead of an innocent, a traitor.

For some reason, the role of the person together innocent, became a traitor on the definition of roles, in the logs or on the player to direct, he was a traitor, but on the logs innocent. He could do the same thing as a traitor. After that, an error in the logs for this round began to appear. It was held after the end of the next round.
wa

[ERROR] lua/includes/extensions/net.lua:182: net.ReadType: Couldn't read type 64

  1. error - [C]:-1
  2. ReadType - lua/includes/extensions/net.lua:182
    3. ReadType - lua/includes/extensions/net.lua:121
    4. ReadTable - lua/includes/extensions/net.lua:124
    5. func - addons/tttdamagelogs-master/lua/damagelogs/client/tabs/damagetab.lua:466
    6. unknown - lua/includes/extensions/net.lua:32

The notification to the accomplice from a jackal

Is it possible to make some notification with the Jackal's Sidekick Deagle when he turns someone into Sidekick? For example: (at the center of the screen) «You are now a Sidekick! is your master. Kill all others!». Because I often see that Sidekick can almost immediately kill Jackal by accident. In my opinion, the best option is to add notification and disable friendly fire on 30 seconds after Jackal turns someone into Sidekick.

Additional cost of items from shop C

Would like to suggest to make possible to set the value of the object to buy traitor/detective, and so on. So as now all the items cost 1 credit, I would like to install 2 or more credits for something, for example a defibrillator detective 2 credits and so on, so you can add interesting things and increase their cost, so that people chose different as his possibility. This will make the gameplay more interesting and allow you to add more interesting things to active roles.

Damagelogs additional roles.

Can you make "Damagelog.ULX_Autoslay_ForceRole" function in Damagelogs to work properly? It doesn't work properly with new roles. It is very sad to see when some active role dies because of RDM. Currently if this function is enabled, all new roles will disappear or will not work properly.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.