Trouble in Terrorist Town: Level Creation: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(It is done)
(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.)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Rewrite}}
{{Rewrite}}
{{toc-right}}
{{toc-right}}
A Level Creation Guide for {{game name|ttt|name=Trouble in Terrorist Town}}
A Level Creation Guide for {{ttt|4}}
For general mapping tutorials, see [[:Category:Level Design]]
For general mapping tutorials, see [[:Category:Level Design]]
<br>
<br>
For {{game name|ttt2|name=Trouble in Terrorist Town 2}} see [[Trouble in Terrorist Town 2: Level Creation |here]]
For {{ttt2|4}} see [[Trouble in Terrorist Town 2: Level Creation |here]]


You need for Trouble in Terrorist Town:
You need for Trouble in Terrorist Town:
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}}


<br>
<br>
Making maps for {{game name|ttt|name=Trouble in Terrorist Town}} is essentially the same as creating maps for other {{src|4.1}} games with a few exceptions. TTT has its fgd file available [[Garrys Mod.fgd/Trouble in Terrorist Town.fgd|here]] which includes gamemode-specific entities. Vague descriptions of these entities, the fgd, as well as a few map examples are available at https://www.troubleinterroristtown.com/development/mapping/
Making maps for {{ttt|4}} is essentially the same as creating maps for other {{src|4.1}} games with a few exceptions. TTT has its FGD file available [[Garrys Mod.fgd/Trouble in Terrorist Town.fgd|here]] which includes gamemode-specific entities. Map examples are available at https://www.troubleinterroristtown.com/development/mapping/
 
However, due to the map help forums being down, it is mostly up to YouTube videos, and scattered tutorials throughout different forums that developers use to get help for specific things. This page is being worked on starting September 2016, so it is the most recent.
 
This page will give detailed descriptions of each entity included in the FGD, instructions on how to modify the FGD for various reasons, how to set up {{hammer|4}} and test your map, and tutorials on various gamemode-specific entities and logic.
 
As this page is edited, feel free to request tutorials/anything else needed on the discussion page of this post


== Entities ==
== Entities ==
Line 49: 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.