Garry's Mod

Garry's Mod

Ikke nok vurderinger
[TTT2] Role Debugger
   
Pris
Føj til foretrukne
Gjort til foretrukken
Fjern som foretrukken
Content Type: Addon
Addon Type: ServerContent
Addon Tags: Roleplay
Filstørrelse:
Offentliggjort:
Opdateret:
1.244 MB
21. mar. 2021 kl. 12:04
19. jan. kl. 8:50
11 ændringsbemærkninger ( vis )

Abonner for at downloade
[TTT2] Role Debugger

I 3 samlinger af DevilsThumb
LDTNE - TTT Server - Roles
49 genstande
Testing 2
32 genstande
LDTNE - minimal TTT2 Server - Admin
20 genstande
Beskrivelse
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 kommentarer
cooocki 7. aug. 2023 kl. 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  [ophavsmand] 3. aug. 2023 kl. 13: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 23. juli 2023 kl. 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 13. maj 2022 kl. 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 5. maj 2022 kl. 17: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 1. maj 2022 kl. 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 22. okt. 2021 kl. 6:26 
thats kinda funny being able to controll players and sure tell me if its done and ty!
DevilsThumb  [ophavsmand] 22. okt. 2021 kl. 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 21. okt. 2021 kl. 5:28 
how can u controll bots?
DevilsThumb  [ophavsmand] 4. maj 2021 kl. 14:56 
Thank you very much for the notice. I have already taken care of it. The problem should be solved now.