diff --git a/css/styles.css b/css/styles.css index b1fcd42..c66921a 100644 --- a/css/styles.css +++ b/css/styles.css @@ -11,6 +11,17 @@ html { .blurry { 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 { color: #fff; background-color: #aaa; diff --git a/index.php b/index.php index 86e932a..2df6047 100644 --- a/index.php +++ b/index.php @@ -58,12 +58,16 @@ foreach ($files as $filename) { include $filename; + $shortname = substr($filename, 9); + $shortname = substr($shortname, 0, -4); +/* if ($count%2 == 1) { echo "
'.$convars.'
+ '.$howtoplay.'
'.$convars.'
# enable or disable this role
ttt_accom_enabled [0/1] (default: 1)
# the percentage of players that are spawned as this role
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
ttt_accom_random [0..100] (default: 50)
# 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)
";
#
# Credits
@@ -65,5 +66,6 @@ $author = "JustSiro105";
$authorurl = "https://steamcommunity.com/profiles/76561198327487098";
# Credittext (can use the above variables)
-$ctext = " Westoon[JPN]: creator of this role addon # 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)
+
+Rolespecific Convars:
+# 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)
";
+
+
+
+#
+# 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.";
+
+?>
diff --git a/roles/en/arsonist.php b/roles/en/arsonist.php
new file mode 100644
index 0000000..6d0bfd4
--- /dev/null
+++ b/roles/en/arsonist.php
@@ -0,0 +1,75 @@
+
+# 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)
";
+
+
+
+#
+# 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.";
+
+?>
diff --git a/roles/en/banker.php b/roles/en/banker.php
new file mode 100644
index 0000000..6d99e91
--- /dev/null
+++ b/roles/en/banker.php
@@ -0,0 +1,108 @@
+
+# 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)
+
+Rolespecific Convars:
+# 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)
";
+
+
+
+#
+# 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";
+
+?>
diff --git a/roles/en/beacon.php b/roles/en/beacon.php
new file mode 100644
index 0000000..49ad6d5
--- /dev/null
+++ b/roles/en/beacon.php
@@ -0,0 +1,123 @@
+
+# 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)
+
+Rolespecific Convars:
+# 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)
";
+
+
+
+#
+# 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";
+
+?>
diff --git a/roles/en/beggar.php b/roles/en/beggar.php
new file mode 100644
index 0000000..b67d47a
--- /dev/null
+++ b/roles/en/beggar.php
@@ -0,0 +1,95 @@
+ 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 = "
+# 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)
+
+Rolespecific Convars:
+# 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
";
+
+
+
+#
+# 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.";
+
+?>
diff --git a/roles/en/blight.php b/roles/en/blight.php
new file mode 100644
index 0000000..91153f4
--- /dev/null
+++ b/roles/en/blight.php
@@ -0,0 +1,80 @@
+# 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)
+
+Rolespecific Convars:
+# 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)
';
+
+
+
+#
+# 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";
+
+?>
diff --git a/roles/en/bodyguard.php b/roles/en/bodyguard.php
new file mode 100644
index 0000000..be9b0e4
--- /dev/null
+++ b/roles/en/bodyguard.php
@@ -0,0 +1,88 @@
+
+# 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)
+
+Rolespecific Convars:
+# 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)
';
+
+
+
+#
+# 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';
+
+?>
diff --git a/roles/en/clairvoyant.php b/roles/en/clairvoyant.php
new file mode 100644
index 0000000..dbd4c2e
--- /dev/null
+++ b/roles/en/clairvoyant.php
@@ -0,0 +1,66 @@
+
+
+
+
+
+
+Rolespecific Convars:
+
';
+
+
+
+#
+# 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 = '';
+
+?>
diff --git a/roles/en/template.php b/roles/en/template.php
new file mode 100644
index 0000000..7351b14
--- /dev/null
+++ b/roles/en/template.php
@@ -0,0 +1,66 @@
+
+
+
+
+
+
+Rolespecific Convars:
+
';
+
+
+
+#
+# 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 = '';
+
+?>