// Queen Elsa of Arendelle										

// Model by RavensBro
// CFG & subplugin by Koishi (SHADoW NiNE TR3S)

// DEPENDENCIES:															
// Dynamic Defaults: https://forums.alliedmods.net/showthread.php?t=258090
// SHADoW93 Abilities: https://forums.alliedmods.net/showthread.php?p=2346946
// sarysapub3: https://forums.alliedmods.net/showthread.php?t=267291

// BGM:
// Let It Go (Living Tombstone): https://www.youtube.com/watch?v=11q9-Kl02Dg
// Let It Go: https://www.youtube.com/watch?v=L0MK7qz13bU

"character"
{
	"name"					"Elsa the Snow Queen"								//Boss Name
	"class"					"8"													//Class
	"model"					"models/freak_fortress_2/frozen/elsa/elsa2.mdl"		//Path to model
	"health_formula"		"((500+n)*(n-1)^1.04)+2000"						//HP formula
	"subversion"			"31"												//Subversion requirement (BBG only)
	"bossteam"				"3"													//Boss team? (BBG only)
	"ragedamage"			"3500"												//Boss must get this amout of damage to fill her ragemeter
	"maxspeed"				"330.0"												//Max movement speed
	"sound_block_vo"		"1"													//Block voice?
	"ragedist"				"500"												// rage distance
	
	"description_en" "Queen Elsa of Arendelle:\nFrom the 2013 animated film ''Frozen''\nWeightdown:\nCrouch and look down while mid-air\nAbility Management System:\nPress RELOAD to cycle through abilities, CALL MEDIC to activate"
	
	"weapon1"
	{
		"name"				"tf_weapon_knife"
		"index"				"649"
		"show"				"1"
	}
	
	"ability1"
	{
		"name" "dynamic_weighdown"
		
		// slot is ignored
		"arg1"	"0" // 1 = disabled by default (can only be re-enabled in code)
		"arg2"	"0" // number of uses. set to 0 to be infinite.
		"arg3"	"1.0" // the hale's normal gravity. this will practically always be 1.0
		
		// strings
		"arg19"	"You have used weighdown!"
		
		"plugin_name"	"ff2_dynamic_defaults"
	}
	
	"ability2"
	{
		"name"	"dynamic_melee_management"
		"arg1"	"tf_weapon_knife" // weapon name
		"arg2"	"649" // weapon index
		"arg3"	"2 ; 1.5 ; 347 ; 1 ; 60 ; 0.5 ; 156 ; 1 ; 651 ; 0.65 ; 2049 ; 1 ; 361 ; 1" // weapon attributes
		"arg4"	"1" // weapon visibility
			// 2:	 +50% Damage bonus
			// 347:  Freeze on backstab
			// 60:   60% fire damage resistance
			// 156:  Silent killer
			// 651:  Fire rate increases by 35% as health decreases
			// 2049: Third hit critical hit
		"plugin_name"	"ff2_dynamic_defaults"
	}
	
	"ability3"
	{
		// NOTE: If you have the Teleport to Spawn plugin
		// You should just remove this ability entirely.
		"name"	"dynamic_env_management"
		
		// since parkour can make pits deadly, makes the hale invincible for N seconds after reaching an environmental damage threshold
		"arg1"	"50.0" // environmental damage threshold
		"arg2"	"3.0" // invincibility duration, set to 0.0 to not use
		"arg3"	"1" // if 1, will not actually uber the target (doing this for Epic Scout because it removes alpha from some badly broken viewmodels)
		
		// another option is to teleport this player directly to another player
		"arg11"	"1" // if 1, teleports the victim to a random player
		"arg12"	"1" // 1 = try teleport on top
		"arg13"	"1" // 0 = try teleport on side
		"arg14"	"4.0" // self-stun duration
		
		"plugin_name"	"ff2_dynamic_defaults"
	}
	
	"ability4"
	{
		"name"	"ability_management_system"
		"arg1"	"0" // activation key. 0=E, 1=R, 2=MIDDLE MOUSE, 3=USE(not bound by default)
		"arg2"	"1" // selection key. 0=not usable, 1=R, 2=MIDDLE MOUSE, 3=USE(not bound by default)
		"arg3"	"3" // reverse selection key. 0=not usable, 1=R, 2=MIDDLE MOUSE, 3=USE(not bound by default) [note: hidden feature, keeping this standard going]
		"arg4"	"0xc00000" // HUD color (unavailable)
		"arg5"	"%s (%.0f rage) [RELOAD (R) to change]\n%s\nAbility is currently unavailable." // HUD text format (unavailable)
		"arg6"	"0xffffff" // HUD color (available)
		"arg7"	"%s (%.0f rage) [RELOAD (R) to change]\n%s\nAbility is available. (press E)" // HUD text format (available)
		"arg8"	"0.68" // HUD Y
		"arg9"	"RAGE Meter: %.0f%%\nHP: %d / %d" // HUD replacement text
		"arg10"	"0.80" // HUD replacement Y
		"plugin_name"	"ff2_sarysapub3"
	}
	
    "ability5"
    {
        "name" "rage_summon"
        "arg1" "1"            // Sound
        "arg2" "1"            // Summon per rage (specify amount for fixed amount, 0 to summon 1 per alive player, -1 to summon by ratio)
        "arg3" "3"            // Uber Protection
        "arg4" "1"            // Notification Alert (boss-only)
        "arg5" "0"            // Model Mode (0 = Human or Custom model, 1 = Robot Model (automatically applies robot voice lines))
        "arg6" "models/freak_fortress_2/frozen/olaf/olaf.mdl"    // Leave blank for human model, or specify model path for custom model (not used if arg5 is set to 1)
        "arg7" "1"            // Player class, leave blank to not change minion class
        "arg8" "0.0"            // Ratio, if arg4 is -1
        "arg9" "1"            // Remove wearables? (for custom models / tf2 robot models)
        "arg10" "1"            // Weapon mode (0 to allow minions to spawn with regular loadouts, 1 for specific weapon, 2 for no weapons)
        "arg11" "tf_weapon_bat"    // Weapon Classname (if arg10 = 1)
        "arg12" "317"            // Weapon index (if arg10 = 1)
        "arg13" "2 ; 1.75 ; 68 ; -2"        // Attributes (if arg10 = 1)
        "arg15" "500*n"            // Health formula
        "arg16"        "1"            // Teleport to summoner's location?
        "arg19" "-1"            // Voice Line mode (-1: Block voice lines, 0: Normal voice lines, 1: Robot Voice lines, 2: Giant Voice Lines, 3: boss's catchphrase, 4: use 'sound_minion_catchphrase')
        "arg22" "Your minions have spawned"    // Summoner's text
        "arg23" "You are now a minion!"        // Summoned's text
        "arg24" "1"            // Restrict new minions to only spawn if alive minions are equal or under the max allowed
        "arg25" "1"            // Restriction: Maximum amount of alive minions when new minions can spawn
		"arg26"        "1"            // 0 = E rage, 1 = AMS ability
        "arg27" "1"            // 0 - slay minions when their summoner dies, 1 - don't slay minions when their summoner dies and instead give minions a fighting chance to win
        "arg28" "0.7"          // Scale
        "arg29" "0.7"          // Gravity
        "arg30" "walk"          // Movetype
        "arg33" "1"              // Visible weapons?
        "arg34" "1"              // Disable health being overheal?

        // args reserved for the ability management system, if configured to be used with AMS.
        "arg1001"    "30.0" // delay before first use
        "arg1002"    "60.0" // cooldown
        "arg1003"    "Olaf" // name
        "arg1004"    "Call Olaf over to finish off enemies!" // description
        "arg1005"    "50" // rage cost
        "arg1006"    "0" // index for ability in the AMS menu
        "plugin_name"    "shadow93_abilities"
		
    }  

	"ability6"
	{
		"name" "special_elsa"
		"arg1"	"1" 	// 1: AMS 0: E rage?
		"arg2"	"10.0" 	// Freeze Duration
		"arg3"	"2000.0" // Distance
		"arg4"	"50.0"	// Scale Rate
		"arg5"	"1"		// Affect projectiles?
		
        // args reserved for the ability management system, if configured to be used with AMS.
        "arg1001"    "30.0" // delay before first use
        "arg1002"    "15.0" // cooldown
        "arg1003"    "Full Freeze" // name
        "arg1004"    "Freeze nearby players and projectiles!" // description
        "arg1005"    "100" // rage cost
        "arg1006"    "1" // index for ability in the AMS menu
        "plugin_name"    "ff2_frozen"
	}
	
	"ability7"
	{
		"name"	"rage_ams_dynamic_teleport"
		
		"arg1"	"1" // trigger. 0 = E rage, 1 = triggered by ability management system
		"arg2"	"1" // 1 = try teleport on top
		"arg3"	"1" // 0 = try teleport on side
		"arg4"	"0.5" // self-stun duration (intentionally short, since the idea is this only gets used if a merc is trolling them)
		
		// args reserved for the ability management system
		"arg1001"	"45.0" // delay before first use
		"arg1002"	"45.0" // cooldown (intentionally high, it's not meant to be primary mobility, only last ditch)
		"arg1003"	"Teleport" // name
		"arg1004"	"Teleport to an enemy. If nothing else works" // description
		"arg1005"	"20.0" // rage cost
		"arg1006"	"2" // index for ability in the AMS menu
		
		"plugin_name"	"ff2_sarysapub3"
	}

	"sound_begin"
	{
		"1" "freak_fortress_2/frozen/elsa/intro_fix.mp3"
	}	
	
	"sound_win"
	{
		"1"	"freak_fortress_2/frozen/elsa/win_fix.mp3"
	}
	
	"sound_death"
	{
		"1"	"freak_fortress_2/frozen/elsa/defeat.mp3"
	}
	
	"sound_fail"
	{
		"1"	"freak_fortress_2/frozen/elsa/defeat.mp3"
	}

	"sound_kspree"
	{
		"1" "freak_fortress_2/frozen/elsa/kspree_fix.mp3"
	}
	
	"sound_bgm"
	{
		"path1"	"freak_fortress_2/frozen/letitgo_tlt.mp3"
		"time1"	"178.5"
		
		// Not the biggest fan of the original track, but if you want to enable it anyway, just uncomment the 2 lines below and download 11
		//"path2"	"freak_fortress_2/frozen/letitgo.mp3"
		//"time2"	"222.2"
	}
	
	"mod_download"
	{
		"1"	"models/freak_fortress_2/frozen/olaf/olaf"
		"2" "models/freak_fortress_2/frozen/elsa/elsa2"
	}
	
	"mod_precache"
	{
		"1"	"models/freak_fortress_2/frozen/olaf/olaf.mdl"
	}
	"mat_download"
	{
		"1" "materials/freak_fortress_2/frozen/olaf/brown"
		"2" "materials/freak_fortress_2/frozen/olaf/brown_top"
		"3" "materials/freak_fortress_2/frozen/olaf/carrot"
		"4" "materials/freak_fortress_2/frozen/olaf/charcoal"
		"5" "materials/freak_fortress_2/frozen/olaf/eyes"
		"6" "materials/freak_fortress_2/frozen/olaf/snow"
		"7" "materials/freak_fortress_2/frozen/olaf/white"
		"8" "materials/freak_fortress_2/frozen/olaf/black"
		"9" "materials/freak_fortress_2/frozen/elsa/elsa_face"
		"10" "materials/freak_fortress_2/frozen/elsa/elsa_hair"
		"11" "materials/freak_fortress_2/frozen/elsa/elsa_cape"
	}
	"download"
	{
		"1"	"models/freak_fortress_2/frozen/olaf/olaf.phy"
		"2" "models/freak_fortress_2/frozen/elsa/elsa2.phy"
		
		"3" "materials/freak_fortress_2/frozen/elsa/elsa_cape_n.vtf"
		"4" "materials/freak_fortress_2/frozen/elsa/elsa_face_n.vtf"
		"5" "materials/freak_fortress_2/frozen/elsa/elsa_hair_n.vtf"
		
		"6" "sound/freak_fortress_2/frozen/elsa/intro_fix.mp3"
		"7"	"sound/freak_fortress_2/frozen/elsa/win_fix.mp3"
		"8"	"sound/freak_fortress_2/frozen/elsa/defeat.mp3"
		"9"	"sound/freak_fortress_2/frozen/elsa/kspree_fix.mp3"
		
		"10" "sound/freak_fortress_2/frozen/letitgo_tlt.mp3"
		
		// Uncomment to enable BGM
		//"11" "sound/freak_fortress_2/frozen/letitgo.mp3"
	}
}