/ttt2-role_hanfei

This is the "Hanfei" role for TTT2.

Primary LanguageLuaGNU General Public License v3.0GPL-3.0

Steam WorkShop

https://steamcommunity.com/sharedfiles/filedetails/?id=2862440433

Hanfei - A new Role for TTT2

You are a powerful the Middle East Bandit.Hunt to your heart's content.

The Middle East Bandit is a traitor without a shop,but he carries an AK , C4 and has high HP and armor.If the Middle East Bandit is killed, it will cause a certain range of self explosion damage.

Convars

Besides the normal role convars found in ULX, there are these special convars:

# enable or disable this role
  ttt_hanfei_enabled [0/1] (default: 1)
# the percentage of players that are spawned as this role
  ttt_hanfei_pct [0.0..1.0] (default: 0.15)
# the limit of players that spawn as this role each round, this overwrites the percentage
  ttt_hanfei_max [0..n] (default: 1)
# the probability each round of this role being spawned at all
  ttt_hanfei_random [0..100] (default: 30)
# the amount of players needed for this role to spawn
  ttt_hanfei_min_players: [0..n] (default: 7)

Rolespecific Convars

# Initial HP setting of the Middle East Bandit
  ttt2_hanfei_hp [100..200] (default: 150)
# Give the Middle East Bandit armor settings
  ttt2_hanfei_armor [0..150] (default: 50)
# Automatic expose time setting of the Middle East Bandit
  ttt2_hanfei_exposetime [0..600] (default: 60 seconds)
# What type of tracking item should start with? 0:none 1:a radar 2:a tracker
  ttt2_hanfei_tracker_mode [0..2] (default: 0)