89 lines
3.1 KiB
PHP
89 lines
3.1 KiB
PHP
<?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';
|
|
|
|
?>
|