// Let's just say this was a result of too much time in my hands....
//											~Koishi/SHADoW93

// CFG: Koishi (SHADoW NiNE TR3S)
// Model: Koishi (SHADoW NiNE TR3S), Deathreus, Maximilian

// BGM: Funky Fish and Cerror - Garbage on TiTAN
//		https://www.youtube.com/watch?v=vVMdRsRyRo0

// Dependencies:
// Dynamic Defaults: https://forums.alliedmods.net/showthread.php?t=258090
// War3: https://forums.alliedmods.net/showpost.php?p=2334852&postcount=4

//	Just tweak him if you find him a bit too weak or too powerful

"character"
{
	"name" "BeepMan"
	"class" "9"
	"model" "models/freak_fortress_2/shadow93/beep/beepman2.mdl"
	"ragedist" "500.0"
	"ragedamage" "2200"
	"health_formula"		"(((500+n)*(n-1))^1.04)+1900"
	"maxspeed" "300"
	"pickups"  "3"
	"description_en" "BeepMan:\n''Ya'll ought to stop messing with my contraptions before one of ya'll gets hurt''\nTeleport: Crouch, look up, wait for the meter to charge to 100% and stand up.\nRAGE (I/O Error):\nCall for Medic or taunt, when your Rage Meter is full.\nRAGE Info: Players within range has their keypresses scrambled for a few seconds\nSpecial (Hijack):\nPress Reload, costs 25% RAGE to hijack a sentry\nEntangle: Press SPECIAL and aim at a player to use."

	"weapon1"
	{
		"name"	"tf_weapon_laser_pointer"
		"index"	"1086"
		"show"	"1"
		"attributes" "128 ; 1 ; 113 ; 50 ; 205 ; 1.5"
	}
	
	"weapon2"
	{
		"name" "tf_weapon_robot_arm"
		"index" "142"
		"show"	"1"
		"attributes"	"205 ; 0.75 ; 286 ; 2 ; 287 ; 0.5 ; 343 ; 1.25 ; 124 ; 1 ; 295 ; 1 ; 1 ; 0.6"
	}

	"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_teleport"
		
		// slot is not used
		"arg1"	"2.0" // charge time
		"arg2"	"10.0" // teleport cooldown
		"arg5"	"0" // uses remaining. set to zero for infinite.
		"arg6"	"5.0" // initial delay before use. probably will be same as arg2
		"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.5" // duration of stun. can be zero.
		"arg11"	"0" // 1 = use RELOAD instead of ALT-FIRE		
		"arg16"	"No one left to teleport to! (spectator glitch)" // teleport fail message. it'll only happen if arg12 is set to 1, or the spectator glitch happens.
		"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.\nHold ALT-FIRE until fully charged, look up, and release." // charge message
		
		"plugin_name"	"ff2_dynamic_defaults"
	}
	"ability3"
	{
		"name"	"dynamic_speed_management"
		"arg1"	"300.0" // start speed
		"arg2"	"400.0" // end speed
		"plugin_name"	"ff2_dynamic_defaults"
	}
	"ability4"
	{
		"name" "rage_preventtaunt"
		"plugin_name"	"default_abilities"
	}
	"ability5"
	{
		"name"	"rage_scramble"
		"arg1"	"800.0" // Range
		"arg2"	"7.0"	// Duration
		"plugin_name"	"s93_beepman"
	}
	"ability6"
	{
		"name"	"special_hijacksg"
		"arg1"	"1"		// Button Mode (1 - Reload, 2 - Special)
		"arg2"	"50.0"	// RAGE Cost
		"arg3"	"400" 	// Hijack Range
		"arg4"	"30.0"	// Cooldown between uses 
		"arg5"	"5.0"	// Grace Period
		"plugin_name"	"s93_beepman"
	}
	"ability7"
	{
		"name"	"special_dissolve"
		"plugin_name"	"default_abilities"
	}
	"ability8"  
	{  
		"name" "entangle_config"  
		"arg1"	"4"		// ActivationKey     (1 = LeftClick. 2 = RightClick. 3 = ReloadButton. 4 = Special, 5 = Use) 
		"arg2"	"3"		// No. of Skills     (No. of skill to be given per rage) 
		"arg3"	"3.0"	// Entangle Time        (No. of seconds that will Entangle the entangled player.) 
		"arg4"	"1"		// Should skills stack? 1 - yes, 0 - no

		"arg6"	"0"		// Entangle prevents player from firing weapon? 1: yes, 0: no

		// args 7-10 are for entangle beam color
		"arg7"	"255"		// RED value (0-255)
		"arg8"	"25"		// GREEN value (0-255)				
		"arg9"	"25"		// BLUE value (0-255)
		"arg10"	"255"		// ALPHA value (0-255)
      
		"plugin_name"    "ff2_otokiru_wc3"  
 	}
    "ability9"  
    {  
        "name" "entangle_activator"  
        "arg0"    "3"    // Do not Change! (Activate when button is pressed.) 
        "buttonmode" "2" // Do not Change! (Custom button is being used.) 
        "plugin_name"    "ff2_otokiru_wc3"  
    }  
	
	"sound_stabbed"
	{
		"1" "vo/engineer_autodejectedtie01.mp3"
	}
	"sound_kill_buildable"
	{
		"1" "misc/ks_tier_03_death.wav"
	}
	"sound_death"
	{
		"1"	"misc/ks_tier_01_death.wav"
	}
	"sound_hit"
	{
		"1" "misc/ks_tier_01_kill.wav"
	}
	"sound_kspree"
	{
		"1" "misc/ks_tier_02.wav"
		"2" "misc/ks_tier_03.wav"
	}
	"sound_lastman"
	{
		"1"	"vo/engineer_dominationscout02.mp3"
		"2" "vo/engineer_dominationspy01.mp3"
		"3" "vo/taunts/engineer_taunts12.mp3"
	}
	"sound_begin"
	{
		"1" "vo/engineer_dominationsniper01.mp3"
		"2" "vo/engineer_littlesentry01.mp3"
		"3" "vo/taunts/engineer_taunts11.mp3"
	}
	"sound_fail"
	{
		"1" "misc/ks_tier_01_death.wav"
	}
	"sound_ability"
	{
		"1"	"misc/ks_tier_02_kill_01.wav"
		"2"	 "misc/ks_tier_02_kill_02.wav"
		"slot2" "1"
	}
	"sound_precache"
	{
		"1" "freak_fortress_2/shadow93/garbageontitan.mp3"
	}
	"sound_bgm"
	{
		"path1"	"freak_fortress_2/shadow93/garbageontitan.mp3"
		"time1"	"178.7"
	}
	"mod_download"
	{
		"1" "models/freak_fortress_2/shadow93/beep/beepman2"
	}
	"download"
	{
		
		"1" "models/freak_fortress_2/shadow93/beep/beepman2.phy"
		"2"	"sound/freak_fortress_2/shadow93/garbageontitan.mp3"
	}
}