added a small noise effect

This commit is contained in:
Jesse James Isler 2022-03-30 00:26:53 +02:00
parent 8325cf1da8
commit 1c6cbdde89
6 changed files with 389 additions and 4 deletions

View File

@ -26,7 +26,9 @@ body::-webkit-scrollbar-thumb {
.card {
opacity: 0.9;
}
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXWBgYGHh4d5eXlzc3OLi4ubm5uVlZWPj4+NjY19fX2JiYl/f39ra2uRkZGZmZlpaWmXl5dvb29xcXGTk5NnZ2c8TV1mAAAAG3RSTlNAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAvEOwtAAAFVklEQVR4XpWWB67c2BUFb3g557T/hRo9/WUMZHlgr4Bg8Z4qQgQJlHI4A8SzFVrapvmTF9O7dmYRFZ60YiBhJRCgh1FYhiLAmdvX0CzTOpNE77ME0Zty/nWWzchDtiqrmQDeuv3powQ5ta2eN0FY0InkqDD73lT9c9lEzwUNqgFHs9VQce3TVClFCQrSTfOiYkVJQBmpbq2L6iZavPnAPcoU0dSw0SUTqz/GtrGuXfbyyBniKykOWQWGqwwMA7QiYAxi+IlPdqo+hYHnUt5ZPfnsHJyNiDtnpJyayNBkF6cWoYGAMY92U2hXHF/C1M8uP/ZtYdiuj26UdAdQQSXQErwSOMzt/XWRWAz5GuSBIkwG1H3FabJ2OsUOUhGC6tK4EMtJO0ttC6IBD3kM0ve0tJwMdSfjZo+EEISaeTr9P3wYrGjXqyC1krcKdhMpxEnt5JetoulscpyzhXN5FRpuPHvbeQaKxFAEB6EN+cYN6xD7RYGpXpNndMmZgM5Dcs3YSNFDHUo2LGfZuukSWyUYirJAdYbF3MfqEKmjM+I2EfhA94iG3L7uKrR+GdWD73ydlIB+6hgref1QTlmgmbM3/LeX5GI1Ux1RWpgxpLuZ2+I+IjzZ8wqE4nilvQdkUdfhzI5QDWy+kw5Wgg2pGpeEVeCCA7b85BO3F9DzxB3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G0EnOS0arEYgXqYnXcYHwjTtUNAcMelOd4xpkoqiTYICWFq0JSiPfPDQdnt+4/wuqcXY47QILbgAAAABJRU5ErkJggg==") repeat center center;
}
.blurry {
backdrop-filter: blur(7px) !important;
}

View File

@ -80,7 +80,7 @@
<li>
<a class="sidenav-close waves-effect '.$tcolor.'-text" href="#'.$shortname.'">
<span class="card-title">'.$name.'</span>
</a>
</a>
</li>
</div>
</div>
@ -150,7 +150,7 @@
<ul class="collapsible black-text white">
<li class="active">
<div class="collapsible-header"><i class="material-icons">help_outline</i>How to Play</div>
<div class="collapsible-body"><span>'.$howtoplay.'</span></div>
<div class="collapsible-body"><pre>'.$howtoplay.'</pre></div>
</li>
<li>
<div class="collapsible-header"><i class="material-icons">check</i>Plays best with</div>
@ -158,7 +158,7 @@
</li>
<li>
<div class="collapsible-header"><i class="material-icons">code</i>Convars</div>
<div class="collapsible-body"><span><pre>'.$convars.'</pre></span></div>
<div class="collapsible-body"><pre>'.$convars.'</pre></div>
</li>
<li>
<div class="collapsible-header"><i class="material-icons">whatshot</i>Credits</div>

80
roles/en/executioner.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 lighten-1';
#
# BASEINFO
#
#The Name of the Role
$name = 'Executioner';
#The Description of the Role, HTML conform :)
$description = "There are people who deserve to die, as you'll be the one to do it.";
#
# TABS
#
#How To play
$howtoplay = "The Executioner is on the traitor team. They have a target, similar to the Hitman role. They deal extra damage to their target while dealing less damage to non-targets. If they kill a non-target, they won't get a new target for an amount of time that can be configured.";
#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_executioner_enabled [0/1] (default: 1)
# the percentage of players that are spawned as this role
ttt_executioner_pct [0.0..1.0] (default 0.15)
# the limit of players that spawn as this role each round, this overwrites the percentage
ttt_executioner_max [0.0..n] (default: 1)
# the probility each round of this role being spawned at all
ttt_executioner_random [0..100] (default: 33)
# the amount of players needed for this role to spawn
ttt_executioner_min_players: [0..n] (default: 6)</code>
Rolespecific Convars:
<code># the length of time before the executioner waits for a new target after killing a non-target
ttt2_executioner_punishment_time [0..n] (default 60)
# the multiplier applied to damage the executioner deals to their target
ttt2_executioner_target_multiplier [1..n] (default 2)
# the multiplier applied to damage the executioner deals to non targets
ttt2_executioner_non_target_multiplier [0.0..1.0] (default 0.5)</code>';
#
# Credits
#
#The Steam URL to your addon
$steam = 'https://steamcommunity.com/sharedfiles/filedetails/?id=2133752484';
#The Source URL to your addon
$source = 'https://steamcommunity.com/linkfilter/?url=https://github.com/ZacharyHinds/ttt2-role-executioner';
#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
Tim | Mineotopia: creator of the role icon
Alf21: creator of the hitman role upon which I based my target code';
?>

124
roles/en/glutton.php Normal file
View File

@ -0,0 +1,124 @@
<?php
#
# COLORS
#
# Text Color
$tcolor = 'black';
# This is the color defined by https://materializecss.com/color.html
$color = 'amber darken-3';
#
# BASEINFO
#
#The Name of the Role
$name = 'Glutton';
#The Description of the Role, HTML conform :)
$description = "You are so very hungry, you must consume the flesh of your enemies! If you don't, there's no telling the monster that will be unleashed!";
#
# TABS
#
#How To play
$howtoplay = "The Glutton is a Traitor role whose hunger acts as their weapon. They have an ever decreasing hunger bar which slowly grants them buffs to their special weapon: Devour. Devour's primary attack is a bite which deals increasing damage based on hunger and its secondary attack allows the Glutton to eat player corpses (at increasing speeds the hungrier they are). Additionally, while holding Devour, the Glutton's movement speed and sprint regeneration increase based on how low their hunger is.
When the Glutton deals damage or eats a corpse with Devour, they regain health and they refill a portion of their hunger bar, always staving off starving! If the Glutton's hunger drops to zero, they will soon turn into the Ravenous!
The Ravenous is no longer on the Traitors' team and must kill everyone else to win! They also lose all their weapons save for their Devour and cannot pick up new weapons. Additionally, they emit a trail of blood-red smoke..";
#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_glutton_enabled [0/1] (default: 1)
# the percentage of players that are spawned as this role
ttt_glutton_pct [0.0..1.0] (default 0.15)
# the limit of players that spawn as this role each round, this overwrites the percentage
ttt_glutton_max [0.0..n] (default: 1)
# the probility each round of this role being spawned at all
ttt_glutton_random [0..100] (default: 33)
# the amount of players needed for this role to spawn
ttt_glutton_min_players: [0..n] (default: 6)</code>
Glutton Convars:
<code># the rate at which Devour's eat ability spawns blood
ttt2_eat_bleed_amount [0.00..n.nn] (default: 0.05)
# whether or not to emit the blood smoke trail
ttt2_glut_do_blood_smoke [0 or 1] (default: 1)
# whether or not the glutton turns into Ravenous when they start starving
ttt2_glut_turn_rav [0 or 1] (default: 1)
# how many seconds it takes for the glutton to completely starve (empty their hunger)
ttt2_glut_hunger [0..n] (default: 120)
# the maximum health the glutton/ravenous can reach
ttt2_glut_rav_max_health [0..n] (default: 250)
# what fraction of the damage dealt should devour heal
ttt2_glut_devour_dmg_heal [0.0..n.n] (default 0.2)
# what fraction of hunger should devour fill
ttt2_glut_devour_dmg_hunger [0.0..n.n] (default: 0.1)
# minimum damage devour deals (damage at max hunger)
ttt2_glut_devour_dmg_base [0..n] (default: 20)
# maximum damage devour deals (damage at starving/Ravenous)
ttt2_glut_devour_dmg_max [0..n] (default: 100)
# health gained from a kill with devour
ttt2_glut_devour_kill_bonus [0..n] (default: 10)
# fraction of hunger filled by devour kill
ttt2_glut_devour_kill_feed [0.0..n.n] (default: 0.20)
# minimum time it takes to eat body (time at starving/Ravenous)
ttt2_glut_eat_time_base [0.0..n.n] (default: 0.50)
# maximum time it takes to eat body (time at full hunger)
ttt2_glut_eat_time_max [0.0..n.n] (default: 5.00)
# health gain from eating body
ttt2_glut_eat_health [0..n] (default: 50)
# fractional hunger gain from eating body
ttt2_glut_eat_hunger [0.0..n.n] (default: 0.33)
# minimum movement speed multiplier when holding Devour (speed at Full Hunger)
ttt2_glut_speed_base [0.0..n.n] (default: 1.0)
# maximum movement speed multiplier when holding Devour (speed at starving/Ravenous)
ttt2_glut_speed_max [0.0..n.n] (default: 2.0)
# minimum sprint regen multiplier when holding Devour (regen at Full Hunger)
ttt2_glut_stamina_base [0.0..n.n] (default: 1.0)
# maximum sprint regen multiplier when holding Devour (regen at starving/Ravenous)
ttt2_glut_stamina_max [0.0..n.n] (default: 2.0)
# Delay after hitting zero hunger before begin starving/transforming into Ravenous
ttt2_glut_rav_grace_time [0..n] (default: 5)</code>
Ravenous Convars (also found in F1 Menu):
<code># how much damage the Ravenous takes per 5 seconds
ttt2_rav_hurt [0..n] (def. 5)
# how often the ravenous' radar scans
ttt2_rav_radar_time [0..n] (def. 15)
# who gets alerted when Glutton becomes Ravenous (0 - only transforming player, 1 - everyone, 2 - traitors)
ttt2_rav_alert [0,1,2] (def. 1)</code>";
#
# Credits
#
#The Steam URL to your addon
$steam = 'https://steamcommunity.com/sharedfiles/filedetails/?id=2465037140';
#The Source URL to your addon
$source = 'https://steamcommunity.com/linkfilter/?url=https://github.com/ZacharyHinds/ttt2-role-drk';
#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
YAROK: creator of icons';
?>

87
roles/en/haunted.php Normal file
View File

@ -0,0 +1,87 @@
<?php
#
# COLORS
#
# Text Color
$tcolor = 'black';
# This is the color defined by https://materializecss.com/color.html
$color = 'deep-orange lighten-4';
#
# BASEINFO
#
#The Name of the Role
$name = 'Haunted';
#The Description of the Role, HTML conform :)
$description = "The first rule of being a Traitor is to not get caught. The second rule is to kill your witnesses as soon as possible, because no one gets the first rule right. The third rule is to have a good back-up plan, because everyone makes mistakes and leaves bloody messes. The fourth and most important rule is to carefully read over every single word on your contract with the Devil, because no traitor worth their salt comes up with a good back-up plan.";
#
# TABS
#
#How To play
$howtoplay = 'The Haunted is a traitor role. If they are killed, they will haunt their killer. Their killer will leave a trail of smoke, and if they are killed The Haunted shall come back to life. As this ability is quite powerful, the Haunted does not have access to a shop by default.';
#With what roles does this role play best?
$playsbestwith = '
<ul>
<li>Other traitor roles</li>
<ul>
';
#Convars
$convars = "Normal Role Convars (also found in ULX):
<code># enable or disable this role
ttt_haunted_enabled [0/1] (default: 1)
# the percentage of players that are spawned as this role
ttt_haunted_pct [0.0..1.0] (default: 0.15)
# the limit of players that spawn as this role each round, this overwrites the percentage
ttt_haunted_max [0..n] (default: 1)
# the probability each round of this role being spawned at all
ttt_haunted_random [0..100] (default: 30)
# the amount of players needed for this role to spawn
ttt_haunted_min_players: [0..n] (default: 6)</code>
Rolespecific Convars:
<code># Who should see announcements about hauntings?
ttt2_haunted_declare_mode [0..2] (default: 2)
# 0: Don't declare the Haunted's status.
# 1: Declare the Haunted's status to every player.
# 2: Declare the Haunted's status to only traitors
# How much health should the Haunted revive with?
ttt2_haunted_revive_health [0..n] (default: 50)
# Should players leave a trail of smoke if they are currently being haunted?
ttt2_haunted_smoke_mode [0/1] (default: 1)
# Should the Haunted respawn at worldspawn or their body?
ttt2_haunted_worldspawn [0/1] (default: 0)</code>";
#
# Credits
#
#The Steam URL to your addon
$steam = 'https://steamcommunity.com/sharedfiles/filedetails/?id=2654304108';
#The Source URL to your addon
$source = 'https://steamcommunity.com/linkfilter/?url=https://github.com/AaronMcKenney/ttt2-role_haunt';
#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
Mineotopia: designer of the role thumbnail
KindPNG Haunted House Symbol[www.kindpng.com]: role icon created by modifying this image
Wasted: designer of the Spectre, which this role reuses a lot of code from
Haxray: came up with the idea for the Haunted';
?>

92
roles/en/hidden.php Normal file
View File

@ -0,0 +1,92 @@
<?php
#
# COLORS
#
# Text Color
$tcolor = 'white';
# This is the color defined by https://materializecss.com/color.html
$color = 'grey darken-4';
#
# BASEINFO
#
#The Name of the Role
$name = 'Hidden';
#The Description of the Role, HTML conform :)
$description = 'A terrifying threat stalks the shadows';
#
# TABS
#
#How To play
$howtoplay = "The Hidden is a neutral killer role. The Hidden must activate their powers to start killing, they do this by pressing reload (default 'R').
After activating their powers, they become invisible, lose the ability to use guns, gain the Climber item, gain bonus HP, and gain a speed boost. Their vision changes and they gain wall hacks when standing still. Finally, it is announced to everyone that they are the Hidden.
Their knife works like the Traitor weapon, dealing melee damage and is capable of being thrown. If the Hidden doesn't pick up their knife, it returns to them after a short delay.
Their stun grenade causes those in its Area of Effect to have an intense motion blur effect for a short duration. It will restock after a delay.
After the Hidden takes enough damage, they become partially visible, return to complete invisibility after a delay.
If the Hidden is killed, their death is announced to everyone.";
#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># enable or disable this role
ttt_hidden_enabled [0/1] (default: 1)
# the percentage of players that are spawned as this role
ttt_hidden_pct [0.0..1.0] (default 0.15)
# the limit of players that spawn as this role each round, this overwrites the percentage
ttt_hidden_max [0.0..n] (default: 1)
# the probility each round of this role being spawned at all
ttt_hidden_random [0..100] (default: 33)
# the amount of players needed for this role to spawn
ttt_hidden_min_players: [0..n] (default: 6)</code>
Rolespecific Convars:
<code># the delay before the hidden's knife returns after being thrown
ttt2_hdn_knife_delay (default: 15)
# the delay before the hidden's grenade restocks
ttt2_hdn_nade_delay (default: 30)
# the duration of the hidden's stun grenade's effect
ttt2_hdn_stun_duration (default: 5)</code>";
#
# Credits
#
#The Steam URL to your addon
$steam = '';
#The Source URL to your addon
$source = '';
#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
The Hidden Source[www.hidden-source.com]: Inspiration for role
fortune: creator of the port of The Hidden gamemode for Garry's Mod whose vision effect I used for this role.";
?>