Class Manager for TTT

thumb
Identsmartmario.classes_manager_ttt
Typeaddon
Created
Updated
Latest Version 38643 109 KB +1 ~1
Tags ttt class classes
Links s&box
SummaryManages 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 Rate0%
Package Referencesthieves.terrortown, thieves.golden_deagle
Usage
517 players 1,442 sessions 205 hours playtime 9 minutes avg session
Totals captured
Data
{}