// FNaF Foxy The Pirate
// CFG: Koishi (SHADoW NiNE TR3S)
// Model: KingRaptor
// Improved Textures: Maximilian

// Dependencies:
// Saxton v2: https://forums.alliedmods.net/showthread.php?t=261073
// Move Speed: https://forums.alliedmods.net/showthread.php?t=263939
// TFConditions: https://forums.alliedmods.net/showthread.php?t=263598
// Overlay on kill: https://forums.alliedmods.net/showthread.php?p=2304905
// Dynamic Defaults: https://forums.alliedmods.net/showthread.php?t=258090

// BGMs:
// It's Been So Long - Living Tombstone (Internet Empire): https://www.youtube.com/watch?v=Texo5KgEOXA
// Die in a Fire - Living Tombstone: https://www.youtube.com/watch?v=AibtyCAhyQE

"character"
{
	"name"				"Foxy the Pirate"
	"class"				"9"
	"model"				"models/kustomfleetings/scout/fnaf_foxy3.mdl"
	"ragedist"			"1500.0"
	"sound_block_vo"	"1"
	"health_formula"	"(((600+n)*(n-1))^1.04)+2046"
	"ragedamage"	    "2400"
	"maxspeed"			"300.0"
	"description_en"	"Foxy the Pirate: One of the 'haunted' animatronics at Freddy Fazbear's Pizza.\nSuper Jump: alt-fire, look up and stand up.\nWeigh-down: in midair, look down and crouch.\nLunge: Aim & Press RELOAD when RAGE meter is at 25pct or greater. Costs 25% RAGE to use.\nSpeed Boost: Call Medic (or taunt) when RAGE meter is full"
	
	"weapon1"
	{
		"name"				"tf_weapon_wrench"
		"index"				"1152"
		"show"              "0"
		"attributes"	    "1 ; 0.75; 137 ; 4 ; 124 ; 1 ; 366 ; 5 ; 31 ; 3 ; 2025 ; 1"
	}
	
	// RAGE Abilities
    "ability1"
	{
		"name"	"rage_tfcondition"
		"arg1" "28 ; 20 ; 32 ; 20" // Boss conditions
		"plugin_name"	"ff2_tfcond"
	}	
	"ability2"
	{
		"name"	"rage_movespeed"
		"arg1"	"520.0" // Boss Movespeed
		"arg2"	"20.0"  // Duration
		"plugin_name"	"ff2_movespeed"
	}
	
	// On-kill ability
	"ability3"
	{
		"name"			"overlay_on_kill"
		"arg0"			"4"
        "arg1"          "freak_fortress_2/fnaf_shared/foxy_lunge" // path to overlay
        "arg2"          "4" // Duration (0 to show overlay until round end)
		"plugin_name"	"overlay_on_kill"
	}
	
	// SJ + WD
	"ability4"
	{
		"name" "dynamic_weighdown"
		"arg3"	"1.0" // the hale's normal gravity. this will practically always be 1.0
		"arg19"	"You have used weighdown!"	// strings
		"plugin_name"	"ff2_dynamic_defaults"
	}
	"ability5"
	{
		"name" "dynamic_jump"
		"arg1"	"3.5" // charge time, same as charge_bravejump
		"arg2"	"8.0" // cooldown, same as charge_bravejump
		"arg5"	"2.0" // cooldown before first use
		"arg6"	"100.0" // minimum damage before super duper jump
		"arg7"	"0" // 1 = use new jump
		"arg8"	"1.15" // jump intensity multiplier. unlike charge_bravejump, this works for oldjump too
		"arg10"	"1" // 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.\nHold ALT-FIRE, look up, and release." // charge message

		"plugin_name"	"ff2_dynamic_defaults"
	}
	"ability6"
	{
		"name"	"saxton_lunge"
		"arg2"	"30.0" // cooldown between uses
		"arg3"	"25.0" // rage cost
		"arg4"	"1100.0" // velocity of charge
		"arg5"	"202.0" // damage dealt to any player it strikes. note that players can only be struck once per rage.
		"arg6"	"1" // 1 = destroys buildings, 0 = does nothing to them
		"arg7"	"200.0" // knockback intensity, added to the hale's own velocity so keep it low
		
		// collision needs to be artificial since he needs to be able to mow through players
		// so it's ahead of them to ensure he won't be stopped by obstacles
		"arg8"	"30.0" // collision cylinder distance from origin
		"arg9"	"95.0" // collision cylinder height
		"arg10"	"60.0" // collision cylinder radius
		
		"arg11"	"freak_fortress_2/fnaf/xscream2.mp3" // rage sounds to play (up to three, semicolon separated)
		"arg12"	"weapons/fist_hit_world1.wav" // sound to play when hitting a target
		"arg13"	"taunt_headbutt_impact_stars" // effect to display when hitting a target
		
		// below allows you to constrain the hale's pitch, since numerous people expressed concern
		// about lunging straight up or down. it won't give an error, it'll just execute the move while overriding user's pitch
		"arg14"	"-45.0;45.0" // pitch min/max. if this is not set, there will be no constraints. values above abs(90) are useless
		
		// error messages
		"arg16"	"Ability is on cooldown!"
		"arg17"	"Not enough rage! %.0f rage required."
		"arg18"	"Can't use in water!" // these sorts of charge abilities suck in water, so it's blocked entirely
		"arg19"	"Can't use during weighdown!" // if hale has weighdown active, this error occurs
		
		"plugin_name"	"improved_saxton"
	}
	"ability7"
	{
		// necessary to get all these abilities in three HUDs. beyond three causes flicker.
		"name"	"saxton_huds"
		
		"arg1"	"0.62" // HUD Y
		"arg2"	"%s\n%s\n%s" // overall format of HUD. first string is health (optional), rage% is second, third+fourth+fifth are lunge, slam, and berserk
		"arg3"	"1" // if 1, display health
		"arg4"	"1" // if 1, display current rage
		"arg5"	"Lunge ability READY. Aim and RELOAD (R) to use. (%.0f rage)" // lunge ready
		"arg6"	"Lunge ability not ready." // lunge not ready. rage is optional parameter, %.0f will be accepted.
		"arg11"	"0xFFFFFF" // normal color
		"arg12"	"0xC00000" // alert color
		"arg13"	"0" // if 1, use alert color for ability not ready (this is not standard rage notification behavior)
		"arg14"	"HP: %d / %d" // health str
		"arg15"	"RAGE Meter: %.0f%%" // rage str
		"arg16"	"1" // if 1, HP alert color when HP is one third of maximum. because why the hell not.
		"plugin_name"	"improved_saxton"
	}
	"ability8"
	{
		// this ability is optional. I'm only including it to show that it exists and to document the options.
		// all arguments are also optional.
		"name"	"saxton_advanced_options"
		"arg13"	"lunge" // lunge kill name, only seen in console
		"arg17"	"lunge" // saxton lunge goomba override
		"arg18"	"lunge" // saxton lunge kill
		"plugin_name"	"improved_saxton"
	}
	"sound_precache"
	{
		"1"	"freak_fortress_2/fnaf_foxy/fnaf3.mp3"
	}
	"sound_bgm"
	{
		// Song info:
		// Name: It's Been So Long
		// Artist: Living Tombstone
		"path1"	"freak_fortress_2/fnaf/fnaf2.mp3"
		"time1"	"287.0"	
	
		// Song info:
		// Name: Die In a Fire
		// Artist: Living Tombstone ft. ElieMonty & Orko
		//"path2"	"freak_fortress_2/fnaf/fnaf3.mp3"
		//"time2"	"182.0"
	}
	"sound_begin"
	{
		"1"	"freak_fortress_2/fnaf/foxy/foxy_singing.mp3"
	}	
	"sound_death"
	{
		"1"	"freak_fortress_2/fnaf/6am.mp3"
	}
	"sound_fail"
	{
		"1"	"freak_fortress_2/fnaf/6am.mp3"
	}
	"sound_win"
	{
		"1"	"freak_fortress_2/fnaf/xscreamdeath.mp3"
	}
	"sound_kill_buildable"
	{
		"1" "freak_fortress_2/fnaf/xscream.mp3"
		"2" "freak_fortress_2/fnaf/xscream3.mp3"
	}
	"sound_kspree"
	{
		"1"	"freak_fortress_2/fnaf/foxy/foxy_singing.mp3"	
	}
	"sound_ability"
	{
		"1"	"freak_fortress_2/fnaf/xscream.mp3"
		"2" "freak_fortress_2/fnaf/xscream3.mp3"
		"3"	 "freak_fortress_2/fnaf/foxy/foxy_jump.mp3"
	    "slot3" "1"	
	}
	"sound_lastman"
	{
		"1"	"freak_fortress_2/fnaf/night5mumble.mp3"
	}
	"mod_download"
	{
		"1"	"models/kustomfleetings/scout/fnaf_foxy3"
	}
	"mat_download"
	{
		"1" "materials/freak_fortress_2/fnaf_shared/foxy_lunge"
		"2" "materials/kustomfleetings/fivenightsatfreddys/foxy/foxy_body"
		"3" "materials/kustomfleetings/fivenightsatfreddys/foxy/foxy_body_uber"
		"4" "materials/kustomfleetings/fivenightsatfreddys/foxy/foxy_body2"
		"5" "materials/kustomfleetings/fivenightsatfreddys/foxy/foxy_body2_uber"
		"6" "materials/kustomfleetings/fivenightsatfreddys/foxy/foxy_eyewhites"
		"7" "materials/kustomfleetings/fivenightsatfreddys/foxy/foxy_head"
		"8" "materials/kustomfleetings/fivenightsatfreddys/foxy/foxy_head_uber"
		"9" "materials/kustomfleetings/fivenightsatfreddys/foxy/foxy_head2"
		"10" "materials/kustomfleetings/fivenightsatfreddys/foxy/foxy_head2_uber"
		"11" "materials/kustomfleetings/fivenightsatfreddys/foxy/foxy_parts"
		"12" "materials/kustomfleetings/fivenightsatfreddys/foxy/foxy_parts_uber"
		"13" "materials/kustomfleetings/fivenightsatfreddys/foxy/foxy_parts2"
		"14" "materials/kustomfleetings/fivenightsatfreddys/foxy/foxy_parts2_uber"
		"15" "materials/kustomfleetings/fivenightsatfreddys/foxy/foxy_skeleton"
		"16" "materials/kustomfleetings/fivenightsatfreddys/foxy/mybumps"
	}
	"download"
	{	
		"1"	"models/kustomfleetings/scout/fnaf_foxy3.phy"
		"2" "sound/freak_fortress_2/fnaf/fnaf2.mp3"
		"3"	"sound/freak_fortress_2/fnaf/xscream.mp3"
		"4" "sound/freak_fortress_2/fnaf/xscream2.mp3"
		"5"	"sound/freak_fortress_2/fnaf/xscream3.mp3"
		"6"	"sound/freak_fortress_2/fnaf/xscreamdeath.mp3"
		"7"	"sound/freak_fortress_2/fnaf/night5mumble.mp3"
		"8"	"sound/freak_fortress_2/fnaf/6am.mp3"
		"9"	"sound/freak_fortress_2/fnaf/foxy/foxy_jump.mp3"
		"10" "sound/freak_fortress_2/fnaf/foxy/foxy_singing.mp3"
		//"11" "sound/freak_fortress_2/fnaf/fnaf3.mp3"
    }
}