// MAD Spy vs Spy
// CFG By Koishi, original by DaftPan & Scoot Sauce
// Model by Ravensbro

// Dependencies:
// Dynamic Defaults: https://forums.alliedmods.net/showthread.php?t=258090
// Replace Projectile: https://forums.alliedmods.net/showthread.php?t=215244

// BGMs:
// SPY vs. SPY (1984) - C64 LIVE REMIX [LukHash]: https://www.youtube.com/watch?v=sVtJGobSZKM
// Spy vs Spy (CPCGamer remix): https://www.youtube.com/watch?v=dClDNpM5Jio

"character"
{
	
	"name"	"MAD White Spy"
	"class"	"8"
	"model"	"models/freak_fortress_2/mad_white_and_black_spy/white_spy/mad_white_spy.mdl"
	"health_formula"	"(((500+n)*(n-1))^1.0341)+1500"	
	"maxspeed"	"360"
	"ragedamage" "2100"
	"sound_block_vo" "1"
	"description_en"	"The White Spy:\nFrom the Mad Comics, and the Black Spy's rival\nSuper Jump: RELOAD, look up and stand up.\nWeigh-down: in midair, look down and crouch.\nYou have a cloak, Use it to your advantage!\nRage (Totally not a revolver): taunt or call medic when the Rage Meter is full.\nRage Info: Really, it's not quite a revolver."
	"weapon1"
	{
		"name" "tf_weapon_invis"
		"index" "947"
		"show"	"1"
	}
	"weapon2"
	{
		"name"	"tf_weapon_knife"
		"index"	"461"
		"show"	"1"
		"attributes"	"158 ; 10"
	}
	"ability1"
	{
		"name"	"rage_preventtaunt"
		"plugin_name"	"default_abilities"
	}
	"ability2"
	{
		"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 your weightdown!"
		
		"plugin_name"	"ff2_dynamic_defaults"
	}
	"ability3"
	{
		"name" "dynamic_jump"

		// slot is ignored.
		"arg1"	"1.5" // charge time, same as charge_bravejump
		"arg2"	"7.0" // cooldown, same as charge_bravejump
		"arg3"	"0" // 1 = disabled by default (can only be re-enabled in code)
		"arg4"	"0" // number of uses. set to 0 to be infinite.
		"arg5"	"3.0" // cooldown before first use
		"arg6"	"100.0" // minimum damage before super duper jump
		"arg7"	"0" // 1 = use new jump
		"arg8"	"1.2" // jump intensity multiplier. unlike charge_bravejump, this works for oldjump too
		"arg9"	"1" // 1 = use RELOAD instead of ALT-FIRE
		"arg10"	"0" // 1 = don't affect weighdown's cooldown
		
		// HUD strings
		"arg17"	"Super DUPER Jump ready! Look up, press and release RELOAD." // super duper jump message
		"arg18"	"Super Jump will be ready in %.1f seconds remaining." // cooldown message
		"arg19"	"Super Jump is %.0f percent charged.\nLook up, press and release RELOAD." // charge message
		
		"plugin_name"	"ff2_dynamic_defaults"
	}
	"ability4"
	{
		"name"	"rage_new_weapon"
		"arg0"	"0"
		"arg1"	"tf_weapon_pipebomblauncher"
		"arg2"	"24"
		"arg3"	"2 ; 1.5 ; 6 ; 0.5 ; 114 ; 1 ; 121 ; 1 ; 137 ; 25.0 ; 99 ; 1.5"
		"arg4"	"1"
		"arg6"	"1"
		"arg7"	"6"
		"plugin_name"	"special_noanims"
	}
    "ability5"
    {
        "name"         "replace_projectile"
        "arg1"         "tf_projectile_pipe_remote"   //name of the projectile to replace the model of
        "arg2"         "models/freak_fortress_2/mad_white_and_black_spy/white_spy/w_tnt.mdl"   //replacement model
        "arg3"         "2.0"  //model scale
        "plugin_name"  "ff2_replaceprojectile"
    }  
    "ability6"
    {
        "name" "outtromusic"
        "plugin_name" "shadow93_abilities"
    }  
	"sound_begin"
	{
		"1"	"freak_fortress_2/madwhitespy/white_intro.wav"
	}
	"sound_win"
	{
		"1"	"freak_fortress_2/madwhitespy/win1.wav"
		"2"	"freak_fortress_2/madwhitespy/win2.wav"
	}
	"sound_lastman"
	{
		"1"	"freak_fortress_2/madwhitespy/last_man.wav"
	}
	"sound_death"
	{
		"1"	"freak_fortress_2/madwhitespy/white_fail.wav"
	}
	"sound_hit"
	{
		"1"	"freak_fortress_2/madwhitespy/you_died.wav"
	}
	"sound_kspree"
	{
		"1"	"freak_fortress_2/madwhitespy/whitespy_kspree.wav"
	}
	"sound_bgm"
	{
		"path1"	"freak_fortress_2/madwhitespy/white_theme.mp3"
		"time1"	"188.0"
		"path2"	"freak_fortress_2/madwhitespy/spyvsspy_c64.mp3"
		"time2"	"163.0"
	}
	"sound_stabbed"
	{
		"1"	"freak_fortress_2/madwhitespy/bkstab.wav"
	}
	"sound_ability"
	{
		"1"	"freak_fortress_2/madwhitespy/white_intro.wav"
		"slot1"	"1"
	}
	"sound_precache"
	{
		"1"	"freak_fortress_2/madwhitespy/white_theme.mp3"
		"1"	"freak_fortress_2/madwhitespy/spyvsspy_c64.mp3"
	}
	"mod_precache"
	{
		"1" "models/freak_fortress_2/mad_white_and_black_spy/white_spy/w_tnt.mdl"
	}
	"mod_download"
	{
		"1"	"models/freak_fortress_2/mad_white_and_black_spy/white_spy/mad_white_spy"
		"2"	"models/freak_fortress_2/mad_white_and_black_spy/white_spy/w_tnt"
	}
	"mat_download"
	{
		"1"	"materials/freak_fortress_2/mad_white_and_black_spy/white_spy/clock_index"
		"2"	"materials/freak_fortress_2/mad_white_and_black_spy/white_spy/material_0"
		"3"	"materials/freak_fortress_2/mad_white_and_black_spy/white_spy/tnt_red"
		"4"	"materials/freak_fortress_2/mad_white_and_black_spy/white_spy/white"
		"5"	"materials/freak_fortress_2/mad_white_and_black_spy/white_spy/white_spy"
	}

	"download"
	{
		"1"	"sound/freak_fortress_2/madwhitespy/white_intro.wav"
		"2"	"sound/freak_fortress_2/madwhitespy/win1.wav"
		"3"	"sound/freak_fortress_2/madwhitespy/win2.wav"
		"4"	"sound/freak_fortress_2/madwhitespy/white_fail.wav"
		"5"	"sound/freak_fortress_2/madwhitespy/you_died.wav"
		"6"	"sound/freak_fortress_2/madwhitespy/whitespy_kspree.wav"
		"7"	"sound/freak_fortress_2/madwhitespy/rage.wav"
		"8"	"sound/freak_fortress_2/madwhitespy/white_theme.mp3"
		"9"	"sound/freak_fortress_2/madwhitespy/bkstab.wav"
		"10"	"materials/freak_fortress_2/mad_white_and_black_spy/white_spy/clock_index_normal.vtf"
		"11"	"materials/freak_fortress_2/mad_white_and_black_spy/white_spy/normal.vtf"
		"12"	"materials/freak_fortress_2/mad_white_and_black_spy/white_spy/tnt_normal.vtf"
		"13"	"models/freak_fortress_2/mad_white_and_black_spy/white_spy/mad_white_spy.phy"
		"14"	"models/freak_fortress_2/mad_white_and_black_spy/white_spy/w_tnt.phy"
		"15"	"sound/freak_fortress_2/madwhitespy/last_man.wav"
		"16"	"sound/freak_fortress_2/madwhitespy/spyvsspy_c64.mp3"
	}
}

