// Freak Fortress 2
// ================
//
// Eirin Yagokoro
// Class: Medic
// Script: Koishi (SHADoW NiNE TR3S)
// Model: Touhou Fortress 2
// Further Model Editing: Koishi (SHADoW NiNE TR3S) & Ravensbro
//
// Attack: Festive ubersaw
// Passive: Festive Medigun
// Super Jump: Fast Loading, Fast Cooldown
// Rage: Festive Crusader's Crossbow
// Rage HP trigger: 2100HP
// 
// Description:
// She is a medical genius from the Moon, able to create even the Hourai Elixir with the help of Kaguya's power, the manipulation of eternity. 
// She is living in exile in Gensokyo after choosing to stay with and devote herself to Kaguya Houraisan on Earth rather than take her back to the Moon. 
// She was a very well-known figure on the Moon, having not only been instrumental in the founding of Lunar society with Lord Tsukuyomi, but also being its leading medical mind and the person in charge of the Moon's emissaries to the Earth.
//
// v1.1 Changes:
// - Can now regenerate lives (Hourai Elixir ftw)
// - Removed 5 second extended uber length
// - Replaced Necro Smasher with Festive Ubersaw
// - Now has 2 lives
// - Removed 90% damage bonus when HP was 1/2 (will use default 200% bonus)
// - Now plays a track when self-uber activates
// - Updated description to tell about the life regeneration ability
// - Must hold fire to load crossbow bolt
// - Ragedamage reduced to 2100

// DEPENDENCIES:
// Dynamic Defaults: https://forums.alliedmods.net/showthread.php?t=258090
// Projectile Particles: https://forums.alliedmods.net/showpost.php?p=2378978&postcount=11
// Koishi's Boss Pack: https://forums.alliedmods.net/showthread.php?t=246980

// BGM's:
// Gensokyo Millenium ~ History of the Moon: https://www.youtube.com/watch?v=5cldGDY6Sds
// History of The Moon (forever our style): https://www.youtube.com/watch?v=ZsoC7zPs0dA

"character"
{
	"name"					"Eirin Yagokoro"
	"class"					"5"	
	"model"					"models/freak_fortress_2/eirin/eirin2.mdl"
	"ragedist"				"1600"
	"health_formula"		"((((500+n)*(n-1))^1.04)+2300)/2"
	"lives"				"2"
	"ragedamage"			"2100"							//Boss must get this amout of damage to fill her ragemeter
	"sound_block_vo"		"1"
	
	"description_en" "Eirin Yagokoro (v1.1):\n'This is as far as you will get to the Hourai Elixir.'\nYou are capable of self-uber, collect uber with your weapons to fill your medigun!\nSuper Jump: alt-fire, look up and stand up to super jump.\nWeigh-down: in midair, look down and crouch.\nRage (Apollo 13): Call for medic to gain a crossbow.\nBeing immortal due to Hourai Elixir, you can regenerate 'lives' over time." 
	
	"weapon1"
	{
		"name"				"tf_weapon_medigun"
		"index"				"663"
		"show"				"1"
		"attributes"		"60 ; 0 ; 64 ; 1.5 ; 66 ; 1.5 ; 105 ; 1 ; 128 ; 1 ; 2014 ; 6"
		// 60 - 100% fire damage resistance
		// 64 - 50% explosive damage vulnerability
		// 66 - 50% bullet damage vulnerability
		// 105 - 0% max overheal (to prevent overhealing enemy spies & friendlies)
		// 128 - Provide while active

	}
	"weapon2"
	{
		"name"				"tf_weapon_bonesaw"
		"index"				"1003"
		"show"				"1"
		"attributes"		"17 ; 0.1 ; 225 ; 0.25 ; 269 ; 1 ; 2025 ; 1 ; 2014 ; 6"
		// 225 - -75% Damage Penalty when health greater than 50%
		// 17 - On-hit: 10% uber
 		// 269 - Allows enemy health to be seen
	}	
	// Config
	"ability1"
	{
		"name"	"boss_config"
		"arg0" "-1"
		"arg1" "8"  // Hourai Elixir Life Regeneration (Modified version of Skeleton King's rage_reincarnation code)
		"arg2" "60" // Initial Cooldown
		"arg3" "30" // Additional Cooldown
		"plugin_name"	"shadow93_bosses"
	}
	// Charges			
	"ability2"
	{
		"name" "dynamic_jump"

		// slot is ignored.
		"arg1"	"2.5" // charge time, same as charge_bravejump
		"arg2"	"7.0" // cooldown, same as charge_bravejump
		"arg5"	"3.0" // cooldown before first use
		"arg6"	"300.0" // minimum damage before super duper jump
		"arg8"	"1.1" // jump intensity multiplier. unlike charge_bravejump, this works for oldjump too
		"arg10"	"1" // don't affect weighdown's cooldown
		
		// HUD strings
		"arg17"	"Super DUPER Jump ready! Look up, press and release ALT-FIRE." // super duper jump message
		"arg18"	"Super Jump is not ready. %.1f seconds remaining." // cooldown message
		"arg19"	"Super Jump is ready. %.0f percent charged.\nLook up, press and release ALT-FIRE." // charge message

		"plugin_name"	"ff2_dynamic_defaults"
	}

	"ability3"
	{
		"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"
	}
	// Basic Stun
	"ability4"
	{
		"name" "rage_stunsg"
		"arg1"	"10"
		"plugin_name"	"default_abilities"
	}
	"ability5"
	{
		"name" "rage_stun"
		"arg1"	"6"
		"plugin_name"	"default_abilities"
	}
	// Weapon Rage
	"ability6"
	{
		"name"			"rage_new_weapon"
		"arg1"			"tf_weapon_compound_bow"
		"arg2"			"1092"
		"arg3"			"2 ; 9 ; 6 ; 0.5 ; 17 ; 0.2 ; 134 ; 38 ; 137 ; 9 ; 199 ; 1 ; 266 ; 1 ; 2025 ; 1 ; 2014 ; 6"
		"arg4"			"0"
		"arg5"			"5"
		"arg6"			"1"
		"plugin_name"	"special_noanims"
	}
	// Death Effect
	// Passive
  	"ability7" 
    	{ 
    		"name" "projectile_particles" 
        	"arg1"    "coin_large_blue"     // Particles effect name 
        	"arg2"    "1"                 // Holyness level. The higher = The brighter = More lag. 
        	"plugin_name"    "ff2_otokiru_pp" 
    	}  
	// models, sounds, whatever come later
	"sound_begin"
	{
		//"1"	"freak_fortress_2/eirin/eirin_taunt.mp3"
	}
	"sound_precache"
	{
		"1"	"freak_fortress_2/eirin/fos_hotm.mp3"
		"2"	"freak_fortress_2/eirin/gm_hotm.mp3"
	}	
	"sound_bgm"
	{
		"path1"	"freak_fortress_2/eirin/fos_hotm.mp3"
		"time1"	"249"
		"path2"	"freak_fortress_2/eirin/gm_hotm.mp3"
		"time2"	"359"
	}
	"mod_download"
	{
		"1"	"models/freak_fortress_2/eirin/eirin2"
	}
	"mat_download"
	{
		"1"	"materials/freak_fortress_2/eirin/0edic_red_invun"
		"2"	"materials/freak_fortress_2/eirin/medic_hands"
		"3"	"materials/freak_fortress_2/eirin/mhand"
		"4"	"materials/freak_fortress_2/eirin/0edic_blue_invun"
		"5"	"materials/freak_fortress_2/eirin/0edic_body"
		"6"	"materials/freak_fortress_2/eirin/0edic_head"
		"7"	"materials/freak_fortress_2/eirin/0edic_head_blue_invun"
		"8"	"materials/freak_fortress_2/eirin/0edic_head_red_invun"


	}
	"download"
	{		
		"1"	"sound/freak_fortress_2/eirin/gm_hotm.mp3"
		"2"	"sound/freak_fortress_2/eirin/fos_hotm.mp3"
		"3"	"sound/freak_fortress_2/eirin/eirin_taunt.mp3"
		"4"	"sound/freak_fortress_2/eirin/eirin_uber_deployed.mp3"
		"5"	"materials/freak_fortress_2/eirin/0edic_head_walpha_blue.vmt"
		"6"	"materials/freak_fortress_2/eirin/0edic_head_walpha_blue_invun.vmt"
		"7"	"materials/freak_fortress_2/eirin/0edic_head_walpha_red.vmt"
		"8"	"materials/freak_fortress_2/eirin/0edic_head_walpha_red_invun.vmt"
		"9"	"materials/freak_fortress_2/eirin/0edic_normal.vtf"
		"10"	"materials/freak_fortress_2/eirin/0yeball_invun.vmt"
		"11"	"materials/freak_fortress_2/eirin/0yeball_l.vmt"
		"12"	"materials/freak_fortress_2/eirin/0yeball_r.vmt"
		"13"	"materials/freak_fortress_2/eirin/0ye-iris.vtf"
		"14"	"materials/freak_fortress_2/eirin/medic_blue_gib.vtf"
		"15"	"materials/freak_fortress_2/eirin/medic_red_gib.vtf"
		"16"	"models/freak_fortress_2/eirin/eirin2.phy"
	}
}