TFM Client
The Fighting Mongo's (c) 2005
www.tfm-ppl.com  /  www.et-spot.de

by jumo
   jumo@tfm-ppl.com

special thx to:
  DanShiru     for testing
  Minifutzi    for testing
  J. HESS      for testing and giving me some ideas & sounds
  donCottone   for the wicked sick and real potter sounds
--------------------------------------------------------------------------------
this modification of the et client was designed to provide hitsounds for the
shrubet mod. well, now it also provides multikill sounds for the etadmin mod and
some other stuff ;)
wanna check out the mod? play on our server 217.79.190.126:27960


IMPORTANT !!
etadmin mod support (multikill, killing spree sounds) is only enabled in the
versions ending with "s". e.g. v0.2.2s or if its explicitly written on my
homepage.



Changes
--------------------------------------------------------------------------------
v0.1.0	- added hitsounds
v0.1.1	- fixed: changes to t_hitSounds has no effect before next map load
	- fixed stock et code. get forced into spec if heavy/light weapon skill4
v0.2.0	- fixed stock et code. connecting players were showed as spectator in
	  scoreboard. doesn't work correct with connection interrupted players.
	- optimized some of my code. mostly cosmetic.
	- added speedometer.
	- added sign for disguised covert ops in scoreboard and over head. so
	  the team will see which teammates are disguised without having to aim
	  exactly on them.
v0.2.1	- fixed: downloading players in spec where not shown as connecting
	- added multi-/monsterkill sounds for etadmin mod
v0.2.2	- changed et stock code: if cg_noVoiceChats = 1 still draw the icon
	  above the head
	- fixed bug in speedometer
	- added banner message ;)
	- added killing spree sounds for etadmin mod. requested by j.hess
	- added first blood sound for etadmin mod
v0.2.3	- improved parsing function for etadmin sounds. colors and positions
	  dont matter anymore. also the string match is much shorter
	- fixed: friend shader over covert ops was visible through walls
	- added death spree sound for etadmin mod. thx to j.hess for the sound
v0.3.0	- increased banner delay, showed up too often
	- fixed: monsterkill sound was played twice. its now only parsed in cp
	- added graphical speedometer, looks like the lagometer
	- changed et stock code: specs can now open the quick message menu. team
	  commands are still blocked but we dont have to join a team to say hi
	- fixed et stock code: long chat msgs were printed outside the chat box
	- added 4 alternate huds
	- completely redone the hitsound code. but there are still some issues.
	  there is now a headshot sound, but no hitsounds for arty, airstrikes
	  and rifle nades anymore. also you will only hear a hitsound for nades
	  if you hold one when it explodes. cant change this w/o changing shrub
	- fixed: played enemy hitsound on disguised covert ops
	  (only for bullet based weapons)
	- fixed: hitsound was played when hitting a breakable object like a
	  window (only for bullet based weapons)
	- added low hp warning. if hp goes under a specified limit a sound is
	  played and/or a text is displayed in the center of the screen.
	  also if you`re not a medic it automaticly calls for one
	- added wave files for "wicked sick" and "real potter" sprees.
	  thx to donCottone for the sounds
	- added colored skulls for the deathmessages, like in etpro
	  suicides = yellow; team kills = red; enemy kills = white
	- added team/class/spawnpoint quick menu and custommenu1 & custommenu2
	  to create your own menus
	- the killing spree messages are now compared case-insensitive
	- added team flags in front of chat messages like in etpro
	- changed cvar prefix from b_ to t_ so we wont conflict with etpro
	- added an alternate lagometer, etpro style
	- added cvar for fireteam alpha transparency
	- added console command to find the fireteam of a player
	  /findft <pid/partofname>
	- added a clock that displays the local time
	- added a config menu for the mod
	- added: connection interrupted icon over player heads like in etpro.
	  unfortunately the server only updates the ping of the players if the
	  the scoreboard is opened. therefore you will only see the icon if you
	  brought up the scoreboard while the player had an interrupted
	  connection. i could workaround this but that would cause more network
	  traffic so im gonna leave it as it is
	- added a fireteam invitations block
	- added an indicator (*) to the fireteam overlay in front of the health
	  if a player is revivable
	- removed the cvars for the wave files. were kinda useless anyway.
v0.3.1	- fixed: removed my dead button from intermission screen
	- fixed: low hp warning raised even when spectating players
	- fixed: low hp warning raised twice in some situations
	- fixed: auto medic call was global, now its team chat
	- added: death spree setting was missing in the menu
v0.3.2	- fixed: forgot to reset the color for the popup msg after a skull icon
	- fixed shrubet bug: players were showed twice in scoreboard. well its
	  not a fix more a workaround and spectators may still be drawn twice
	- fixed: axis nades still had hitsounds in some situations
	- added back the osp sounds, knife goat ...
	- fixed some little cosmetic things in the alt huds



Installation on the client
--------------------------------------------------------------------------------
just put the pk3 file in your shrubet folder. if you connect to a pure server,
the server must also have the client installed.


Installation on the server
--------------------------------------------------------------------------------
put the pk3 file in your shrubet folder and set sv_pure to 1. the clients must
be able to download the pk3.
as i heard from j.hess you might have to put the pk3 in your etmain folder on
windows boxes.



CVars
--------------------------------------------------------------------------------
t_hitSounds 1/0
enable (1) or disable (0) the hitsounds.
default: 1

t_drawSpeed 1/0
draw the speedometer.
default: 0

t_drawSpeedPrefix "string"
string printed in front of the speed.
default: "Speed:"

t_drawSpeedometer 1/0
draw the speedograph.
default: 0

t_speedometerAlpha float
sets the alpha transparency of the speedometer
default: 0.5

t_lowHpWarning int
set this > 0 to enable the low hp warning. a sound is played and/or a text is
displayed if the hp goes under this limit.
setting this to 0 will disable the low hp warning.
default: 0

t_lowHpSound 1/0
enable (1) or disable (0) the low hp warning sound.
default: 1

t_lowHpText "string"
this text is displayed on low hp warning in the center of the screen.
setting this to "" will disable the text message.
default: ^1LOW ^1HP ^1WARNING!!!

t_autoMedicCall 1/0
automaticly call for medic when reaching the hp limit (t_lowHpWarning)
not if you're a medic yourself.
default: 0

t_showDontShot 1/0
show the dont shot icon over the head of a disguised covert ops.
default: 1

t_altHUD int
0	= old style hud
1 - 3	= alternate huds
default: 0

t_altHUDFlags int
1 = move the round time to the hud. if you're dead the standard time is shown
2 = removes the player rank from the hud
4 = move the compass down next to the skills
8 = alternate lagometer (etpro style)
default: 13

t_lagometerAlpha float
sets the alpha transparency of the alternate lagometer
default: 0.5

t_fireteamAlpha float
sets the alpha transparency of the fireteam overlay
default: 1.0

t_chatFlags 1/0
if 1 the team flag is displayed in front of each chat line
default: 1

t_drawClock 0-2
draw the local time. if 2 the seconds are displayed
default: 0

t_blockFTInvitations 1/0
if 1 all fireteam invitations will be automaticly rejected
default: 0

t_prepareSound 1/0
t_fightSound 1/0
t_goatSound 1/0
enable (1) or disable (0) the appropriate osp sound
default; 1



Hitsounds
--------------------------------------------------------------------------------
the hitsounds for bullet weapons workin fine. but for non-bullet weapons there
are some issues. you'll only hear hitsounds for non-bullet weapons if have one
select. e.g. if you shot a mortar and switch right back to your smg you wont hear
any hitsounds. also not all non-bullet weapons have hitsounds anymore. here's a
list of weapons that still have hitsounds (remember: all weapons that fire
bullets have hitsounds too): knife, panzerfaust, flamethrower, satchel, mortar
i can't change this behaviour without having the source code of shrubet, so
don't ask me to.



Menus
--------------------------------------------------------------------------------
for the team, class & spawnpoint menu bind a key to mp_teamclass. if you create
an own menu you must name it wm_custommenu1 or wm_custommenu2. to open it bind a
key to mp_custommenu1 or mp_custommenu2



etadmin_mod Sounds
--------------------------------------------------------------------------------
t_etadminModSupport 1/0
enable (1) or disable (0) all sounds for etadmin mod
default: 1

t_multiKillSound 1/0
enable (1) or disable (0) multikill sound.
default: 1

t_monsterKillSound 1/0
enable (1) or disable (0) monsterkill sound.
default: 1

t_firstBloodSound 1/0
enable (1) or disable (0) first blood sound.
default: 1

t_spreeSounds 1/0
enable (1) or disable (0) all killing spree sounds. also the death spree sound.
default: 1

t_spreeSound 1/0
t_rampageSound 1/0
t_dominatingSound 1/0
t_unstoppableSound 1/0
t_godlikeSound 1/0
t_wickedSound 1/0
t_potterSound 1/0
enable (1) or disable (0) the appropriate spree sound.
default: 1

t_deathSpreeSound 1/0
enable (1) or disable (0) the death spree sound.
default: 1


Issues:
cause server admins can change the killing spree messages and positions in the
etadmin config file the sounds may not work on servers with custom spree
messages. to get the sounds to work the messages must contain the following
strings, case-insensitive. color codes are ignored.

multikill     = multikill
monsterkill   = monsterkill
first blood   = first blood
deathspree    = deaths w/o kill  - or -  deaths without a kill

spree         = a killing spree
rampage       = rampage
dominating    = dominating
unstoppable   = unstoppable
godlike       = godlike
wicked        = wicked sick
potter        = real potter

also the positions for the messages in the etadmin config file must be
"cp" or "chat" for the sounds to work. the position of the monsterkill
message must be "cp"

