Class Manager for TTT
by
SmartMarioBros
| Summary | Manages Classes for TTT. |
|---|---|
| Description |
About Class Manager for TTT Every round, every player gets a class in addition to their role! These classes could give you useful items like a radar, or active abilities, like making your opponents grow or jumping great heights! This makes every round a little more unique! You can alter the chance for a class to appear, or disable them entirely by using the moderator UI with the chat command !class or !classes. If you don't have permissions on a server you hosted, you can give yourself admin in the console or just use the command class_toggle_ui. If a user wants to reread the description of the class they got, they can use the chat command !class_desc. Only works with TTT by Three Thieves! Developed by TheCampingTurret and SmartMario1 Developing additional classes Adding more classes to the manager is made very easy. Just create an addon for TTT by Three Thieves and include terrortown.thieves and smartmario.classes_manager_ttt as package dependencies. Now you can create a class deriving from TTT_Class and add abilities just like we did for the base classes. You can see the code for all classes added in this addon in the linked GitHub. // This is the bountyhunter class as an example public class Bountyhunter : TTT_Class { public override string Name { get; set; } = "Bountyhunter"; public override string Description { get; set; } = @"You've got a gun with the bad guys' name on it. You start with a Golden Deagle."; public override float Frequency { get; set; } = 1f; public override Color Color { get; set; } = Color.FromRgb( 0xd4af37 ); //Run on start public override void RoundStartAbility() { Add_Item_To_Player( new GoldDeagle.GoldenDeagle()); } }About Class Manager for TTT
Every round, every player gets a class in addition to their role! These classes could give you useful items like a radar, or active abilities, like making your opponents grow or jumping great heights! This makes every round a little more unique! You can alter the chance for a class to appear, or disable them entirely by using the moderator UI with the chat command !class or !classes. If you don't have permissions on a server you hosted, you can give yourself admin in the console or just use the command class_toggle_ui.
If a user wants to reread the description of the class they got, they can use the chat command !class_desc.
Only works with TTT by Three Thieves!
Developed by TheCampingTurret and SmartMario1
Developing additional classes
Adding more classes to the manager is made very easy. Just create an addon for TTT by Three Thieves and include terrortown.thieves and smartmario.classes_manager_ttt as package dependencies. Now you can create a class deriving from TTT_Class and add abilities just like we did for the base classes. You can see the code for all classes added in this addon in the linked GitHub.
// This is the bountyhunter class as an example
public class Bountyhunter : TTT_Class
{
public override string Name { get; set; } = "Bountyhunter";
public override string Description { get; set; } = @"You've got a gun with the bad guys' name on it.
You start with a Golden Deagle.";
public override float Frequency { get; set; } = 1f;
public override Color Color { get; set; } = Color.FromRgb( 0xd4af37 );
//Run on start
public override void RoundStartAbility()
{
Add_Item_To_Player( new GoldDeagle.GoldenDeagle());
}
}
|
| Votes | 👍4 👎0 ❤️7 |
| Error Rate | 0% |
| Package References | thieves.terrortown, thieves.golden_deagle |
| Usage |
517 players
1,442 sessions
205 hours playtime
9 minutes avg session
Totals captured
|
| Data | {} |
| Version | Created | Size (modified) | Files | Changes |
|---|---|---|---|---|
| 38643 | 625.5 KB (109 KB) | 15 +1 ~1 | fix small ui issues | |
| 38625 | 609.5 KB (93 KB) | 14 ~1 | fix bad ui on no status icon | |
| 38573 | 609.5 KB (93 KB) | 14 ~1 | fix status ui | |
| 37937 | 602 KB (85.5 KB) | 14 ~1 | Buffed boring classes | |
| 37792 | 599 KB (82.5 KB) | 14 ~1 | buff mermaidman | |
| 37413 | 599 KB (82.5 KB) | 14 ~1 | Added class round chance setting | |
| 37048 | 596.5 KB (80 KB) | 14 ~1 | Added duration + jetpacker class | |
| 36882 | 592.5 KB (76 KB) | 14 ~1 | Remove Class on death | |
| 36768 | 592.5 KB (76.7 KB) | 14 +1 ~1 -1 | change fart sound name, nerf miniman, pick unqiue classes | |
| 36549 | 591.5 KB (78.5 KB) | 14 +1 ~1 | Fix giving classes to spectators | |
| 34949 | 588 KB (75 KB) | 13 ~1 | readd borderradius | |
| 34922 | 587.5 KB (74.5 KB) | 13 ~1 | fix spectator | |
| 34827 | 586 KB (73 KB) | 13 ~1 | removed some debug prints | |
| 34802 | 586.5 KB (73.5 KB) | 13 ~1 | small updates | |
| 34754 | 586.5 KB (73.8 KB) | 13 ~2 | Changes on 2023-08-20 | |
| 34752 | 586.5 KB | 13 +13 | Changes on 2023-08-20 |
Loading history…