Garry's Mod

Garry's Mod

評價次數不足
[TTT2] Role Debugger
   
獎勵
加入最愛
已加入最愛
移除最愛
Content Type: Addon
Addon Type: ServerContent
Addon Tags: Roleplay
檔案大小
發佈於
更新時間
1.244 MB
2021 年 3 月 21 日 下午 12:04
1 月 19 日 上午 8:50
11 項更新註記 (檢視)

訂閱以下載
[TTT2] Role Debugger

在 DevilsThumb 的 3 個收藏中
LDTNE - TTT Server - Roles
49 個項目
Testing 2
32 個項目
LDTNE - minimal TTT2 Server - Admin
20 個項目
描述
Overview
This modification aims to simplify the debugging of roles in TTT2. Only the TTT2 (Base) is needed to run this mod, whereas ULX is not necessary.

This works only if you are an admin or superadmin on the server! Also, the functionalities are started only after the menu has been opened. It can be manually deactivated inside the menu panel.

The source code can be find on GitHub[github.com].


Description
The addon introduces an additional panel in the F1 menu of TTT2.
This makes it possible to adjust the roles of all players and bots. It also makes it much easier to set the number of bots. At the moment the following features are included:
  • The roles of each teammate and bot can be set individually. These can be applied either in the same round or in the next round.
  • The number of bots can easily be increased or decreased.
  • Roles can be locked per player for the following rounds.
  • A permanent overhead display of player roles during the round can be activated.


Usage
The "Debugging" menu can be found in the F1 menu of TTT2. At the moment, only the administration of roles is implemented here.

The players and bots on the server are displayed in two separate lists. The dropdown menu allows you to select a role for each player. By default, this is set to random, whereby the game decides on the role of the player. If something else is selected, this role is automatically taken over in the next round. (This functionality can be switched off in the settings). The Apply Now button allows the selected roles to be changed in the same round. The roles set to Random will not be changed.

The number of bots can be changed using the slider. These will also be spawned in the next round or removed again. With the Apply now button, the change takes effect directly.
It is already possible to select the roles.

The update buttons select the current roles of the players. The Reset buttons, on the other hand, reset the selection to random. In the settings, it is possible to have the update carried out when the menu is opened.

A lock button is available for each player, which makes it possible to keep the same role in all subsequent rounds. Otherwise, the role is randomly selected again in the next round or the round after that.

There is also a button to start a new round directly.

In the settings, you can determine whether the roles of the players are displayed by means of overhead icons during the round.


Configuration
At the moment there are the following convars (all of those can be changed in the addon itself):
ttt_rolemanager_overhead_icons 1 // [0/1] (def.: 1) Show overhead role icons during round. ttt_rolemanager_auto_apply 1 // [0/1] (def.: 1) Automatically activates the roles on the next round if a value is changed. ttt_rolemanager_auto_refresh 0 // [0/1] (def.: 0) Automatically updates the roles, if the debug menu is opened.


Planed features:
  • Class debugging: Basically the same with classes, like with the roles.
  • Weapon debugging: Panel to give each player a certain Weapon
  • Bot functionality: Enable Bots to do some basic things like attaking a certain Bot or Player.
    Spawn Bots near the player.
  • ...


Credits:
DevilsThumb: Creator of this addon.
Mineotopia + The TTT2 Team: For some parts of the interface that I adapted.
14 則留言
cooocki 2023 年 8 月 7 日 下午 12:35 
For some reason I cant see the bots role above their head when I spawn them in. Only sometimes this works. Its like theyre in a bugged state where they dont exist to get a role applied to but still spawn in.
DevilsThumb  [作者] 2023 年 8 月 3 日 下午 1:30 
@SeitenSifir

Hey, I just looked into my code and it looks like I did not implement an option to disable this for non admin-players. I am not completly sure, why I didn't set it as an admin menu. (It was probably it fitted in more nicely in the non-admin category). But non-admin users should definetly not be able to use the tool. In case they can, this is a bug and I need to look into this. Normal users should be presented with a basic menu layout, however they are not allowed to receive information from the server. This means the server will not give them a list of current player roles and of cause it will not accept any commands from a non-admin user.
SeitenSifir 2023 年 7 月 23 日 上午 6:39 
In my server everyone, also de user group can use the Menu on F1. How can i change that that only admins can use?
Tim | Mineotopia 2022 年 5 月 13 日 上午 4:00 
@Crumpetitive: This is a TTT2 issue that is fixed by either resetting your convars or changing the traitor credits in the F1 menu -> roles -> traitor
Crumpetitive 2022 年 5 月 5 日 下午 5:59 
For some reason I traitors have zero credits upon start unlike they should. The config setting is still set to starting credits being 2 so I don't know why its not working.
Blechkanne 2022 年 5 月 1 日 上午 7:48 
Would love some buttons for giving credits to players and changing debug_prevent_win. Me and my colleagues use this to code and test a lot
KillerfoxyLP 2021 年 10 月 22 日 上午 6:26 
thats kinda funny being able to controll players and sure tell me if its done and ty!
DevilsThumb  [作者] 2021 年 10 月 22 日 上午 5:37 
Beyond assigning a role to them you can't. Yet.
I was working on a separate addon, that should in theory allow you to control bots and other players. But the controls are really laggy. And I couldn't test it to the extend needed to get it running smoothly.

But since it works quite well with bots on its own I might release a first version for bots only. I will post a comment to let you know, if you are subscribe to the comments of this addon.
KillerfoxyLP 2021 年 10 月 21 日 上午 5:28 
how can u controll bots?
DevilsThumb  [作者] 2021 年 5 月 4 日 下午 2:56 
Thank you very much for the notice. I have already taken care of it. The problem should be solved now.