Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
1a98623
Ported "Correction of the calculation that was incorrect." from base TTT
Malivil Jul 12, 2026
970c073
Ported "[TTT] Fix undefined variables and malformed patterns" from ba…
Malivil Jul 12, 2026
7149920
Ported "Some TTT cleanups" from base TTT
Malivil Jul 12, 2026
8b0349f
Ported "Fix TTT state and report chunking" from base TTT
Malivil Jul 12, 2026
e90440f
Ported "Minor cleanups" from base TTT
Malivil Jul 12, 2026
ec5725a
Merge branch 'Custom-Roles-for-TTT:dev' into dev
Malivil Jul 12, 2026
c54bfe8
Removed invalid global
Malivil Jul 14, 2026
cab9ea4
Changed .md relative links to be lowercase so they work in VSCode too
Malivil Jul 14, 2026
00c38f7
Updated role registration update script to handle more file formats
Malivil Jul 15, 2026
d7b4183
Fixed spacing and count for hook tables in registration conversion
Malivil Jul 15, 2026
c3c8cb8
Changed automatic role registration hooks to remove spaces from role …
Malivil Jul 16, 2026
04e52b2
Added more hooks to the registration system block list
Malivil Jul 16, 2026
72291d1
Added support for single-file roles with shared context hooks
Malivil Jul 16, 2026
98b827b
Cleanup
Malivil Jul 16, 2026
3666364
Fixed extra newlines in some scope-contained registration tables
Malivil Jul 16, 2026
934ecc4
Fixed hook registration within scope context not having correct inden…
Malivil Jul 16, 2026
93dc5a5
Added support for initializing empty table in contexts without hooks …
Malivil Jul 16, 2026
7ad0092
Added new global
Malivil Jul 16, 2026
7bd87a8
Another new global
Malivil Jul 16, 2026
33ae752
Fixed handling of hooks added in net messages
Malivil Jul 16, 2026
b948fb2
Added support for "sv_" named files
Malivil Jul 16, 2026
0e5ceba
Fixed hook processing after net method
Malivil Jul 16, 2026
b3a0891
Added PreRegisterSWEP to the blocked registration list
Malivil Jul 17, 2026
7b9f1f4
Fixed some ragdoll logic not resetting when a player is unragdolled
Malivil Jul 18, 2026
dc6a168
Added `TTTBlockHUDAmmoPickedUp`, `TTTBlockHUDDrawPickupHistory`, `TTT…
Malivil Jul 18, 2026
4098419
Ported "TTT: Fix italic fonts on Linux" from base TTT
Malivil Jul 19, 2026
d4d67d7
Added new global
Malivil Jul 19, 2026
262f7b8
Added another new global
Malivil Jul 19, 2026
6e8488a
Fixed Mad Scientist not blocking the round from ending
Malivil Jul 21, 2026
9cb4b9c
Added incoming translation from base TTT
Malivil Jul 24, 2026
adb65e8
Updated release date
Malivil Jul 25, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .luacheckrc
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,7 @@ globals = {
"FVPHYSICS_PLAYER_HELD",
"FVPHYSICS_WAS_THROWN",
"GAMEMODE",
"GAMEMODE_DEFAULT_UI_FONT",
"GESTURE_SLOT_CUSTOM",
"GM",
"GROUP_COUNT",
Expand Down Expand Up @@ -612,7 +613,6 @@ globals = {
"ROLE_INNOCENT",
"ROLE_TRAITOR",
"ROUND_ACTIVE",
"ROUND_BEGIN",
"ROUND_POST",
"ROUND_PREP",
"ROUND_WAIT",
Expand Down Expand Up @@ -696,6 +696,7 @@ globals = {
"sboard_panel",
"setmetatable",
"sql",
"system",
"tobool",
"tonumber",
"tostring",
Expand Down Expand Up @@ -738,6 +739,7 @@ globals = {
"Derma_Hook",
"DetectiveMode",
"Dev",
"DisableClipping",
"DrawColorModify",
"DynamicLight",
"EffectData",
Expand Down Expand Up @@ -900,6 +902,7 @@ globals = {
"vgui",
"weapons",
"DButton",
"DImage",
"AWARDS",
"CORPSE",
"DISGUISE",
Expand Down
2 changes: 1 addition & 1 deletion API/COMMANDS.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Allows for viewing and editing which weapons are available in each role's shop.\
- *copy FROM TO [REPLACE]* - Duplicates a role configuration. If `true` is provided for the REPLACE parameter, any existing configuration will be removed *(Added in 2.1.10)*
- *duplicate* - Alias for *copy* *(Added in 2.1.10)*
- *list* - Prints the current configuration in the server console, highlighting anything invalid
- *open (aka show)* - Opens the configuration UI. See [this tutorial](../CONVARS.md#Configuration-by-UI) for how to use the UI. (This command is the default if no parameter is provided)
- *open (aka show)* - Opens the configuration UI. See [this tutorial](../CONVARS.md#configuration-by-ui) for how to use the UI. (This command is the default if no parameter is provided)
- *print* - Alias for *list*
- *reload* - Reloads the configurations from the server's filesystem
- *show* - Alias for *open*
Expand Down
35 changes: 35 additions & 0 deletions API/HOOKS.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,41 @@ Changed `eq` parameter to be a table of the body's owned equipment IDs instead o
- *search* - The body's search info
- *eq* - A table of the body's owned equipment IDs

### TTTBlockHUDAmmoPickedUp(itemname, amount)
Called when ammunition is being picked up by the local player, allowing addons to block the display.\
*Realm:* Client\
*Added in:* 2.5.1\
*Parameters:*
- *itemname* - The name of the ammo being picked up
- *amount* - The amount of ammo being picked up

*Return:* `true` to block the display of this ammo's pickup HUD. Otherwise do not return anything.

### TTTBlockHUDDrawPickupHistory()
Called when weapon pickup history is being displayed by the local player, allowing addons to block the display.\
*Realm:* Client\
*Added in:* 2.5.1

*Return:* `true` to block the display of the weapon pickup history HUD. Otherwise do not return anything.

### TTTBlockHUDItemPickedUp(itemname)
Called when an equipment item is being picked up by the local player, allowing addons to block the display.\
*Realm:* Client\
*Added in:* 2.5.1\
*Parameters:*
- *itemname* - The name of the equipment item being picked up

*Return:* `true` to block the display of this equipment item's pickup HUD. Otherwise do not return anything.

### TTTBlockHUDWeaponPickedUp(wep)
Called when a weapon is being picked up by the local player, allowing addons to block the display.\
*Realm:* Client\
*Added in:* 2.5.1\
*Parameters:*
- *wep* - The weapon being picked up

*Return:* `true` to block the display of this weapon's pickup HUD. Otherwise do not return anything.

### TTTBlockPlayerFootstepSound(ply)
Called when a player is making a footstep. Used to determine if the player's footstep sound should be stopped.\
*Realm:* Client and Server\
Expand Down
42 changes: 21 additions & 21 deletions CONVARS.md
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
# Configurations

## Table of Contents
1. [Server Configurations](#Server-Configurations)
1. [Client Configurations](#Client-Configurations)
1. [Role Weapon Shop](#Role-Weapon-Shop)
1. [Configuration by UI](#Configuration-by-UI)
1. [Explanation](#Explanation)
1. [Example](#Example)
1. [Configuration by Files](#Configuration-by-Files)
1. [Server Configurations](#server-configurations)
1. [Client Configurations](#client-configurations)
1. [Role Weapon Shop](#role-weapon-shop)
1. [Configuration by UI](#configuration-by-ui)
1. [Explanation](#explanation)
1. [Example](#example)
1. [Configuration by Files](#configuration-by-files)
1. [Preparing a Role for Configuration](#preparing-a-role-for-configuration)
1. [Weapons](#Weapons)
1. [Adding Weapons](#Adding-Weapons)
1. [Removing Weapons](#Removing-Weapons)
1. [Bypassing Weapon Randomization](#Bypassing-Weapon-Randomization)
1. [Adding Weapons to a Role's Loadout](#Adding-Weapons-to-a-Roles-Loadout)
1. [Finding a Weapon's Class](#Finding-a-Weapons-Class)
1. [Equipment](#Equipment)
1. [Adding Equipment](#Adding-Equipment)
1. [Removing Equipment](#Removing-Equipment)
1. [Adding Equipment to a Role's Loadout](#Adding-Equipment-to-a-Roles-Loadout)
1. [Finding an Equipment Item's Name](#Finding-an-Equipment-Items-Name)
1. [Role Packs](#Role-Packs)
1. [Weapons](#weapons)
1. [Adding Weapons](#adding-weapons)
1. [Removing Weapons](#removing-weapons)
1. [Bypassing Weapon Randomization](#bypassing-weapon-randomization)
1. [Adding Weapons to a Role's Loadout](#adding-weapons-to-a-roles-loadout)
1. [Finding a Weapon's Class](#finding-a-weapons-class)
1. [Equipment](#equipment)
1. [Adding Equipment](#adding-equipment)
1. [Removing Equipment](#removing-equipment)
1. [Adding Equipment to a Role's Loadout](#adding-equipment-to-a-roles-loadout)
1. [Finding an Equipment Item's Name](#finding-an-equipment-items-name)
1. [Role Packs](#role-packs)
1. [Overall](#role-pack-overall)
1. [Roles](#role-pack-roles)
1. [Adding a new Role Slot](#adding-a-new-role-slot)
1. [Configuring a Role Slot Role](#configuring-a-role-slot-role)
1. [Role Pack Role Blocks](#role-pack-role-blocks)
1. [Weapons](#role-pack-weapons)
1. [ConVars](#role-pack-convars)
1. [Role Blocks](#Role-Blocks)
1. [Role Blocks](#role-blocks)
1. [Adding a new Blocking Group](#adding-a-new-blocking-group)
1. [Configuring a Blocking Group Role](#configuring-a-blocking-group-role)
1. [Renaming Roles](#Renaming-Roles)
1. [Renaming Roles](#renaming-roles)

## Server Configurations

Expand Down
42 changes: 21 additions & 21 deletions CREATE_TASKMASTER_TASKS.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
# Creating Your Own Custom Task for the Taskmaster

## Table of Contents
1. [Before You Start](#Before-You-Start)
1. [Code](#Code)
1. [Task Table](#Task-Table)
1. [Task Properties](#Task-Properties)
1. [Name](#Name)
1. [Description](#Description)
1. [Initialize](#Initialize)
1. [Server-Side](#Server-Side)
1. [CanAssignTask](#CanAssignTask)
1. [RequiredFeatures](#RequiredFeatures)
1. [OnTaskAssigned](#OnTaskAssigned)
1. [OnTaskRemoved](#OnTaskRemoved)
1. [OnTaskComplete](#OnTaskComplete)
1. [Task Registration](#Task-Registration)
1. [Example File](#Example-File)
1. [Uploading Your Addon](#Uploading-Your-Addon)
1. [Before You Start](#before-you-start)
1. [Code](#code)
1. [Task Table](#task-table)
1. [Task Properties](#task-properties)
1. [Name](#name)
1. [Description](#description)
1. [Initialize](#initialize)
1. [Server-Side](#server-side)
1. [CanAssignTask](#canassigntask)
1. [RequiredFeatures](#requiredfeatures)
1. [OnTaskAssigned](#ontaskassigned)
1. [OnTaskRemoved](#ontaskremoved)
1. [OnTaskComplete](#ontaskcomplete)
1. [Task Registration](#task-registration)
1. [Example File](#example-file)
1. [Uploading Your Addon](#uploading-your-addon)
1. [addon.json](#addonjson)
1. [Workshop Icon](#Workshop-Icon)
1. [Folder Name](#Folder-Name)
1. [Final Checks](#Final-Checks)
1. [Uploading](#Uploading)
1. [Wrapping Up](#Wrapping-Up)
1. [Workshop Icon](#workshop-icon)
1. [Folder Name](#folder-name)
1. [Final Checks](#final-checks)
1. [Uploading](#uploading)
1. [Wrapping Up](#wrapping-up)

## Before You Start
In order to create your own tasks you will need to make sure you have downloaded tools to edit the following file types:
Expand Down
Loading
Loading