-------------------------------------------------------------------------------
ScrnBalance mutator 
-- by PooSH, 2012
-------------------------------------------------------------------------------
Oficial forum thread:
http://forums.tripwireinteractive.com/showthread.php?t=80743
-------------------------------------------------------------------------------

Mutator allows to balance vanilla game in 4 directions:
1. PERK LEVELS. Automatically lowers perks, which are too high for current 
difficulty and raises perks, that are too low. So you can split visual and bonus 
parts of the perks. 

2. SPAWN BALANCE. Adjusts weapon prizes and spawn inventory to make it 
approximately even across the perks. No more need to start as level sharpshooter 
to get 600 pounds for selling the crossbow. 

3. WEAPON BALANCE. Slightly adjusts weapon parameters, trying to make each of 
them useful in some circumstances. Also removes annoying issues and exploits. 
  
4. GUNSLINGER PERK. A new perk designed to use pistols, esp. dual versions. 
  
Each of 4 features above can be turned on and off independently. However, it's 
not recomended to use Gunslinger perk without Weapon Balance. 

See changes.txt for version history.

-------------------------------------------------------------------------------
--=REQUIREMENTS=--
-------------------------------------------------------------------------------
Mutator is designed to be used with ServerPerks v5.51. Visit 
  http://forums.tripwireinteractive.com/showthread.php?t=36065
to download it. 

Because mutator uses own player controller class, it isn't compatible with other 
mutators, which do the same (excluding ServerPerks, of course). However, there 
is an extra mutator "SZ_ScrnBalance", which makes it ScrnBalance comatible with 
Scary_ghost's Super Zombies mutator (because I like it very much). 

To make them work together you need version 1.8.2-fix (can get it here: 
  http://forums.tripwireinteractive.com/showthread.php?t=50932)
add use all of them:
  ?Mutator=ServerPerksMut.ServerPerksMut,ScrnBalanceSrv.ScrnBalance,SuperZombieMut_ServerPerks.SuperZombieMut,SZ_ScrnBalanceSrv.SZ_ScrnBalance

-------------------------------------------------------------------------------
--=INSTALLING=--
-------------------------------------------------------------------------------
1. Copy System and Textures directories to your KF directory.

2. Edit config file "ServerPerks.ini". If you hadn't ServerPerks installed 
   before, you can use a file comming with this mutator by copying it to the
   game's System directory.

2a) First you need to replace standard perks with Scrn version in ServerPerks.ini:

    Perks=ScrnBalanceSrv.ScrnVetFieldMedic
    Perks=ScrnBalanceSrv.ScrnVetSupportSpec
    Perks=ScrnBalanceSrv.ScrnVetSharpshooter
    Perks=ScrnBalanceSrv.ScrnVetFirebug
    Perks=ScrnBalanceSrv.ScrnVetCommando
    Perks=ScrnBalanceSrv.ScrnVetBerserker
    Perks=ScrnBalanceSrv.ScrnVetDemolitions
    
2b) For Gunslinger perk add also:

    Perks=ScrnBalanceSrv.ScrnVetGunslinger
    TraderInventory=1:ScrnBalanceSrv.ScrnDual44MagnumLaserPickup
    TraderInventory=1:ScrnBalanceSrv.ScrnSinglePickup
    TraderInventory=1:ScrnBalanceSrv.ScrnDualiesPickup
    TraderInventory=1:ScrnBalanceSrv.ScrnDeaglePickup
    TraderInventory=1:ScrnBalanceSrv.ScrnDualDeaglePickup
    TraderInventory=1:ScrnBalanceSrv.ScrnDual44MagnumPickup
    TraderInventory=1:ScrnBalanceSrv.ScrnMagnum44Pickup
    TraderInventory=1:ScrnBalanceSrv.ScrnMK23Pickup
    TraderInventory=1:ScrnBalanceSrv.ScrnDualMK23Pickup
    TraderInventory=1:ScrnBalanceSrv.ScrnDualMK23LaserPickup

It is recomended to remove original KFMod pistols from the inventory.
    
2c) Balanced weapons are enable by default. If you don't like balance job of a 
    particular weapon, you can replate it with original version, commenting a
    line in ServerPerks.ini:
    # TraderInventory=X:ScrnBalanceSrv.Scrn<Weapon>
    and uncommenting
    TraderInventory=X:KFMod.<Weapon>
    You can put both weapon versions in the trader list, if you wish so.

3.  Dedicated Server Owners. 
If you are using download redirection, put .uz2 files into redirected dir on 
your web server. Add 
    ?Mutator=ServerPerksMut.ServerPerksMut,ScrnBalanceSrv.ScrnBalance
to your server launch batch file if you want to use this mutator by default. 

-------------------------------------------------------------------------------
--=CONFIGATION=--
-------------------------------------------------------------------------------
All parameters are configurable through the in-game mutator options, WebAdmin 
or direct editing of ScrnBalance.ini.


BonusLevel<difficulty>Max 
  , where <difficulty> = {Normal | Hard | Sui | Hoe }
  Limits the maximal perk level, from which players get bonuses (like extra damage etc.).
  Players still can level their perks further, but won't get extra bonuses for it. 
BonusLevel<difficulty>Min
  , where <difficulty> = { Hard | Sui | Hoe }
  If player has lower perk level, he will receive minimal level bonuses anyway. 
  
  Foe example, lets view default configuration:
    [ScrnBalanceSrv.ScrnBalance]
    BonusLevelNormalMax=3
    BonusLevelHardMin=2
    BonusLevelHardMax=4
    BonusLevelSuiMin=4
    BonusLevelSuiMax=6
    BonusLevelHoeMin=6
    BonusLevelHoeMax=6
  If level 5 sharpshooter joins the Normal game, he'll get perk bonuses as he would be level 3. 
  You can easy notice this, because you'll spawn without a LAR.
  Jumping on Hard difficulty he'll get perk bonuses as he would be level 4. 
  Playing Suicidal will keep his actual level(5), because it is between min (4) and max(6).
  Jumping on Hoe will raise his bonus level to 6 (he'll spawn with crossbow).

  If you don't want to use perk balance, set all minimal bonus levels to -1, 
  but maximal level same as MaxPerksLevel parameter in ServerPerks.ini.

TimerInterval
  How often (in seconds) server will notice players, if their bonus level doesn't match
  perk level (limited between min and max). Setting this to 0 will turn off it.
  Players can turn this off in the game by typing "mutate stopspamme" in the console.
  
Post6RequirementScaling
  Determines how fast players will progress after reaching level 6. 
  Post6RequirementScaling is apllied after ServerPerks's double scaling 
  (RequirementScaling  parameter in ServerPerks.ini) 
  and doesn't affects first 6 level.

bSpawnBalance
  Turns Spawn Balance on or off (see changes.txt for more info)
  
bSpawn0
  Make all inventory the player spawn with cost 0. Complete fix of suicidal exploit.
  
bWeaponFix  
  Turns Weapon Balance on or off (see changes.txt for more info)
  
bGunslinger
  Enables Gunslinger perk. Keep in mind, that you need to add perk and guns to the
  "ServerPerks.ini" too. Otherwise you'll just remove dual pistol bonuses from
  Shapshooter perk. It isn't recomended to use bGunslinger without bWeaponFix.
  
bManualReload
  If true, disables automatic reload when trying to fire the gun with an 
  empty magazine.

  
-------------------------------------------------------------------------------
--=CUSTOM WEAPON SUPPORT=--
------------------------------------------------------------------------------- 
Starting from version 3, ScrN perks are supporting custom weapons. All you need
to apply perk bonuses for a custom weapon is to add one line in ScrnBalance.ini
For example, adding:
    PerkedWeapons=3:FX-KFG36Cv2.G36CAssaultRifle
grants G36 (made by FluX) Commando's bonuses.

Full configuration line format is:
PerkedWeapons=<Perk Index>:<Weapon Class Name>[:<Bonuses>]
, where:
<Perk Index>:
    0 - Medic
    1 - Support spec.
    2 - Sharpshooter
    3 - Commando
    4 - Berserker
    5 - Firebug
    6 - Demolitions
    7 - Gunslinger
<Weapon Class Name> - Full class name of weapon, including package name. 
    Weapon class names can be retrieved from .ucl files.
    Keep in mind, that you need to specify WEAPON class name, not the PICKUP class
<Bonuses> - list of key letters, granting individual bonuses:
    $ - discount (both on weapon and ammo)
    W - weapon's general bonuses (reload, recoil)
    P - Primary fire damage bonus
    S - Secondary (alternate) fire damage bonus
    A - Primary fire ammo bonuses (magazine, total)
    S - Secondary fire ammo bonus (total ammo)
    D - override primary damage type with perk's default one (enable perk progression). 
    d - override secondary damage type with perk's default one 
    * - mark weapon as a special one:
        Sharpshooter gets fire rate bonus for spec.weap.
        Gunslinger can act in Cowboy Mode while holding spec.weap. 
If <Bonuses> are ommited, all bonuses will be granted, except D|d|*.
You always need to specify those switches, if you want to override damage types.
You can grant only those bonuses, which perk provides. For example, you can't add
damage bonus for Medic, or reload bonus for Support Spec, or ammo discount for Gunslinger.
There are extra requirements for some perks too, like Berserker can have bonuses only
for melee weapons, Demo - damage bonus is applied only on explosive damage types.

If you like, you can also add additional bonuses for existing weapons too, e.g.:
PerkedWeapons=6:KFMod.M32GrenadeLauncher:A   -- give Demo ammo bonus for M32
PerkedWeapons=4:KFMod.Axe:$                  -- give Berserker discount on Axe
PerkedWeapons=0:KFMod.MAC10MP:$A             -- give Medic a discount and magazine bonuses on Mac10
    


-------------------------------------------------------------------------------
--=CONSOLE COMMANDS=--
-------------------------------------------------------------------------------
Console commands listed below works both on client and server side.

mutate level
  Display player's bonus level

mutate status
  Display server configuration info

mutate version
  Display the mutator version
  
TogglePlayerInfo
  Show/Hide player names and health bars from a HUD