// Olaf the snowman															

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

// DEPENDENCIES:															
// Dynamic Defaults: https://forums.alliedmods.net/showthread.php?t=258090
// Customizable Clipless Weapons: https://forums.alliedmods.net/showthread.php?t=249123
// Replace Projectile: https://forums.alliedmods.net/showthread.php?t=215244

// BGM:
// Do You Want To Build A Snowman: https://www.youtube.com/watch?v=V-zXT5bIBM0
// In Summer: https://www.youtube.com/watch?v=UFatVn1hP3o

"character"
{
	"name"					"Olaf"
	"class"					"1"	
	"model"					"models/freak_fortress_2/frozen/olaf/olaf.mdl"
	"health_formula"		"(((600+n)*(n-1))^1.04)+2000"
	"ragedamage"			"2500"
	"maxspeed"				"360"	
	"sound_block_vo"		"1"
	
	"description_en" "Olaf:\nFrom the 2013 animated film ''Frozen''\n \nTeleport: Alt-fire, look up and release.\nWeightdown: Crouch & look down\nRAGE (Snowballs): Call Medic to activate.\n \nHAPPY NEW YEARS 2016! ~SHADoW NiNE TR3S"
	
	"weapon1"
	{
		"name"		"tf_weapon_bat"
		"index"		"317"
		"show"		"1"
	}		

	
    "ability1" 
    { 
        "name" "scalemodel" 
        "arg1" "0.7"  // a float value. put -1.0 for random value between 0.7 and 1.8 
        "plugin_name" "ff2_bosstweaks" 
    }
	
	"ability2"
	{
		"name" "dynamic_teleport"
		
		// slot is not used
		"arg1"	"2.0" // charge time (fast)
		"arg2"	"30.0" // teleport cooldown. it's meant to be painful.
		"arg6"	"30.0" // initial delay before use
		"arg7"	"100.0" // min damage before emergency teleport becomes available
		"arg8"	"1" // 1 = try teleporting above the target first, 0 = don't
		"arg9"	"1" // 1 = try teleporting to the side of the target first, 0 = don't (note that in rare cases the hale may end up falling when they teleport. this will only happen if the player is by a steep non-90 degree slope)
		"arg10"	"1.0" // duration of stun. can be zero.
		
		"arg17"	"EMERGENCY TELEPORT! Look up, press and release ALT-FIRE." // emergency teleport message message
		"arg18"	"Teleport is not ready. %.1f seconds remaining." // cooldown message
		"arg19"	"Teleport is ready. %.0f percent charged." // 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"
	}
	
	"ability4"
	{
		"name"	"dynamic_melee_management"
		
		"arg1"	"tf_weapon_bat"
		"arg2"	"317"
		"arg3"	"15 ; 0 ; 2 ; 1.20 ; 250 ; 1 ; 326 ; 1.2 ; 137 ; 3.0"
		"arg4"	"1" 
		
		// 15 ; 0 - no random critical hits
		// 2 ; 1.20 - 20% damage bonus
		// 250 ; 1 - gives triple jump
		// 326 ; 1.2 - winger jump height
		// 137 ; 3.0 - triple damage vs buildings, should allow him to 3-shot a level 3
		
		"plugin_name"	"ff2_dynamic_defaults"
	}
	
	"ability5"
	{
		"name"	"special_olaf"
		"arg1"	"5.0"												// Wet Duration (from melee hit)
		"arg2"	"2.0"												// How many seconds to be frozen
		"plugin_name"	"ff2_frozen"
	}
	
	"ability6"
	{
		"name" "rage_madmilk"
		"arg1" "222"  //index
		"arg2" "10"   //ammo
		"plugin_name"	"m7_customizable"
	}
	
    "ability7"
    {
        "name"         "replace_projectile"
        "arg1"         "tf_projectile_jar_milk"   //name of the projectile to replace the model of
        "arg2"         "models/freak_fortress_2/frozen/olaf/snowball.mdl"   //replacement model
        "arg3"         "2.0"  //model scale
        "plugin_name"  "ff2_replaceprojectile"
    }  
	
	// models, sounds, whatever come later
	"sound_precache"
	{
		"1"	"freak_fortress_2/frozen/doyouwannabuildasnowman.mp3"
		"2"	"freak_fortress_2/frozen/insummer.mp3"
	}	
	"sound_begin"
	{
		"1" "freak_fortress_2/frozen/olaf/intro.mp3"
	}	
	"sound_hit"
	{
		"1"	"freak_fortress_2/frozen/olaf/kill.mp3"
	}
	"sound_win"
	{
		"1"	"freak_fortress_2/frozen/olaf/win_fix.mp3"
	}
	"sound_death"
	{
		"1"	"freak_fortress_2/frozen/olaf/defeat_fix.mp3"
	}
	"sound_fail"
	{
		"1"	"freak_fortress_2/frozen/olaf/defeat_fix.mp3"
	}
	"sound_ability"
	{
		"1"	 "freak_fortress_2/frozen/olaf/kill.mp3"
		"2"	 "freak_fortress_2/frozen/olaf/jump_fix.mp3"
		"slot2"	"1"
	}
	"sound_bgm"
	{
		"path1"	"freak_fortress_2/frozen/doyouwannabuildasnowman.mp3"
		"time1"	"210.2"
		"path2"	"freak_fortress_2/frozen/insummer.mp3"
		"time2"	"115.2"
	}

	"mod_download"
	{
		"1"	"models/freak_fortress_2/frozen/olaf/olaf"
		"2" "models/freak_fortress_2/frozen/olaf/snowball"
	}
	"mod_precache"
	{
		"1"	"models/freak_fortress_2/frozen/olaf/olaf.mdl"
		"2" "models/freak_fortress_2/frozen/olaf/snowball.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"
	}
	"download"
	{
		"1"	"models/freak_fortress_2/frozen/olaf/olaf.phy"
		"2" "models/freak_fortress_2/frozen/olaf/snowball.phy"
		
		"3" "sound/freak_fortress_2/frozen/doyouwannabuildasnowman.mp3"
		"4" "sound/freak_fortress_2/frozen/insummer.mp3"
		
		"5" "sound/freak_fortress_2/frozen/olaf/intro.mp3"
		"6"	"sound/freak_fortress_2/frozen/olaf/kill.mp3"
		"7"	"sound/freak_fortress_2/frozen/olaf/win_fix.mp3"
		"8"	"sound/freak_fortress_2/frozen/olaf/defeat_fix.mp3"
		"9"	"sound/freak_fortress_2/frozen/olaf/jump_fix.mp3"
	}
}