Garry's Mod

Garry's Mod

33 Bewertungen
[TTT2] Spectre [ROLE]
   
Preis verleihen
Favorisieren
Favorisiert
Entfernen
Content Type: Addon
Addon Type: ServerContent
Addon Tags: Fun, Roleplay
Dateigröße
Veröffentlicht
Aktualisiert
371.231 KB
22. Juni 2020 um 19:12
1. Dez. 2021 um 19:59
22 Änderungshinweise (anzeigen)

Abonnieren zum Herunterladen
[TTT2] Spectre [ROLE]

In 4 Kollektionen von Wasted
TTT2 Dingus Server
581 Inhalte
Dingus Playerside
320 Inhalte
TTT2 Dingus Beta Collection
45 Inhalte
Dingode TTT2
322 Inhalte
Beschreibung
Your spirit is strong, and even if you die you shall rise once more!

Based on the Phantom from Custom Roles for TTT.

Requires TTT2 in order to use this role. A list of all currently available roles can be found here

Source: https://github.com/ZacharyHinds/ttt2-role-spectre





The Spectre is an innocent role. When they are killed, they haunt their killer! Their haunt is visible as smoke around their attacker (configurable with ConVars) and when their attacker dies, they revive!





Normal Role Convars (also found in F1 Menu):
# enable or disable this role ttt_spectre_enabled [0/1] (default: 1) # the percentage of players that are spawned as this role ttt_spectre_pct [0.0..1.0] (default 0.15) # the limit of players that spawn as this role each round, this overwrites the percentage ttt_spectre_max [0.0..n] (default: 1) # the probility each round of this role being spawned at all ttt_spectre_random [0..100] (default: 33) # the amount of players needed for this role to spawn ttt_spectre_min_players: [0..n] (default: 6)

Role Specific Convars (also found in F1 Menu):
# the amount of health a spectre revives with ttt2_spectre_revive_health [1..n] (default 50) # enable or disable the spectre's smoke ttt2_spectre_smoke_mode [0 or 1] (default 1) # who sees the announcement that the spectre has died (0 - no one, 1 - everyone, 2 - only detectives) ttt2_spectre_declare_mode [0 or 1 or 2] (default 2) # Whether or not the spectre respawns at worldspawn or at their body. ttt2_spectre_worldspawn [0 or 1] (default 0)


--
Credits:
Wasted: creator of this role addon
Tim | Mineotopia: creator of icon
13 Kommentare
Loussio 5. Aug. 2023 um 10:37 
what happen if he get killed by the infected ? he will still haunting the infected or he will become a zombie ?
|UGA|PatPeter 9. Sep. 2021 um 23:25 
I created a master configuration file for all of the TTT roles in the first 3 pages of the Workshop search: https://gist.github.com/PatPeter/70b1c090d8c8c311d99632dca76ec513
Wasted  [Autor] 4. Jan. 2021 um 15:42 
@Cpt.Haxray That's fine with me so long as you credit me!
Cpt.Haxray 2. Jan. 2021 um 21:16 
Hey, i made a custom edit of this role for a server called the Haunted that is on the Traitor team. Since its still mostly your code(basically just swapped role, swapped all references to Spectre to Haunted, and replaced Icons with new ones), would you be fine with me uploading it to the steam workshop(i could add you as a contributor as well if need be)?
Wasted  [Autor] 8. Sep. 2020 um 8:46 
@fskin @Catherine It should be fixed, let me know if the error persists
Wasted  [Autor] 8. Sep. 2020 um 8:31 
Ah, I was trying to patch a problem with Spectator Deathmatch, but if you don't have that installed it breaks, will put out a fix shortly
fskin 8. Sep. 2020 um 6:40 
Same problem. Error:

[[TTT2] Spectre [ROLE]] lua/terrortown/autorun/shared/sh_haunt_handler.lua:48: attempt to call method 'IsGhost' (a nil value)
1. fn - lua/terrortown/autorun/shared/sh_haunt_handler.lua:48
2. Run - lua/ulib/shared/hook.lua:109
3. unknown - addons/ttt2-master/gamemodes/terrortown/gamemode/server/sv_player.lua:836
Wasted  [Autor] 18. Juli 2020 um 18:43 
@PROFI I've added your idea as a new ConVar, set ttt2_spectre_worldspawn to 1 and the Spectre should respawn at one of the map's spawnpoints
Tim | Mineotopia 15. Juli 2020 um 5:29 
you could revive the player at a spawnpoint instead of the revival at their bodyposition. Take a look at the spawn library to learn about those functions.
KillerfoxyLP 15. Juli 2020 um 3:59 
@Wasted could u do that where the spectre dies respawn? because i just died somebody made my body fell of the building and i died instantly there