Garry's Mod

Garry's Mod

38 ratings
[TTT2] Occultist [ROLE]
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Gamemode
Addon Tags: Fun, Roleplay, Scenic
File Size
Posted
Updated
832.802 KB
4 Jan, 2020 @ 12:08pm
4 Nov, 2021 @ 10:39am
27 Change Notes ( view )

Subscribe to download
[TTT2] Occultist [ROLE]

Description
Using the Power of Fire, the Occultist is covering the innocent Team and is warding all Evils off. He has successfully performed a ritual. Now he is a living human phoenix.

You have to use TTT2 in order to use this role. Report bugs concerning this role here[github.com] 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: https://github.com/Pythagorion/TTT2_Occultist-ROLE




The Occultist is an innocent and wins with them. But he's got a hidden ability: When his HP falls below 25, he will be brought back to life after his death. When he dies, his corpse will go up in flames and then he can rise up and walk out off the flames. Furthermore he is invinsible to fire. But he must be careful: Persons around his corpse will be notified about his revival. If the Occultist is one-shotted, the ritual will not take effect and he will remain in the realm of the dead.

Plays best with:




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_occul_enabled [0/1] (default: 1) # the percentage of players that are spawned as this role ttt_occul_pct [0.0..1.0] (default: 0.15) # the limit of players that spawn as this role each round, this overwrites the percentage ttt_occul_max [0..n] (default: 1) # the probability each round of this role being spawned at all ttt_occul_random [0..100] (default: 33) # the amount of players needed for this role to spawn ttt_occul_min_players: [0..n] (default: 8)

Rolespecific Convars:
# How many HP must the Occultist lose to get revived? ttt_occultist_health_threshold [0.. 100] (default: 25) # How much time does it take until the Occultist gets revived? ttt_occultist_respawn_time [0.. 100] (default: 10) # How wide shall be the radius of the inferno? ttt_occultist_fire_radius [0.. 500] (default: 500) # How much damage shall deal the fire? Note: It scales in decimal. If you set 1, the fire will kill instant, when you come too close. Under default settings, it deals 10 damage per tick. ttt_occultist_fire_damagescale [0..1] (default: 0) # If it's set to true the occultist's player won't see that he is the occultist. The Innocent-Role will be shown. ttt_occultist_hide_identity [0/1] (default: 0) # If it's set to true, the occultist's revival will be announced by a popup in the center of the screen. ttt_occultist_announce_revival_by_epop [0/1] (default: 1) # If it's set to true, the revival sound will be played. ttt_occultist_play_respawn_sound [0/1] (default: 1) # If it's set to true, the occultist will be teleported to a random spawnpoint on the map, shortly after his revival. ttt_occultist_teleport_to_mapspawn [0/1] (default: 0) # If it's set to true, the occultist will receive the NoFireDamage-Buff in the round´s beginning. Otherwise he will receive it after he was revived. ttt_occultist_receive_buff_to_beginning [0/1] (default: 1)

--
Credits:
Pythagorion: creator of this role addon
Mineotopia: designer of the role icon and co-coder
Jenssons: the addon was inspired by the phoenix from the Town of Terror Addon
47 Comments
|UGA|PatPeter 9 Sep, 2021 @ 11:39pm 
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
Tim | Mineotopia  [author] 3 Aug, 2020 @ 11:13pm 
No fire damage is included in TTT2 since a while. It isn't available as a separate addon anymore
Nathan22211 3 Aug, 2020 @ 3:20pm 
you might want to add the no fire damage item under required items
Tim | Mineotopia  [author] 24 Apr, 2020 @ 2:11am 
@blackmagicfine
I highly recommend using ulx
blackmagicfine 24 Apr, 2020 @ 12:58am 
My server log is dumping the following:

Unknown command "ttt_occul_enabled"
Unknown command "ttt_occul_pct"
Unknown command "ttt_occul_max"
Unknown command "ttt_occul_random"
Unknown command "ttt_occul_min_players"
Unknown command "ttt_occultist_announce_revival_by_epop"

I'm not sure about the last one, but the first five appear to have a spelling mistake. "occul" should be "occultist".
Kagamine Rin (MinusK) 4 Mar, 2020 @ 6:16pm 
I am happy to report the latest update fixed the problem on my end - the Occultist now respawns from the flames just as he is intended to! (though there was that one time the fire didn't spawn on my corpse and I instead respawned in a completely different location with the fire... that was weird)

Thank you very much for the fast response and fix! I'm really looking forward to playing with this role in a session with my friends soon.

Best regards,
MinusK
Tim | Mineotopia  [author] 4 Mar, 2020 @ 3:49am 
There are. Line 67 and 68
aPythagorion  [author] 4 Mar, 2020 @ 3:27am 
There are no convars that are localized global.
Tim | Mineotopia  [author] 4 Mar, 2020 @ 3:23am 
You should stop localizing your convar values in the global scope. This creates many problems
aPythagorion  [author] 4 Mar, 2020 @ 2:19am 
Yes I tested them. And I checked the Occultist, some moments ago. Everything is working fine for me. But I also have an idea what the problem is. It´s the convar that triggers the inferno, even when the Occultist shall not respawn. I removed that convar. Now everything should work.