Garry's Mod

Garry's Mod

35 évaluations
[TTT2] Spectre [ROLE]
   
Récompenser
Ajouter aux favoris
Favoris
Retirer des favoris
Type de contenu: Addon
Type d'addon: Contenu serveur
Mots-clés d'addon: Divertissement, Jeu de rôle
Taille du fichier
Publié le
Mis à jour le
371.231 KB
22 juin 2020 à 19h12
1 déc. 2021 à 19h59
22 notes de changement ( voir )

S'abonner pour télécharger
[TTT2] Spectre [ROLE]

Dans 4 collections faites par Wasted
TTT2 Dingus Server
581 objets
Dingus Playerside
320 objets
TTT2 Dingus Beta Collection
45 objets
Dingode TTT2
326 objets
Description
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
14 commentaires
mexikoedi 10 mars à 9h25 
I tried this role and it works great but I got an error.
I opened a GitHub issue.
It would be nice if this role could get updated.
Loussio 5 aout 2023 à 10h37 
what happen if he get killed by the infected ? he will still haunting the infected or he will become a zombie ?
|UGA|PatPeter 9 sept. 2021 à 23h25 
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  [créateur] 4 janv. 2021 à 15h42 
@Cpt.Haxray That's fine with me so long as you credit me!
Cpt.Haxray 2 janv. 2021 à 21h16 
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  [créateur] 8 sept. 2020 à 8h46 
@fskin @Catherine It should be fixed, let me know if the error persists
Wasted  [créateur] 8 sept. 2020 à 8h31 
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 sept. 2020 à 6h40 
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  [créateur] 18 juil. 2020 à 18h43 
@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 juil. 2020 à 5h29 
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.