Garry's Mod

Garry's Mod

Not enough ratings
[TTT2] Astronaut [ROLE]
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: ServerContent
File Size
Posted
Updated
3.868 MB
17 Feb, 2022 @ 6:13pm
18 Feb, 2022 @ 1:21pm
2 Change Notes ( view )

Subscribe to download
[TTT2] Astronaut [ROLE]

Description
His crewmates always follow his lead, even if it means throwing out their own team. His excellent leadership makes him a prime target though...

You have to use TTT2 in order to use this role. Additionally using ULX for TTT2 is recommended. Report bugs concerning this role (IN COMMENT SECTION, GITHUB WIP) and submit new role ideas here[github.com]. A list of all currently available roles can be found here.

Discord: https://discord.gg/Npcbb4W
Source: WIP




The Astronaut is a detective role, but instead of spawning with a DNA scanner, it spawns with a meeting maker. The meeting maker allows the Astronaut to call a vote using a dead body. The terrorists can then vote on someone to kill, but be careful not to vote out innocents! Calling a meeting uses a set amount of "Meeting Charges," which can only be obtained when the Astronaut spawns, or when a non-innocent dies. Certain roles are also immune to the votes, so make sure not to waste a vote on them!

Based off a role made for CR for TTT: Astronaut (CR for TTT)

Note: The Astronaut is currently heavily WIP. A lot of Convars and other things could cause errors/bugs, so please report any bugs you come across so I can fix them.




Convars are variables that are introduced to allow server owners to customize the gameplay without changing the code. There are always a handful of convars automatically created by TTT2, that define the spawn parameters of this role and are found in ULX. Additionally there might be some role specific convars, which have to be set in the server config file.

Normal Role Convars (also found in ULX):
# enable or disable this role ttt_astronaut_enabled [0/1] (default: 1) # the percentage of players that are spawned as this role ttt_astronaut_pct [0.0..1.0] (default: 0.13) # the limit of players that spawn as this role each round, this overwrites the percentage ttt_astronaut_max [0..n] (default: 1) # the probability each round of this role being spawned at all ttt_astronaut_random [0..100] (default: 30) # the amount of players needed for this role to spawn ttt_astronaut_min_players: [0..n] (default: 8)

Meeting Maker Convars:
# Whether the votes are disclosed in the meeting. ttt_astronaut_meeting_anonymous [0/1] (default: 1) # The number of seconds each round of voting lasts. ttt_astronaut_meeting_timer [10..90] (default: 25) # The amount of uses the meeting caller starts with. ttt_astronaut_meeting_charges [0..10] (default: 6) # Whether ties result in a coin toss; otherwise, nobody dies. ttt_astronaut_meeting_tiekills [0/1] (default: 0) # % of player votes needed for a vote to pass, set to 0 to disable. ttt_astronaut_meeting_totalpct [0..100] (default: 0) # The number of charges required for 1 meeting. ttt_astronaut_meeting_chargeuse [1..5] (default: 3) # How to handle the perpetrator for when Jester/Swapper is voted for. Set to 0 for random voter, 1 for nobody, 2 for the Jester/Swapper to chose. ttt_astronaut_meeting_jestermode [0..2] (default: 1) (BROKEN, ONLY USE JESTERMODE 1) # Whether the Astronaut destroys a body when they use it to start a meeting. ttt_astronaut_meeting_remove_body [0/1] (default: 0) # Whether to allow a meeting on a body that died from a vote. ttt_astronaut_meeting_repeat [0/1] (default: 0) # How long an astronaut should take to start a meeting on a body. ttt_astronaut_meeting_charge_time [1..12] (default: 2)

--
Credits:
Neon Cat: creator of this role addon & icon
ferretium: designer of the meeting maker model
ianthina: creator of the original astronaut role
Popular Discussions View All (2)
6
18 Feb, 2022 @ 6:12am
PINNED: Suggestions
Neon Cat
5
18 Feb, 2022 @ 7:16am
PINNED: BUG REPORTS
Neon Cat
3 Comments
Ailesmik 22 Jan @ 2:35am 
[[TTT2] Astronaut [ROLE]] bad argument #5 to CreateConVar (number expected, got string)
1. unknown - gamemodes/terrortown/entities/weapons/weapon_ast_meeting.lua:122
gael the metropolice 29 Aug, 2023 @ 1:17pm 
the how to play part reminds me of what the person under me said
漫游者_Xhc 7 Aug, 2023 @ 6:42pm 
ඞ a m o n g u s ඞ