Trouble in Terrorist Town: Level Creation: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Replaced deprecated {{Game name}} template with {{Software}} counterpart. Action performed by bot)
(Added ttt_filter_role, a better description to ttt_logic_role, and a new page. I hope to improve the TTT pages over time, as there are MANY entities going undocumented and pages going unwritten.)
 
Line 29: Line 29:
* [[Traitor-Doors|Traitor Doors]]
* [[Traitor-Doors|Traitor Doors]]
* [[Traitor_Traps|Traitor Traps]]
* [[Traitor_Traps|Traitor Traps]]
 
* [[Traitor_Traps|Level Design Conventions]]
{{category end}}
{{category end}}


Line 43: Line 43:
{{ent|ttt_game_text}} This entity allows you to display text on the screens of a role, or all players
{{ent|ttt_game_text}} This entity allows you to display text on the screens of a role, or all players


{{ent|ttt_logic_role}} This entity allows you to check if the role of the !activator
{{ent|ttt_logic_role}} This entity allows you to test the role of the !activator, letting you make things such as detective/innocent-only buttons that everyone can see.
 
{{ent|ttt_filter_role}} This entity, like ttt_logic_role, allows you to test the role of the activator, but as a filter, directly choosing which roles can activate a trigger.


{{ent|ttt_map_settings}} This entity allows you to control things related to your map, like player models or prop procession.
{{ent|ttt_map_settings}} This entity allows you to control things related to your map, like player models or prop procession.

Latest revision as of 14:37, 28 March 2025

Icon-edit.png
This is currently being rewritten.
You can discuss the changes here.

A Level Creation Guide for Ttt-16px.png Trouble in Terrorist Town For general mapping tutorials, see Category:Level Design
For Trouble in Terrorist Town 2 Trouble in Terrorist Town 2 see here

You need for Trouble in Terrorist Town:

Getting Started

Special Objects


Making maps for Ttt-16px.png Trouble in Terrorist Town is essentially the same as creating maps for other Source Source games with a few exceptions. TTT has its FGD file available here which includes gamemode-specific entities. Map examples are available at https://www.troubleinterroristtown.com/development/mapping/

Entities

ttt_credit_adjust This entity allows you to give or take credits away from a Detective or Traitor player.

ttt_damageowner This entity allows you to correctly attribute damage to the player that activated it. (Traitor traps, etc)

ttt_game_text This entity allows you to display text on the screens of a role, or all players

ttt_logic_role This entity allows you to test the role of the !activator, letting you make things such as detective/innocent-only buttons that everyone can see.

ttt_filter_role This entity, like ttt_logic_role, allows you to test the role of the activator, but as a filter, directly choosing which roles can activate a trigger.

ttt_map_settings This entity allows you to control things related to your map, like player models or prop procession.