==================================================================================================
Product - SmartDM
Version - 1.0.7
Authors - The_Cowboy - ProAsm - noOne
Tests: - no0ne / Jojoza
Release Date: Feb 2020
==================================================================================================

SmartDM is a mutator which adds a cool scoreboard and many new stats/features
for Deathmatch, LastManStanding, Team Deathmatch and CTF Games.

==================================================================================================
COMPATIBILITY
==================================================================================================

a) DeathMatch
b) TeamGame
c) LastManStanding
d) Capture the Flag
e) Domination
f) Assault

==================================================================================================
FEATURES
==================================================================================================

Stats
~~~~~
SmartDM tracks many interesting stats for Games.

a) Efficiency (Calculated in scoreboard)
b) Pickups - All pickups like armour ,shieldbelts ,amplifiers ,jumpboots etc
c) Survivability - Defined by (AwakeTime)/(num_of_deaths)
AwakeTime is time between Spawn of player and his/her death.
d) Suicides
e) Sprees - Killing Sprees
f) TimePlayed
g) Headshots
h) SpawnKills
i) Frags
j) FlagTaken
k) FlagDropped
l) FlagTaken

Detections
~~~~~~~~~~
SmartDM detects longrange kills ,multilevel kills ,SpawnKills and announces same.
Read settings sections for more info.

IpToCountry Support
~~~~~~~~~~~~~~~~~~~
SmartDM has IpToCountry support.
SmartDM recommends latest version of IpToCountry.
> Note: Version 107 requires the latest CountryFlags32b.utx compiled by no0ne.

*Pack also contains a Package CountryFlags32s which is Flags with no Wave Texture applied.
==================================================================================================
INSTALLATION
==================================================================================================

Turn off the server!

> Extract the System and Textures (folders) into your UnrealTournament (Folder).

> Open UnrealTournament.ini
> Scroll down to [Engine.GameEngine] section and add the following ServerPackages;

ServerPackages=SmartDM107x
ServerPackages=SmartDmAssets
ServerPackages=CountryFlags32b

Alternatively you may also use 
ServerPackages=CountryFlags32y  (Enlarged CountryFlags3) 
you will need to change the settings in SmartDM107.ini to use these textures for Bots/Players.

Start the Mutator with the following;
Mutator=SmartDM107x.SmartDM

Note: You may open SmartDmAssets.utx with UED and you will find names and references to icons in there.
==================================================================================================
CONFIGURING SmartDM - Server Side
==================================================================================================
[SmartDM107.SmartDM]
bEnabled=True

CountryFlagsPackage=CountryFlags32b (or..)
CountryFlagsPackages=CountryFlags32y
SpawnKillPenalty=0

BotCountryName=
As 107 now displays the players country and it is possible to give a bot a flag (BotIcon=)
Here you can give the bots a country name as well to suit the flag :)
Example:
BotIcon="CountryFlags32b.ZA"
BotCountryName=South Africa

bEnhancedMultiKill=True
If set to False it will disable the SmartDM Multikill Messages.

EnhancedMultiKillBroadcast=2
This will decide from which multi level kill the message should be broadcasted
2 = all multilevel kills will be broadcasted
3 = all multilevel kills after double kill will be broadcasted.
4 = so on......

bSmartDMServerInfo=True

bSpawnkillDetection=True
SpawnKillTimeArena=1.000000
SpawnKillTimeNW=3.500000
The maximal time after a victim respawns, that the kill can be defined as a spawnkill.
For arena (instagib) and NW games

bAfterGodLikeMsg=True
bDrawLogo=True

bShowSpecs=True
Should spectators be shown ?

bDoKeybind=True

SbDelay=4
After how much seconds should the scoreboard load.

bShowLongRangeMsg=False
bShowSpawnKillerGlobalMsg=True

bPlay30SecSound=True

bExcludeBotsInStats=False
If True then kills against Bots will not count.

GameInfo[0]=(bEnabled=False,GameNames="",Color="") (changed in 107)
Add as many GameNames here for the scoreboard to detect what color the heading should be.
Example:
GameInfo[0]=(bEnabled=True,GameNames="Tournament DeathMatch,Killer Deathmatch,Assault",Color="R=255,G=128,B=0")
The colors in which it is displayed is set always in the order of Red,Green,Blue

--------------------------------------------------------------------------------------------------

[SmartDM107.SmartDMTeamIcons]
SDMIconNum=0
SDMIcons[0]=(Top1Icon="",Top2Icon="",Top3Icon="",BotIcon="",DeadIcon="",RedFlagIcon="",BlueFlagIcon="",RedTeamIcon="",BlueTeamIcon="")

Here you can change several of the internal scoreboard icons.
You have up to 10 choices with the SDMIconNum= pointing to the choice.
These icons need to be in the format of 8 bits, 256 color 32x32 .pcx which you incorporate into a .utx file
and add that to the Texture folder as a SDMTextures.utx for instance.
Lets say you called the .pcx BotFlag1.pcx
for Example you could use CountryFlags32b.ZA to give your bots a South African Flag. or CountryFlags32b.US for a USA flag.
Now in the above you would add BotIcon="CountryFlags32b.ZA"
During the game all bots will show that flag and the country you added in
BotCountryName= (Manually Enter a country or place for your bots)

Please note that All Icons (Excluding Team Icons 64x64px) are 32x32px any other sizes will be ignored.
Also note that Custom Header Banners must be 256x32px again all other sizes will be ignored.
We have provided a small Asset Pack with Icons etc inside called SDMAssets.utx open this File in UnrealEditor for more info.
Also if you wish to disable any of the Icons from showing in players Scoreboard windows then simply add "none"
in the desired Icons Attributes. ie; BotIcon="none"

--------------------------------------------------------------------------------------------------

[SmartDM107.SmartDMTeamHeaders]
SDMHeaderNum=0
SDMHeaders[0]=(bHeaderClear=False,RedHeader="",BlueHeader="",RedHeading="Red Team",BlueHeading="Blue Team",RedHeadingColor=(R=255,G=0,B=0,A=255),BlueHeadingColor=(R=0,G=128,B=255,A=255))

Here too, you have up to 10 options and the SDMHeaderNum= will point to the option you want to currently use.
bHeaderClear=False
If set to True, then the header texture you add will be transparent.
RedHeader=
BlueHeader=
This is a .utx file similar to the icons above except the .pcx will be 256 x 32
RedHeading=
BlueHeading=
This is the Text written on the above Header= and is normally "Red Team" and "Blue Team"
RedHeadingColor=(R=255,G=0,B=0,A=255),BlueHeadingColor=(R=0,G=128,B=255,A=255))
Here you can set the colour of the text displayed in the headers.


==================================================================================================
CONFIGURING the Scoreboards - Client Side
==================================================================================================
bShowTransparent=False
Whether the scoreboard should be totally tansparent or have a shaded background.

bShowAltScoreboard=False
True will remove Pickups and Multikills thus allowing more players to be displayed.

bShowInlineDMPlayers=False
True will show DeahMatch players inline, for 12 players, 1 to 6 on left and 7 to 12 on the right.

bShowTickFrameRate=True
True will show Tick Rate and Frame Rate (FPS) will be displayed at bottom right of scoreboard.

bShowSBCrossHair=True
If True the players crosshair will be displayed while viewing the scoreboard.

bShowBoardIcons=True
If set to False all icons will not be shown on the scoreboard.

bAllowDefaultBoard=False
In many cases, especially DeathMatch, when you press F1 for a scoreboard, the UT default scoreboard
will appear. With this set to False, the UT default Scoreboard 'should' never show.
However if you join the server and press F1/F3 too fast then the Scoreboard will NOT show and will be disabled either until the start of the next game or if client reconnects.

==================================================================================================
CHANGELOG
==================================================================================================
Version - 1.0.7y

Fixed bug where PlayerNames were colliding with stats. (>=14 players)
Made slight changes to small scoreboards 800+
Admins Can now use CountryFlags2/3 Packages.

Version - 1.0.7

Added the Players local time below frag/death
Repositioned all icons and stat text to suit resolutions up to 1920x1080
Removed player icons and made allowed Faces only
Added badges (icons) for players 1st, 2nd and 3rd most frags accumulated.
Set Alt scoreboard as default
Made all Icons changable.
Incorporated SmartDMScoreboard as part of SmartDM107
Added Ctf flags next to playername
Removed the horrid groaning sound which occured when players commit suicide in previous versions.
Added interchangable Header banners for admins
Added a window frame so menu can be moved around
Fixed the netspeed indication
Removed resolution required messages
Rewrote all ScoreBoards with less pixel placing
Made alt scoreboard share single icon location
Reduce GameInfo 10
Can now add as many game names to GameInfo[x] GameNames=
Added enabling 800 x 600 resolution, although not good
Made total score same color as heading text color
Replicated GameName for GameInfo colors
Added new default headers made by no0ne
Added countryname to all players
Added optional BotCountryName= for displaying Bot Country

------------------------------------------------------------------------
Version - 1.0.6 - Purely experimental
------------------------------------------------------------------------

Version - 1.0.5
Added back bEnhancedMultiKill=True to disable new kill messages
Added bShowCTFScoreboard=True to show a reasonable CTF Scoreboard.
Added bAllowDominationTDM=True to allow SmartDM's TDM scoreboard to be used for Domination.
Added bAllowAssaultTDM=True to allow SmartDM's TDM scoreboard to be used for Assault.
Moved the bStatsDrawFaces clientside to the menu.
Increased GameInfo's from 10 to 30 to match that of MapVoteX

------------------------------------------------------------------------

Version - 1.0.4
Expanded viewable player displays
Added TDM (TeamGamePlus) to Scoreboard
Added optional TDM headings to scoreboard
Added bStatsDrawDMFaces=True - replaced bStatsDrawFaces
Addec bStatsDrawTDMFaces=True
Added options to change Game Names and color in Scoreboard
Added client menu - Mutate SmartDM Menu to call up and set keybind
Added Bot icons for easier identification.
Added small skull icon signifying when a player is dead.
Highlighted Pickups for easier reading.