Garry's Mod

Garry's Mod

Not enough ratings
[TTT2] Astronaut [ROLE]
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Server content
File Size
Posted
Updated
3.868 MB
Feb 17, 2022 @ 6:13pm
Feb 18, 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
Feb 18, 2022 @ 6:12am
PINNED: Suggestions
Neon Cat
6
Jan 27 @ 4:38pm
PINNED: BUG REPORTS
Neon Cat
8 Comments
Bullet Dec 9, 2024 @ 12:56am 
thanks for explaining anyways, a reason is much better than getting no reply at all
Neon Cat  [author] Dec 8, 2024 @ 5:25pm 
Not that I know of.
Bullet Nov 27, 2024 @ 11:16pm 
huh, is there a way to return to a previous version of ttt2 where this *would* work?
Neon Cat  [author] Nov 27, 2024 @ 10:34pm 
I may or may not try to look into bugs at some point, but TTT2 has changed a lot (mostly for the worse) since I made this already buggy addon. I'm usually pretty busy unfortunately so it's unlikely I'll have time to fix this anytime soon.
Bullet Nov 18, 2024 @ 9:14pm 
trying this, and apparently t he meeting maker does not spawn in the astronaut's inventory, nor does it appear in-game at all, not even in the item list in TTT2's menu. Is there some dependency that isnt listed?
Ailes Jan 22, 2024 @ 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 soldier Aug 29, 2023 @ 1:17pm 
the how to play part reminds me of what the person under me said
漫游者_Xhc Aug 7, 2023 @ 6:42pm 
ඞ a m o n g u s ඞ