Class Manager for TTT
SmartMarioBros SmartMarioBros Addon update 2y ago

Class Manager for TTT

Manages Classes for TTT.

favorite7favorites
thumb_up4upvotes
hard_drive 1 MB folder 15 files build Engine v10 history Last update 1028d ago
open_in_new View on sbox.game

About This Package

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());
	}
}

Media (4)

517
Total Users
1,442
Total Sessions
8.5 days
Total Playtime
Package ID: smartmario.classes_manager_ttt
Created: 2023-08-20 12:36 UTC
Updated: 2023-09-16 16:39 UTC
Type: addon
Public: Yes
Version: 38643
files: 15
Size: 0.6 MB
Engine Version: 10
Asset Version ID: 38643
Version Created: 2023-09-16 16:39 UTC
Hash: 8290969667612409955
Manifest: Open manifest
Cs Proj Name:
Primary Asset:
Physics Mins: -1,-1,-1
Physics Maxs: 1,1,1
Render Mins: -1,-1,-1
Render Maxs: -1,-1,-1
Parent Package: thieves.terrortown
Resources:
Code Package References:
new_releases Latest Update Sep 16, 2023
fix small ui issues
tag v38643 folder 15 files hard_drive 0.6 MB build Engine v10
38643 Sep 16, 2023
fix small ui issues
folder 15 files hard_drive 625.49 KB build Engine v10
38625 Sep 16, 2023
fix bad ui on no status icon
folder 14 files hard_drive 609.5 KB build Engine v10
38573 Sep 15, 2023
fix status ui
folder 14 files hard_drive 609.5 KB build Engine v10
37937 Sep 7, 2023
Buffed boring classes
folder 14 files hard_drive 602 KB build Engine v10
37792 Sep 5, 2023
buff mermaidman
folder 14 files hard_drive 599 KB build Engine v10
37413 Sep 1, 2023
Added class round chance setting
folder 14 files hard_drive 599 KB build Engine v10
37048 Aug 30, 2023
Added duration + jetpacker class
folder 14 files hard_drive 596.5 KB build Engine v10
36882 Aug 29, 2023
Remove Class on death
folder 14 files hard_drive 592.5 KB build Engine v10
36768 Aug 28, 2023
change fart sound name, nerf miniman, pick unqiue classes
folder 14 files hard_drive 592.5 KB build Engine v10
36549 Aug 27, 2023
Fix giving classes to spectators
folder 14 files hard_drive 591.5 KB build Engine v10