Compare commits

...

2 Commits

Author SHA1 Message Date
f9386428bf Added some roles 2022-03-28 22:18:31 +02:00
a1a2828639 Updated some files 2022-03-28 20:29:20 +02:00
18 changed files with 1351 additions and 22 deletions

View File

@ -11,6 +11,17 @@ html {
.blurry { .blurry {
backdrop-filter: blur(7px) !important; backdrop-filter: blur(7px) !important;
} }
pre {
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
overflow-x: auto;
white-space: pre-wrap;
white-space: -moz-pre-wrap;
white-space: -pre-wrap;
white-space: -o-pre-wrap;
word-wrap: break-word;
}
pre code { pre code {
color: #fff; color: #fff;
background-color: #aaa; background-color: #aaa;

View File

@ -58,12 +58,16 @@
foreach ($files as $filename) { foreach ($files as $filename) {
include $filename; include $filename;
$shortname = substr($filename, 9);
$shortname = substr($shortname, 0, -4);
/*
if ($count%2 == 1) if ($count%2 == 1)
{ {
echo "<div class='row'>"; echo "<div class='row'>";
} }
*/
echo ' echo '
<div class="col s12 m6"> <div class="col s12">
<div class="blurry"> <div class="blurry">
<div class="card '.$color.' '.$tcolor.'-text"> <div class="card '.$color.' '.$tcolor.'-text">
<div class="card-content"> <div class="card-content">
@ -73,39 +77,46 @@
<div class="card-tabs"> <div class="card-tabs">
<ul class="tabs tabs-fixed-width"> <ul class="tabs tabs-fixed-width">
<li class="tab col s3"> <li class="tab col s3">
<a class="active" href="#'.$name.'h2p"><i class="material-icons">help_outline</i></a> <a class="active" href="#'.$shortname.'h2p"><i class="material-icons">help_outline</i></a>
</li> </li>
<li class="tab col s3"> <li class="tab col s3">
<a href="#'.$name.'pbw"><i class="material-icons">check</i></a> <a href="#'.$shortname.'pbw"><i class="material-icons">check</i></a>
</li> </li>
<li class="tab col s3 hide-on-small-only"> <li class="tab col s3 hide-on-small-only">
<a href="#'.$name.'convars"><i class="material-icons">code</i></a> <a href="#'.$shortname.'convars"><i class="material-icons">code</i></a>
</li> </li>
<li class="tab col s3"> <li class="tab col s3">
<a href="#'.$name.'credits"><i class="material-icons">copyright</i></a> <a href="#'.$shortname.'credits"><i class="material-icons">copyright</i></a>
</li> </li>
</ul> </ul>
</div> </div>
<div class="card-content grey lighten-4 black-text"> <div class="card-content grey lighten-4 black-text">
<div id="'.$name.'h2p">'.$howtoplay.'</div> <div id="'.$shortname.'h2p"><h5>How to play:</h5><pre>'.$howtoplay.'</pre></div>
<div id="'.$name.'pbw">'.$playsbestwith.'</div> <div id="'.$shortname.'pbw"><h5>Plays best with:</h5>'.$playsbestwith.'</div>
<div id="'.$name.'convars"> <div id="'.$shortname.'convars"><h5>Convars:</h5>
<pre><code>'.$convars.'</code></pre> <pre>'.$convars.'</pre>
</div> </div>
<div id="'.$name.'credits">Main Creator: <a href="'.$authorurl.'">'.$author.'</a><br>'.$ctext.'</div> <div id="'.$shortname.'credits"><h5>Credits:</h5>Main Creator: <a href="'.$authorurl.'">'.$author.'</a><br><pre>'.$ctext.'</pre></div>
</div>
<div class="card-action '.$color.' ">
<a class="'.$tcolor.'-text" href="'.$steam.' ">Steam</a>
<a class="'.$tcolor.'-text" href="'.$source.'">Source</a>
</div>
</div
</div> </div>
</div> </div>
</div> </div>
'; ';
/*
if ($count%2 == 0) if ($count%2 == 0)
{ {
echo "</div>"; echo "</div>";
} }
$count++; $count++;
*/
} }
if ($count%2 != 1) echo "</div>"; // if ($count%2 != 1) echo "</div>";
?> ?>
</div> </div>

View File

@ -17,7 +17,7 @@ $color = "indigo";
# #
#The Name of the Role #The Name of the Role
$name = "Detective"; $name = 'Detektiv';
#The Description of the Role, HTML conform :) #The Description of the Role, HTML conform :)
$description = "Use your gadgets to find the enemies!"; $description = "Use your gadgets to find the enemies!";

View File

@ -23,12 +23,12 @@ $description = "The Accomplice doesn't know his master... find him and protect!"
#How To play #How To play
$howtoplay = "The Accomplice is a partner of the Traitor. The Accomplice is visible to the Traitor. But the Accomplice doesn't know who is the Traitor. So,you have to find him by yourself. In other words in werewolf game, the Madman. $howtoplay = "The Accomplice is a partner of the Traitor. The Accomplice is visible to the Traitor. But the Accomplice doesn't know who is the Traitor. So,you have to find him by yourself. In other words in werewolf game, the Madman.
<ul>
<li> The Accomplice can't win alone. </li> The Accomplice can't win alone.
<li> The Accomplice can't buy Items from the shop(Default). </li> The Accomplice can't buy Items from the shop(Default).
<li> The Accomplice has radar for corpses. </li> The Accomplice has radar for corpses.
<li> The Accomplice can't transfer to Traitors. </li> The Accomplice can't transfer to Traitors.
</ul>
"; ";
#With what roles does this role play best? #With what roles does this role play best?
$playsbestwith = " $playsbestwith = "
@ -39,7 +39,8 @@ $playsbestwith = "
<ul> <ul>
"; ";
#Convars #Convars
$convars = "# enable or disable this role $convars = "Normal Role Convars (also found in ULX):
<code># enable or disable this role
ttt_accom_enabled [0/1] (default: 1) ttt_accom_enabled [0/1] (default: 1)
# the percentage of players that are spawned as this role # the percentage of players that are spawned as this role
ttt_accom_pct [0.0..1.0] (default: 0.17) ttt_accom_pct [0.0..1.0] (default: 0.17)
@ -48,7 +49,7 @@ $convars = "# enable or disable this role
# the probability each round of this role being spawned at all # the probability each round of this role being spawned at all
ttt_accom_random [0..100] (default: 50) ttt_accom_random [0..100] (default: 50)
# the amount of players needed for this role to spawn # the amount of players needed for this role to spawn
ttt_accom_min_players: [0..n] (default: 8)"; ttt_accom_min_players: [0..n] (default: 8)</code>";
# #
# Credits # Credits
@ -65,5 +66,6 @@ $author = "JustSiro105";
$authorurl = "https://steamcommunity.com/profiles/76561198327487098"; $authorurl = "https://steamcommunity.com/profiles/76561198327487098";
# Credittext (can use the above variables) # Credittext (can use the above variables)
$ctext = " Westoon[JPN]: creator of this role addon <br> irokuma105: idear of this role addon"; $ctext = "Westoon[JPN]: creator of this role addon
irokuma105: idear of this role addon";
?> ?>

84
roles/en/amnesiac.php Normal file
View File

@ -0,0 +1,84 @@
<?php
#
# COLORS
#
# Text Color
$tcolor = "white";
# This is the color defined by https://materializecss.com/color.html
$color = "deep-purple lighten-3";
#
# BASEINFO
#
#The Name of the Role
$name = "Amnesiac";
#The Description of the Role, HTML conform :)
$description = "A lost soul that has forgotten what he used to be, but is always looking for hints to his past identity..";
#
# TABS
#
#How To play
$howtoplay = "The Amnesiac is a new role that is looking to change to another in order to win. To do so, you will need to find a hint to his lost identity. Said hint can be found by confirming a dead players body. The Amnesiac will receive the role of the first player that they confirm that round.
It has to be a confirmation (revealing who died and what team they were in) a simple inspection does not count!
The Amnesiac changing their role will be announced to all players. Some additional features using TTT2s awesome and easy to use system have also been implemented. :)";
#With what roles does this role play best?
$playsbestwith = "
<ul>
<li>Occultist</li>
<li>Necromancer</li>
<li>Pirate</li>
<ul>
";
#Convars
$convars = "Normal Role Convars (also found in ULX):
<code># enable or disable this role
ttt_amnesiac_enabled [0/1] (default: 1)
# the percentage of players that are spawned as this role
ttt_amnesiac_pct [0.0..1.0] (default: 0.17)
# the limit of players that spawn as this role each round, this overwrites the percentage
ttt_amnesiac_max [0..n] (default: 1)
# the probability each round of this role being spawned at all
ttt_amnesiac_random [0..100] (default: 50)
# the amount of players needed for this role to spawn
ttt_amnesiac_min_players: [0..n] (default: 7)</code>
Rolespecific Convars:
<code># Does the Amnesiac inform other players when he changes his role (popup event)
ttt2_amnesiac_showpopup [0/1] (default 1)
# Does the Amnesiac confirm a player when pressing [E] on a dead body when getting a role (disables confirmation message too!)
ttt2_amnesiac_confirm_player [0/1] (default 0)
# Does the Amnesiac only get roles from unconfirmed bodies
ttt2_amnesiac_limit_to_unconfirmed [0/1] (default 1)</code>";
#
# Credits
#
#The Steam URL to your addon
$steam = "https://steamcommunity.com/sharedfiles/filedetails/?id=2001213453";
#The Source URL to your addon
$source = "https://steamcommunity.com/linkfilter/?url=https://github.com/LunexSan/ttt2-role_amni";
#Creator of the Addon
$author = "Lunex";
#Creatorlink
$authorurl = "https://steamcommunity.com/id/Lunexkun/";
# Credittext (can use the above variables)
$ctext = "Lunex: Creator of this role addon
Pythagorion: A huge thank you for the Icon Designs
Mineotopia: Credits to him for immense help in coding this.";
?>

75
roles/en/arsonist.php Normal file
View File

@ -0,0 +1,75 @@
<?php
#
# COLORS
#
# Text Color
$tcolor = "black";
# This is the color defined by https://materializecss.com/color.html
$color = "orange";
#
# BASEINFO
#
#The Name of the Role
$name = "Arsonist";
#The Description of the Role, HTML conform :)
$description = "He is an arsonist who likes things related to fire.";
#
# TABS
#
#How To play
$howtoplay = "The Arsonist is a partner of the Traitor. The Arsonist have a Flare gun and his own flamethrower.
And he has a flame resistance.";
#With what roles does this role play best?
$playsbestwith = "
<ul>
<li>Occultist</li>
<li>TODO</li>
<li>TODO (/shrug)</li>
<ul>
";
#Convars
$convars = "Normal Role Convars (also found in ULX):
<code># enable or disable this role
ttt_ars_enabled [0/1] (default: 1)
# the percentage of players that are spawned as this role
ttt_ars_pct [0.0..1.0] (default: 0.17)
# the limit of players that spawn as this role each round, this overwrites the percentage
ttt_ars_max [0..n] (default: 1)
# the probability each round of this role being spawned at all
ttt_ars_random [0..100] (default: 50)
# the amount of players needed for this role to spawn
ttt_ars_min_players: [0..n] (default: 6)</code>";
#
# Credits
#
#The Steam URL to your addon
$steam = "https://steamcommunity.com/sharedfiles/filedetails/?id=2652626080";
#The Source URL to your addon
$source = "https://steamcommunity.com/linkfilter/?url=https://github.com/westooooo/ttt2-role_arsonist";
#Creator of the Addon
$author = "Westoon[JPN]";
#Creatorlink
$authorurl = "https://steamcommunity.com/profiles/76561198358406467";
# Credittext (can use the above variables)
$ctext = "Lunex: Creator of this role addon
Pythagorion: A huge thank you for the Icon Designs
Mineotopia: Credits to him for immense help in coding this.";
?>

108
roles/en/banker.php Normal file
View File

@ -0,0 +1,108 @@
<?php
#
# COLORS
#
# Text Color
$tcolor = "black";
# This is the color defined by https://materializecss.com/color.html
$color = "light-green lighten-4";
#
# BASEINFO
#
#The Name of the Role
$name = "Banker";
#The Description of the Role, HTML conform :)
$description = "While the Detectives get all of the credit, everyone knows that Terrorist HQ would be nothing without its loyal Bankers.";
#
# TABS
#
#How To play
$howtoplay = 'The Banker is a "Detective" subrole who receives all of the credits that every other role spends in the shop. If there are multiple bankers, the credits are split among them in an equitable round robin manner.
The Banker could use a better workout regimen and diet plan. They have some trouble sprinting long distances and receive more damage than the average person.
For maximum profit, the Banker can transfer credits to a trustworthy Detective/Survivalist, who can then buy something and give the Banker back their hard-earned credits (This can only be done a certain number of times).
The best way to combat the Banker is through frugal spending and proper planning.';
#With what roles does this role play best?
$playsbestwith = "
<ul>
<li>Survivalist</li>
<li>Serialkiller</li>
<li>Jackal</li>
<li>Any other non-detective role that has access to a shop.</li>
<ul>
";
#Convars
$convars = "Normal Role Convars (also found in ULX):
<code># enable or disable this role
ttt_banker_enabled [0/1] (default: 1)
# the percentage of players that are spawned as this role
ttt_banker_pct [0.0..1.0] (default: 0.13)
# the limit of players that spawn as this role each round, this overwrites the percentage
ttt_banker_max [0..n] (default: 1)
# the probability each round of this role being spawned at all
ttt_banker_random [0..100] (default: 30)
# the amount of players needed for this role to spawn
ttt_banker_min_players: [0..n] (default: 5)
# the amount of credits this role starts with
ttt_bank_credits_starting [0..n] (default: 2)</code>
Rolespecific Convars:
<code># How many credits can the Banker receive from purchases other shoppers make (infinite if -1)?
ttt2_banker_credit_ceiling [-1..n] (default: -1)
# Should the banker's murderer receive all of their credits (provided that they are a shopping role)?
ttt2_banker_ron_swanswon_will [0/1] (default: 0)
# If the Banker dies, how should everyone be informed?
ttt2_banker_broadcast_death_mode [0..3] (default: 0)
# 0: No broadcasting will occur
# 1: Everyone will be informed that the Banker committed suicide, regardless of what actually happened
# 2: Everyone will be informed that the Banker has died
# 3: If possible, the Banker's murderer will be made known to all, otherwise broadcast that they died under mysterious circumstances
# Should the server broadcast anyone who covertly searches the Banker's dead body?
ttt2_banker_broadcast_covert_search [0/1] (default: 0)
# How many credits can the Banker give out to others per round (infinite if -1)?
ttt2_banker_max_num_handouts [-1..n] (default: 2)
# This multiplier applies directly to the damage that the banker would receive (ex. 2.0 means the banker takes twice as much damage from all sources).
ttt2_banker_recv_dmg_multi [0.0..n.m] (default: 1.25)
# This multiplier applies directly to the banker's speed (ex. 0.5 means the banker moves half as fast).
ttt2_banker_speed_multi [0.0..n.m] (default: 1.0)
# This multiplier applies directly to the banker's stamina regen (ex. 0.5 means the sprint bar fills up half the normal speed).
ttt2_banker_stamina_regen [0.0..n.m] (default: 0.35)
# This multiplier applies directly to how fast the banker's stamina bar depletes (ex. 2.0 means the sprint bar decays twice as fast).
ttt2_banker_stamina_drain [0.0..n.m] (default: 1.25)</code>";
#
# Credits
#
#The Steam URL to your addon
$steam = "https://steamcommunity.com/sharedfiles/filedetails/?id=2402704831";
#The Source URL to your addon
$source = "https://steamcommunity.com/linkfilter/?url=https://github.com/AaronMcKenney/ttt2-role_bank";
#Creator of the Addon
$author = "BlackMagicFine";
#Creatorlink
$authorurl = "https://steamcommunity.com/profiles/76561198025772353/";
# Credittext (can use the above variables)
$ctext = "BlackMagicFine: creator of this role addon
Smuggles: designer of the role icon
Wasted: designer of the role thumbnail
Veldrim: heavily assisted with testing";
?>

123
roles/en/beacon.php Normal file
View File

@ -0,0 +1,123 @@
<?php
#
# COLORS
#
# Text Color
$tcolor = "black";
# This is the color defined by https://materializecss.com/color.html
$color = "yellow lighten-5";
#
# BASEINFO
#
#The Name of the Role
$name = "Beacon";
#The Description of the Role, HTML conform :)
$description = "A simple and innocent person, they rose up to power as their friends fell one by one.";
#
# TABS
#
#How To play
$howtoplay = "The beacon is an innocent who becomes more powerful each time someone on their team is confirmed dead. How they are buffed is determined by a series of convars, but by default consists of minor improvements to a slew of stats, including: jump power, speed, damage resistance, damage, fire rate, and health regeneration.
If they accrue enough power, they literally light up and their role is revealed to everyone. This makes them as trustworthy as a detective, but will also alert antagonists to their growing power.
There is but one catch: The beacon mustn't kill someone on their team. If they do, they will become an innocent, and take (potentially lethal) damage. Furthermore, an innocent killer can never become a beacon (ex. an amnesiac who kills the beacon in an attempt to inherit their powers). Such a person becomes an innocent instead.
A final note: The default settings are on the weaker end of the balance spectrum, and exist mostly to show what it can do. Feel free to use the many convars to rebalance the beacon to best fit your server.";
#With what roles does this role play best?
$playsbestwith = "
<ul>
<li>Amnesiac</li>
<li>Unknown</li>
<li>Wrath</li>
<ul>
";
#Convars
$convars = "Normal Role Convars (also found in ULX):
<code># enable or disable this role
ttt_beacon_enabled [0/1] (default: 1)
# the percentage of players that are spawned as this role
ttt_beacon_pct [0.0..1.0] (default: 0.15)
# the limit of players that spawn as this role each round, this overwrites the percentage
ttt_beacon_max [0..n] (default: 1)
# the probability each round of this role being spawned at all
ttt_beacon_random [0..100] (default: 30)
# the amount of players needed for this role to spawn
ttt_beacon_min_players: [0..n] (default: 6)</code>
Rolespecific Convars:
<code># the number of buffs that the beacon starts with
ttt2_beacon_min_buffs [0..n] (default: 1)
# The maximum number of buffs that the beacon can achieve
ttt2_beacon_max_buffs [0..n] (default: 5)
# Upon receiving this many buffs, the beacon lights up, revealing their role (like a detective)
ttt2_beacon_deputize_num_buffs [0..n] (default: 3)
# Beacon receives a buff when these types of players are confirmed dead
ttt2_beacon_search_mode [0..3] (default: 0)
# 0: Team mates are confirmed dead (innocents, survivalists, detectives, etc.)
# 1: Non team mates are confirmed dead (traitors, infected, serial killers, jesters, etc.)
# 2: Anyone is confirmed dead
# 3: Do not buff based on player death
# Beacon receives a buff the instant that a mate/non-mate/player dies (based on search_mode above)
ttt2_beacon_buff_on_death [0/1] (default: 0)
# Beacon receives a buff every x seconds. This is disabled if x is 0.
ttt2_beacon_buff_every_x_seconds [0..n] (default: 0)
# The damage the beacon receives if they kill one of their mates
ttt2_beacon_judgement [0..n] (default: 20)
# Beacon is demoted to Innocent if they kill someone on the Innocent team
ttt2_beacon_demotion_enable [0/1] (default: 1)
###BUFFS###
# The speed boost the beacon gets per buff (as a percentage of default speed)
ttt2_beacon_speed_boost [0.0..n.m] (default: 0.2)
# The stamina boost the beacon gets per buff (as a percentage of default stamina. Affects how long the beacon can sprint for)
ttt2_beacon_stamina_boost [0.0..n.m] (default: 0.2)
# The stamina regen boost the beacon gets per buff (as a percentage of default stamina regen. Affects how quickly the sprint meter refills)
ttt2_beacon_stamina_regen_boost [0.0..n.m] (default: 0.2)
# The jump power boost the beacon gets per buff (as a percentage of default jump power. If this is greater than 0, the beacon will receive the NoFallDamage item)
ttt2_beacon_jump_boost [0.0..n.m] (default: 0.2)
# The flat damage resistance boost the beacon gets per buff (as a percentage of damage which will be ignored)
ttt2_beacon_resist_boost [0.0..n.m] (default: 0.15)
# The armor the beacon gets per buff (by default a player with armor has 30+% damage reduction. Armor is reduced by each hit absorbed)
ttt2_beacon_armor_boost [0..n] (default: 0)
# The health regen per second the beacon gets per buff (ex. 0.2 ==> 1 HP every 5 seconds)
ttt2_beacon_hp_regen_boost [0.0..n.m] (default: 0.2)
# The damage boost the beacon gets per buff (as a percentage of default damage)
ttt2_beacon_damage_boost [0.0..n.m] (default: 0.10)
# The fire rate boost that the beacon gets per buff (as a percentage of default fire rate. Only applies to melee, pistol, and heavy type weapons)
ttt2_beacon_fire_rate_boost [0.0..n.m] (default: 0.2)</code>";
#
# Credits
#
#The Steam URL to your addon
$steam = "https://steamcommunity.com/sharedfiles/filedetails/?id=2199956605";
#The Source URL to your addon
$source = "https://steamcommunity.com/linkfilter/?url=https://github.com/AaronMcKenney/ttt2-role_beac";
#Creator of the Addon
$author = "BlackMagicFine";
#Creatorlink
$authorurl = "https://steamcommunity.com/profiles/76561198025772353/";
# Credittext (can use the above variables)
$ctext = "BlackMagicFine: creator of this role addon
Smuggles: designer of the role icon
Mineotopia: designer of the role thumbnail
berry: Russian translation";
?>

95
roles/en/beggar.php Normal file
View File

@ -0,0 +1,95 @@
<?php
#
# COLORS
#
# Text Color
$tcolor = "black";
# This is the color defined by https://materializecss.com/color.html
$color = "pink lighten-2";
#
# BASEINFO
#
#The Name of the Role
$name = "Beggar";
#The Description of the Role, HTML conform :)
$description = "He just wants an Item, why is everyone so cruel!";
#
# TABS
#
#How To play
$howtoplay = "A beggar is a Jester like role. They cannot deal damage and appear as a normal Jester to Traitors. They can die but will be resurrected to continue begging for a meaningful life. Their goal is to get dropped a bought item from any role with a shop, once they've been given an item they will convert to the persons team!
Example of interactions:
Detective drops the beggar a weapon -> Beggar becomes innocent
Traitor or Special traitor drops them a weapon -> Beggar becomes a plain Traitor
Jackal drops them a weapon -> Beggar becomes a sidekick (if installed) or a Jackal (if sidekick isn't installed)
Doppelganger drops a weapon -> Beggar becomes the same role as the Doppelganger and is on the Doppelgangers team.
Have any suggestions for some other special interactions? Drop a comment with your ideas!";
#With what roles does this role play best?
$playsbestwith = "
<ul>
<li>Jackal</li>
<li>Amnesiac</li>
<li></li>
<ul>
";
#Convars
$convars = "Normal Role Convars (also found in ULX):
<code># enable or disable this role
ttt_beggar_enabled [0/1] (default: 1)
# the percentage of players that are spawned as this role
ttt_beggar_pct [0.0..1.0] (default: 0.15)
# the limit of players that spawn as this role each round, this overwrites the percentage
ttt_beggar_max [0..n] (default: 1)
# the probability each round of this role being spawned at all
ttt_beggar_random [0..100] (default: 30)
# the amount of players needed for this role to spawn
ttt_beggar_min_players: [0..n] (default: 5)</code>
Rolespecific Convars:
<code># Can the Beggar damage entities or props?
ttt2_beggar_entity_damage [0/1] (default: 1)
# Can the Beggar explode, burn, crush, fall, drown??
ttt2_beggar_environmental_damage [0/1] (default: 1)
# Should the Beggar respawn on death?
ttt2_beggar_respawn [0/1] (default: 1)
# How long should the Beggar take to respawn in seconds?
ttt2_beggar_respawn_delay [0..60] (default: 3)
# Who should be notified the Beggar has joined a team?
ttt2_beggar_reveal_mode [0..3] (default: 0)
# 0: Never reveal the beggar has changed team
# 1: Only alert the detective or traiters the beggar has now joined their team
# 2: Alert all of the beggars new team members
# 3: Alert everyone of the beggars new team</code>";
#
# Credits
#
#The Steam URL to your addon
$steam = "https://steamcommunity.com/sharedfiles/filedetails/?id=2605752081";
#The Source URL to your addon
$source = "https://steamcommunity.com/linkfilter/?url=https://github.com/Guardian954/TTT2-CustomRolesPort";
#Creator of the Addon
$author = "Guardian954";
#Creatorlink
$authorurl = "https://steamcommunity.com/id/guardianreborn";
# Credittext (can use the above variables)
$ctext = "Custom Roles for TTT: creator of the original role.";
?>

80
roles/en/blight.php Normal file
View File

@ -0,0 +1,80 @@
<?php
#
# COLORS
#
# Text Color
$tcolor = "white";
# This is the color defined by https://materializecss.com/color.html
$color = "red darken-2";
#
# BASEINFO
#
#The Name of the Role
$name = "Blight";
#The Description of the Role, HTML conform :)
$description = "You carry with you a harsh plague.";
#
# TABS
#
#How To play
$howtoplay = 'The Blight is a simple Traitor role. When killed, the Blight "infects" their attacker, slowly damaging them until they either reach low enough health or until they heal themselves.';
#With what roles does this role play best?
$playsbestwith = "
None defined
";
#Convars
$convars = 'Normal Role Convars (also found in ULX):
<code># enable or disable this role
ttt_blight_enabled [0/1] (default: 1)
# the percentage of players that are spawned as this role
ttt_blight_pct [0.0..1.0] (default 0.15)
# the limit of players that spawn as this role each round, this overwrites the percentage
ttt_blight_max [0.0..n] (default: 1)
# the probility each round of this role being spawned at all
ttt_blight_random [0..100] (default: 33)
# the amount of players needed for this role to spawn
ttt_blight_min_players: [0..n] (default: 6)</code>
Rolespecific Convars:
<code># amount of damage should the blight "infection" deal per instance
ttt2_blt_dmg [0..n] (default: 5)
# seconds between damage instances
ttt2_blt_delay [0..n] (default: 3)
# should using a health station cure the blight
ttt2_blt_healstation_cure [0 or 1 or 2 or 3] (default: 1)
# minimum health the blight "infection" can take a player to
ttt2_blt_min [0 or 1] (default: 1)
# whether healing (of any amount/from any source) should cure blight
ttt2_blt_heal_cure [0 or 1] (default: 1)</code>';
#
# Credits
#
#The Steam URL to your addon
$steam = "https://steamcommunity.com/sharedfiles/filedetails/?id=2339734906";
#The Source URL to your addon
$source = "https://steamcommunity.com/linkfilter/?url=https://github.com/ZacharyHinds/ttt2-role-blight";
#Creator of the Addon
$author = "Wasted";
#Creatorlink
$authorurl = "https://steamcommunity.com/id/Zzzaaaccc13";
# Credittext (can use the above variables)
$ctext = "Wasted: creator of this role addon and the icon";
?>

88
roles/en/bodyguard.php Normal file
View File

@ -0,0 +1,88 @@
<?php
#
# COLORS
#
# Text Color
$tcolor = 'black';
# This is the color defined by https://materializecss.com/color.html
$color = 'orange';
#
# BASEINFO
#
#The Name of the Role
$name = 'Bodyguard';
#The Description of the Role, HTML conform :)
$description = 'By using his bare muscles, and the help of some bullets, he needs to protect the Person he got paid from.';
#
# TABS
#
#How To play
$howtoplay = 'The BodyGuard is a special case. Once he Spawns, he will get a random Player dedicated for him to protect and is also in the same Team as this Player. He will get a message which also reveals the Role of the Player he needs to protect. BUT, the BodyGuard will NOT see the other Players in the Team he is (so as Traitor he will not see other Traitors). Also the Player he needs to protect will get a message that a Player is his BodyGuard. Goal is to protect the Player you are dedicated to.
If the Player you need to protect dies, you will get some damage (or die depending on the Convar settings below) and you will also get a new Player to protect.
If you damage the Person you should protect, he will get less damage and you will get much damage back (Depending on the convar settings below). If you somehow manage to kill the Person you need to protect, you will also die (Depending on the convar settings below).
';
#With what roles does this role play best?
$playsbestwith = '
<ul>
<li>Jackal</li>
<li>Pirate</li>
<li>And probably all other Roles</li>
<ul>
';
#Convars
$convars = 'Normal Role Convars (also found in ULX):
<code># enable or disable this role
ttt_bodyguard_enabled [0/1] (default: 1)
# the percentage of players that are spawned as this role
ttt_bodyguard_pct [0.0..1.0] (default: 0.13)
# the limit of players that spawn as this role each round, this overwrites the percentage
ttt_bodyguard_max [0..n] (default: 1)
# the probability each round of this role being spawned at all
ttt_bodyguard_random [0..100] (default: 20)
# the amount of players needed for this role to spawn
ttt_bodyguard_min_players: [0..n] (default: 8)</code>
Rolespecific Convars:
<code># the damage a bodyguard will get if the person he needs to protect dies
ttt_bodygrd_damage_guarded_death [0..n] (def: 20)
# defines if the bodyguard should be killed if he manages to kill the person he needs to protect
ttt_bodygrd_kill_guard_teamkill [0/1] (def: 1)
# the multiplier of damage that gets reflected to the bodyguard if damaging the person he needs to protect
ttt_bodygrd_damage_reflect_multiplier [0..n] (def: 1.5)
# the multiplier of damage that the person will get if damaged by his bodyguard
ttt_bodygrd_damage_dealt_multiplier [0..n] (def: 0.1)</code>';
#
# Credits
#
#The Steam URL to your addon
$steam = 'https://steamcommunity.com/sharedfiles/filedetails/?id=1795539570';
#The Source URL to your addon
$source = 'https://steamcommunity.com/linkfilter/?url=https://github.com/TheNickSkater/ttt2-bodyguard';
#Creator of the Addon
$author = 'NickCloudAT';
#Creatorlink
$authorurl = 'https://steamcommunity.com/id/nickcloudat';
# Credittext (can use the above variables)
$ctext = 'Alf21: creator of TTT2
Mineotopia: designer of the WS icon and probably most TTT2 designs';
?>

80
roles/en/clairvoyant.php Normal file
View File

@ -0,0 +1,80 @@
<?php
#
# COLORS
#
# Text Color
$tcolor = 'black';
# This is the color defined by https://materializecss.com/color.html
$color = 'yellow';
#
# BASEINFO
#
#The Name of the Role
$name = 'Clairvoyant';
#The Description of the Role, HTML conform :)
$description = 'Looking at the aura of players surrounding him everything becomes clear for him. Finally someone will be able to stop all these lies.';
#
# TABS
#
#How To play
$howtoplay = "The clairvoyant is an innocent that sees special roles. This includes all special inocent and traitor roles as well as all other special roles in the round. Special roles are all roles besides the normal innocent, traitor and detective. They don't see the special role, they only see if they have one or not.
The amount of roles that the clairvoyant can see can be set with a convar.
Additionally in combination with the sidekick and the jester, they can kill the jester as the only player without receiving a penalty or triggering the jesters winstate! After their death, the jester will immedially respawn as a sidekick of the clairvoyant.";
#With what roles does this role play best?
$playsbestwith = '
<ul>
<li>Jester</li>
<li>Sidekick</li>
<li>Hitman</li>
<ul>
';
#Convars
$convars = "Normal Role Convars (also found in ULX):
<code># enable or disable this role
ttt_clairvoyant_enabled [0/1] (default: 1)
# the percentage of players that are spawned as this role
ttt_clairvoyant_pct [0.0..1.0] (default: 0.13)
# the limit of players that spawn as this role each round, this overwrites the percentage
ttt_clairvoyant_max [0..n] (default: 1)
# the probability each round of this role being spawned at all
ttt_clairvoyant_random [0..100] (default: 100)
# the amount of players needed for this role to spawn
ttt_clairvoyant_min_players: [0..n] (default: 8)</code>
Rolespecific Convars:
<code># the percentage of visible player's roles
ttt2_cv_visible [0..n] (default: 100)</code>";
#
# Credits
#
#The Steam URL to your addon
$steam = 'https://steamcommunity.com/sharedfiles/filedetails/?id=1357255271';
#The Source URL to your addon
$source = 'https://steamcommunity.com/linkfilter/?url=https://github.com/TTT-2/ttt2-role_cv';
#Creator of the Addon
$author = 'Alf21';
#Creatorlink
$authorurl = 'https://steamcommunity.com/id/alf21';
# Credittext (can use the above variables)
$ctext = 'Alf21: creator of this role addon
Mineotopia: designer of the role icon';
?>

82
roles/en/clown.php Normal file
View File

@ -0,0 +1,82 @@
<?php
#
# COLORS
#
# Text Color
$tcolor = 'black';
# This is the color defined by https://materializecss.com/color.html
$color = 'pink';
#
# BASEINFO
#
#The Name of the Role
$name = 'Clown';
#The Description of the Role, HTML conform :)
$description = "The party doesn't really start until almost everyone is dead";
#
# TABS
#
#How To play
$howtoplay = "A Clown is a Jester like role. They cannot deal damage. They can die during a round without consequence, however they appear as a normal Jester to traitors. Their goal is to survive until the end of the round when a team would've normally won, however if they survive they will transform into a killer clown and come to kill all the remaining survivors!";
#With what roles does this role play best?
$playsbestwith = '
<ul>
<li>Jester</li>
<ul>
';
#Convars
$convars = 'Normal Role Convars (also found in ULX):
<code># enable or disable this role
ttt_clown_enabled [0/1] (default: 1)
# the percentage of players that are spawned as this role
ttt_clown_pct [0.0..1.0] (default: 0.15)
# the limit of players that spawn as this role each round, this overwrites the percentage
ttt_clown_max [0..n] (default: 1)
# the probability each round of this role being spawned at all
ttt_clown_random [0..100] (default: 30)
# the amount of players needed for this role to spawn
ttt_clown_min_players: [0..n] (default: 5)</code>
Rolespecific Convars:
<code># Can the Clown damage entities or props?
ttt2_clown_entity_damage [0/1] (default: 1)
# Can the Clown explode, burn, crush, fall, drown??
ttt2_clown_environmental_damage [0/1] (default: 1)
# How much should the killer clowns damage scale by (Damage x ?) ?
ttt2_clown_damage_bonus [0..5] (default: 1)
# How many credits should the Killer Clown get on activation?
ttt2_clown_activation_credits [0..5] (default: 1)
# How much health should the Killer Clown be set to (Set to 0 to not change)?
ttt2_clown_health_on_transform [0..100] (default: 0)</code>';
#
# Credits
#
#The Steam URL to your addon
$steam = 'https://steamcommunity.com/sharedfiles/filedetails/?id=2605758514';
#The Source URL to your addon
$source = 'https://steamcommunity.com/linkfilter/?url=https://github.com/Guardian954/ttt2-role_clown_git';
#Creator of the Addon
$author = 'Guardian954';
#Creatorlink
$authorurl = 'https://steamcommunity.com/id/guardianreborn';
# Credittext (can use the above variables)
$ctext = 'Custom Roles for TTT: creator of the original role.';
?>

91
roles/en/cupid.php Normal file
View File

@ -0,0 +1,91 @@
<?php
#
# COLORS
#
# Text Color
$tcolor = 'black';
# This is the color defined by https://materializecss.com/color.html
$color = 'pink darken-1';
#
# BASEINFO
#
#The Name of the Role
$name = 'Cupid';
#The Description of the Role, HTML conform :)
$description = "Cupid is the role of love. Spread love in this Traitor infested World!";
#
# TABS
#
#How To play
$howtoplay = "<h6>Cupid:</h6>
Cupid starts the round with his crossbow. The crossbow will be invisible to other players. 'Shooting' it only makes particles on Cupids end and lets two Players fall in love. Using Cupid's crossbow after someone already died will nullify the effect without warning to prevent abuse.Other than that Cupid is a standard Innocent.
<h6>Lovers:</h6>
After falling in Love the Lovers get notified of their fate and their team and split all their damage between eachother! If a lover miraculously survives the damage split they will die of a broken heart in 5 seconds! When the lovers are in opposite Teams i.e. Innocent and Traitor they will form their own Team and win when everyone else is dead. They can also see their loved one through walls and get notified if their significant other died, before them leaving this world as themself.";
#With what roles does this role play best?
$playsbestwith = '
<ul>
<li>Serialkiller</li>
<ul>
';
#Convars
$convars = 'Normal Role Convars (also found in ULX):
<code># enable or disable this role
ttt_cup_enabled [0/1] (default: 1)
# the percentage of players that are spawned as this role
ttt_cup_pct [0.0..1.0] (default: 0.15)
# the limit of players that spawn as this role each round, this overwrites the percentage
ttt_cup_max [0..n] (default: 1)
# the probability each round of this role being spawned at all
ttt_cup_random [0..100] (default: 15)
# the amount of players needed for this role to spawn
ttt_cup_min_players: [0..n] (default: 6)</code>
Rolespecific Convars:
<code># whether or not the lovers split their damage
ttt_cupid_damage_split_enabled [0/1] (default: 1)
# whether or not the old weapon is used
ttt_cupid_old_weapon [0/1] (default: 0)
# whether or not the cupid has to be one of the Lovers
ttt_cupid_forced_selflove [0/1] (default: 0)
# whether or not lovers will always be in their own team
ttt_cupid_lovers_force_own_team [0/1] (default: 0)
# whether or not cupid will join the loved ones
ttt_cupid_joins_team_lovers [0/1] (default: 0)
# how long cupid should be able to use his crossbow
ttt_cupid_timelimit_magic [0/999] (default:60)</code>';
#
# Credits
#
#The Steam URL to your addon
$steam = 'https://steamcommunity.com/sharedfiles/filedetails/?id=2605758514';
#The Source URL to your addon
$source = 'https://steamcommunity.com/linkfilter/?url=https://github.com/Guardian954/ttt2-role_clown_git';
#Creator of the Addon
$author = 'SilverLous';
#Creatorlink
$authorurl = 'https://steamcommunity.com/id/Bidoof_is_President';
# Credittext (can use the above variables)
$ctext = 'Alf21, Mineotopia, Tobse, LeBroomer: Creators of the required addon TTT2
Translation by Tekiad and Blueberryy
Artwork by Mineotopia';
?>

110
roles/en/cursed.php Normal file
View File

@ -0,0 +1,110 @@
<?php
#
# COLORS
#
# Text Color
$tcolor = 'white';
# This is the color defined by https://materializecss.com/color.html
$color = 'deep-purple darken-1';
#
# BASEINFO
#
#The Name of the Role
$name = 'Cursed';
#The Description of the Role, HTML conform :)
$description = 'Cursed to fail. Cursed to be weak. Cursed to live forever.';
#
# TABS
#
#How To play
$howtoplay = "The Cursed has no team and cannot win. They cannot deal damage. Death is impermanent as they will always resurrect. A player who has been afflicted must work to remove their Cursed status, which can only be done by changing roles. Two methods are provided to them: They can 'tag' a different player by interacting with them, or they can shoot a different player with their RoleSwap Deagle. Both of these methods will swap roles between the two players, meaning that over time, everyones' roles will be shuffled. A former Cursed cannot be 'tagged' (and may not harm the new Cursed player) until another role swap has occurred (i.e. 'No backsies').
Think of it like a game of tag, if it makes you feel better.
Also you can press 'V' to set yourself on fire. Use this to respawn at worldspawn if you happen to die, or to set yourself on fire.
I also created two items that involve this role: <a href='https://steamcommunity.com/sharedfiles/filedetails/?id=2588987999'> Countercurse Mantra</a> and <a href='https://steamcommunity.com/sharedfiles/filedetails/?id=2588990281'>Cursed Deagle</a>.";
#With what roles does this role play best?
$playsbestwith = '
<ul>
<li>Any role</li>
<ul>
';
#Convars
$convars = "Normal Role Convars (also found in ULX):
<code># enable or disable this role
ttt_cursed_enabled [0/1] (default: 1)
# the percentage of players that are spawned as this role
ttt_cursed_pct [0.0..1.0] (default: 0.13)
# the limit of players that spawn as this role each round, this overwrites the percentage
ttt_cursed_max [0..n] (default: 1)
# the probability each round of this role being spawned at all
ttt_cursed_random [0..100] (default: 30)
# the amount of players needed for this role to spawn
ttt_cursed_min_players: [0..n] (default: 6)</code>
Rolespecific Convars:
<code># Can the Cursed swap roles with Detectives?
ttt2_cursed_affect_det [0/1] (default: 1)
# Is the Cursed immune to all forms of damage?
ttt2_cursed_damage_immunity [0/1] (default: 0)
# How many seconds must pass before the Cursed respawns (Respawning disabled if <= 0)?
ttt2_cursed_seconds_until_respawn [0..n] (default: 10)
# When the Cursed respawns, will they respawn at a randomly selected player spawn?
Note: If disabled, the Cursed will respawn where they died.
ttt2_cursed_respawn_at_mapspawn [0/1] (default: 0)
# What is the range on the Cursed's tagging ability (close range role swap via interaction)?
ttt2_cursed_tag_dist [0..n] (default: 150)
# How long must the Cursed wait before they can tag someone who tagged them (No backsies if 0)?
ttt2_cursed_backsies_timer [0..n] (default: 0)
# Can a player damage Cursed players while they have 'No backsies'?
ttt2_cursed_no_dmg_backsies [0/1] (default: 0)
# How should the Cursed's Self-Immolate ability work?
ttt2_cursed_self_immolate_mode [0..2] (default: 2)
# 0: Cursed cannot self-immolate
# 1: Cursed can only set their corpse on fire
# 2: Cursed can self-immolate when alive or dead
# This multiplier applies directly to the Cursed's speed (ex. 2.0 means they move twice as fast).
ttt2_cursed_speed_multi [0.0..n.m] (default: 1.2)
# This multiplier applies directly to the Cursed's stamina regen (ex. 2.0 means the sprint bar fills up twice the normal speed).
ttt2_cursed_stamina_regen [0.0..n.m] (default: 1.0)
# This multiplier applies directly to how fast the Cursed's stamina bar depletes (ex. 0.5 means the sprint bar decays at half the normal speed).
ttt2_cursed_stamina_drain [0.0..n.m] (default: 0.35)
# Should the Cursed spawn with a RoleSwap deagle, for long-range swapping?
ttt2_role_swap_deagle_enable [0/1] (default: 1)
# How long does it take for the RoleSwap deagle to refill its ammo (Won't refill if <= 0)?
ttt2_role_swap_deagle_refill_time [0..n] (default: 30)</code>";
#
# Credits
#
#The Steam URL to your addon
$steam = 'https://steamcommunity.com/workshop/filedetails/?id=2535321538';
#The Source URL to your addon
$source = 'https://steamcommunity.com/linkfilter/?url=https://github.com/AaronMcKenney/ttt2-role_curs';
#Creator of the Addon
$author = 'blackmagicfine';
#Creatorlink
$authorurl = 'https://steamcommunity.com/profiles/76561198025772353';
# Credittext (can use the above variables)
$ctext = 'BlackMagicFine: creator of this role addon
Smuggles: designer of the role icon
Wasted: designer of the role thumbnail';
?>

View File

@ -0,0 +1,115 @@
<?php
#
# COLORS
#
# Text Color
$tcolor = 'white';
# This is the color defined by https://materializecss.com/color.html
$color = 'pink darken-4';
#
# BASEINFO
#
#The Name of the Role
$name = 'Cyclone & Hurricane';
#The Description of the Role, HTML conform :)
$description = 'Havoc brings destruction. But it also brings hope & a new beginning. Hurricane creates a path to new hope as Cyclone tears it all down again.';
#
# TABS
#
#How To play
$howtoplay = "These roles have been inspired by the card game 'The Werewolves of Millers Hollow' (ger.: Die Werwölfe von Düsterwald). They are based on the raven.
The Cyclone plays with the Traitor team, during the Hurricane plays as a policing role in the team of the Innocents. Both play almost the same, so you can play with only one of them without any problems, but the roleplay is most interesting when both roles are active.
The Cyclone is a normal traitor - besides their special ability, the Hurricane, however, has a special rule to be played with:
The Hurricane starts with no credits and they won't be able to get credits throughout the game. But they do see the range of the traitor shop, so if you play with random shop, Hurricane will know which items are currently available in the traitor's shop.
Lastly, both Cyclone and Hurricane have a common feature: They can mark a player as 'suspicious'. If they do so, the player will be shown to everyone and they can reach only a specific amount of HP throughout the round. (It works like the threatening letter of the raven from 'Werewolves')
To mark someone, they do not have an extra weapon in the process, like other roles. Instead, the first bullet or grenade they hit a player with marks that player. This bullet or grenade does not wound the player, but only marks him. Their name is then shown on a HUD element, so everyone will know everytime that the player is suspicious and their HP will be reduced.
But beware: Cyclone and Hurricane share the same HUD element and only the last marked player will stay marked, so both can manipulate each other.
Note: Some features explained here, might differ, if they are configured differently by means of the convars. Other setting can be changed in the role settings in the F1 menu.";
#With what roles does this role play best?
$playsbestwith = '
<ul>
<li>Impostor</li>
<li>Vigilante</li>
<li>Marker</li>
<ul>
';
#Convars
$convars = "Normal Role Convars (also found in ULX):
<code># enable or disable this role
ttt_cyclone_enabled [0/1] (default: 1)
ttt_hurricane_enabled [0/1] (default: 1)
# the percentage of players that are spawned as this role
ttt_cyclone_pct [0.0..1.0] (default: 0.15)
ttt_hurricane_pct [0.0..1.0] (default: 0.15)
# the limit of players that spawn as this role each round, this overwrites the percentage
ttt_cyclone_max [0..n] (default: 1)
ttt_hurricane_max [0..n] (default: 1)
# the probability each round of this role being spawned at all
ttt_cyclone_random [0..100] (default: 33)
ttt_hurricane_random [0..100] (default: 33)
# the amount of players needed for this role to spawn
ttt_cyclone_min_players: [0..n] (default: 7)
ttt_hurricane_min_players: [0..n] (default: 7)</code>
Rolespecific Convars:
<code># Does the Cyclone/Hurricane lose their weapon, they marked a player with?
ttt_cyclone_always_strip_weapons [0/1] (default: 1)
ttt_hurricane_always_strip_weapons [0/1] (default: 1)
# What is the maximum HP the marked player can reach while being marked?
ttt_cyclone_set_max_health [0.. 100] (default: 50)
ttt_hurricane_set_max_health [0.. 100] (default: 50)
# How many HP does the marked player get when they are marked?
ttt_cyclone_set_cur_health [0.. 100] (default: 50)
ttt_hurricane_set_cur_health [0.. 100] (default: 50)
# Should a pop up with info about the marked player be displayed when the player is marked?
ttt_cyclone_print_anounce_popup [0/1] (default: 1)
ttt_hurricane_print_anounce_popup [0/1] (default: 1)
# Mute the marked player's voice Chat as long as they are marked?
ttt_cyclone_mute_marked_ply [0/1] (default: 1)
ttt_hurricane_mute_marked_ply [0/1] (default: 1)
# Disable the marked player's team chat (if there is one) as long as they are marked?
ttt_cyclone_disable_tchat [0/1] (default: 1)
ttt_hurricane_disable_tchat [0/1] (default: 1)
# Disable the marked player's general chat as long as they are marked?
ttt_cyclone_disable_gchat [0/1] (default: 1)
ttt_hurricane_disable_gchat [0/1] (default: 1)</code>";
#
# Credits
#
#The Steam URL to your addon
$steam = 'https://steamcommunity.com/sharedfiles/filedetails/?id=2649192326';
#The Source URL to your addon
$source = 'https://steamcommunity.com/linkfilter/?url=https://github.com/Pythagorion/ttt2-role_cyc_and_hurr';
#Creator of the Addon
$author = 'aPythagorion';
#Creatorlink
$authorurl = 'https://steamcommunity.com/id/bypythagyros';
# Credittext (can use the above variables)
$ctext = 'Pythagorion: creator of this role addon
Mineotopia: designer of the role icon and co-coder';
?>

108
roles/en/defective.php Normal file
View File

@ -0,0 +1,108 @@
<?php
#
# COLORS
#
# Text Color
$tcolor = 'white';
# This is the color defined by https://materializecss.com/color.html
$color = 'deep-purple darken-1';
#
# BASEINFO
#
#The Name of the Role
$name = 'Defective';
#The Description of the Role, HTML conform :)
$description = 'It cost us significant capital, but we finally did it. We turned a detective into a no good rotten traitor.';
#
# TABS
#
#How To play
$howtoplay = "Visually and functionally, the defective operates similarly to a regular detective. They use the detective's shop, have a DNA scanner, and look like a detective to those not on their team. However, they are a traitor: They take up a traitor's spot and a traitor test will reveal them as such.";
#With what roles does this role play best?
$playsbestwith = '
<ul>
<li>Spy</li>
<li>Mesmerist</li>
<li>Bodyguard</li>
<li>2+ Detectives</li>
<ul>
';
#Convars
$convars = "Normal Role Convars (also found in ULX):
<code># enable or disable this role
ttt_defective_enabled [0/1] (default: 1)
# the percentage of players that are spawned as this role
ttt_defective_pct [0.0..1.0] (default: 0.13)
# the limit of players that spawn as this role each round, this overwrites the percentage
ttt_defective_max [0..n] (default: 1)
# the probability each round of this role being spawned at all
ttt_defective_random [0..100] (default: 30)
# the amount of players needed for this role to spawn
ttt_defective_min_players: [0..n] (default: 10)</code>
Rolespecific Convars:
<code># Send a popup message if there's a defective and detective at the start of the round?
ttt2_defective_inform_everyone [0/1] (default: 1)
# Prevent the detective from purchasing items that aren't in the defective's shop?
# You can create your own custom shop for the defective via the 'shopeditor' command.
# You can use this as a way to prevent the detective from purchasing a portable tester, golden deagle, etc. when a defective is active.
# Do not enable if ttt2_random_team_shops is enabled (may prevent dets from purchasing most things at random).
ttt2_defective_shop_order_prevention [0/1] (default: 0)
# Prevent all defectives and detectives from harming one another (unless all other members on their teams are dead)?
ttt2_defective_detective_immunity [0/1] (default: 1)
# Can the defective see their fellow team mates (e.g. traitors, bodyguards, etc.)?
ttt2_defective_can_see_traitors [0/1] (default: 1)
# Are traitors informed about who the defective is?
ttt2_defective_can_be_seen_by_traitors [0/1] (default: 1)
# Can the defective see their fellow defectives?
ttt2_defective_can_see_defectives [0/1] (default: 1)
# When should def's true role be revealed?
ttt2_defective_corpse_reveal_mode [0..3] (default: 0)
# 0: Search never reveals def's role
# 1: Search reveals def's role when all dets and defs are dead
# 2: Search reveals def's role when all defs are dead
# 3: Search reveals def's role
# How should special detectives (ex. Sheriff, Vigilante, Sniffer) be handled when the defective is in play?
ttt2_defective_special_det_handling_mode [0..2] (default: 1)
# 0: Do not alter special dets
# 1: Force all special dets to be normal dets
# 2: Force all special dets to be normal dets, but give them back their roles if: all defs are dead, defs can be revealed, and the former special det didn't undergo a role change (ex. did not become infected)
# If there are no detectives at the beginning of the round, should any player with this role be forced into a generic Traitor role?
ttt2_defective_disable_spawn_if_no_detective [0/1] (default: 1)
# The chance that at the beginning of the round a detective will be 'demoted' into an innocent for every defective.
Note: ttt2_defective_inform_everyone won't activate if all detectives have been demoted.
Note: ttt2_defective_disable_spawn_if_no_detective takes priority over this ConVar.
ttt2_defective_demote_detective_pct [0.0..n.m] (default: 0.0)</code>";
#
# Credits
#
#The Steam URL to your addon
$steam = 'https://steamcommunity.com/sharedfiles/filedetails/?id=2251440528';
#The Source URL to your addon
$source = 'https://steamcommunity.com/linkfilter/?url=https://github.com/AaronMcKenney/ttt2-role_def';
#Creator of the Addon
$author = 'blackmagicfine';
#Creatorlink
$authorurl = 'https://steamcommunity.com/profiles/76561198025772353';
# Credittext (can use the above variables)
$ctext = 'Pythagorion: creator of this role addon
Mineotopia: designer of the role icon and co-coder';
?>

66
roles/en/template.php Normal file
View File

@ -0,0 +1,66 @@
<?php
#
# COLORS
#
# Text Color
$tcolor = '';
# This is the color defined by https://materializecss.com/color.html
$color = '';
#
# BASEINFO
#
#The Name of the Role
$name = '';
#The Description of the Role, HTML conform :)
$description = '';
#
# TABS
#
#How To play
$howtoplay = '';
#With what roles does this role play best?
$playsbestwith = '
<ul>
<li></li>
<li></li>
<li></li>
<ul>
';
#Convars
$convars = 'Normal Role Convars (also found in ULX):
<code></code>
Rolespecific Convars:
<code></code>';
#
# Credits
#
#The Steam URL to your addon
$steam = '';
#The Source URL to your addon
$source = '';
#Creator of the Addon
$author = '';
#Creatorlink
$authorurl = '';
# Credittext (can use the above variables)
$ctext = '';
?>