WaveSchedule   
{
	PrecacheParticle "raygun_projectile_red_crit_trail"  
	PrecacheParticle "spell_fireball_small_red"  

	PointTemplates   
	{
		ScirptInclude
		{
			OnSpawnOutput
            {
                Target tf_gamerules
                Action RunScriptCode
                Param "IncludeScript(`overclock_vscripts_stardust.nut`)"
            }
		}
	}

	SpawnTemplate ScirptInclude   

	//rocket launcher
	
	DisallowUpgrade   
	{
		Upgrade	"cannot giftwrap"  // Upgrade name. In case of extended upgrades, the name of the attribute
		MaxLevel 0 // Maximum allowed level
		IfUpgradePresent // Other upgrades that should not be present
		{
			"clip size bonus upgrade" 1 // "clip size upgrade atomic" at level 1 or more blocks this upgrade 
		}
	}
	DisallowUpgrade      
	{
		Upgrade	"clip size bonus upgrade" // Upgrade name. In case of extended upgrades, the name of the attribute
		MaxLevel 0 // Maximum allowed level
		IfUpgradePresent // Other upgrades that should not be present
		{
			"cannot giftwrap" 1 // "damage bonus hidden" at level 1 or more blocks this upgrade 
		}
	}

	DisallowUpgrade   
	{
		Upgrade	"cannot giftwrap"  // Upgrade name. In case of extended upgrades, the name of the attribute
		MaxLevel 0 // Maximum allowed level
		IfUpgradePresent // Other upgrades that should not be present
		{
			"clip size upgrade atomic" 1 // "clip size upgrade atomic" at level 1 or more blocks this upgrade 
		}
	}
	DisallowUpgrade      
	{
		Upgrade	"clip size upgrade atomic" // Upgrade name. In case of extended upgrades, the name of the attribute
		MaxLevel 0 // Maximum allowed level
		IfUpgradePresent // Other upgrades that should not be present
		{
			"cannot giftwrap" 1 // "damage bonus hidden" at level 1 or more blocks this upgrade 
		}
	}

	//gunslinger

	DisallowUpgrade   
	{
		Upgrade	"engy sentry radius increased"  
		MaxLevel 0 
		IfUpgradePresent 
		{
			"engy disposable sentries" 1 
		}
	}
	
	DisallowUpgrade      
	{
		Upgrade	"engy disposable sentries" 
		MaxLevel 0
		IfUpgradePresent 
		{
			"engy sentry radius increased" 1 
		}
	}

    ExtendedUpgrades  
    {
        MaxUpgradesTier 
        {
            1 1 
        }


		//scout
		Scatter
		{
			Name "Unstable: Heavy Handcannon" 
			Attribute "bullets per shot bonus"
			Cap 1.5
			Increment 0.5
			Cost 0
			Description "+50% more bullets per shot, +25% more accurate -50% healing recieved -20% slower firing speed" 
			Tier 1
			SecondaryAttributes
			{
				"weapon spread bonus" 0.25
				"healing received penalty" -0.5
				"fire rate penalty" 0.2
			}
            AllowedWeapons
			{
				Classname TF_WEAPON_SCATTERGUN
				Itemname "Baby Face's Blaster"
			}
			DisallowedWeapons
			{
				SimilartoItem "The Force-a-Nature"
				Itemname "The Soda Popper"
			}
		}
		Boomstick
		{
			Name "Unstable: Combo Breaker" 
			Attribute "mult crit dmg"
			Cap 1.75
			Increment 0.75
			Cost 0
			Description "+75% Critical damage bonus -No Knockback on Force-a-Nature -50% Shorter hype duration -25% damage penalty" 
			Tier 1
			SecondaryAttributes
			{
				"damage penalty" -0.25
				"scattergun has knockback" -1
				"increase buff duration HIDDEN" -0.5
				"special item description" "-50% Shorter Hype duration"
			}
            AllowedWeapons
			{
				SimilartoItem "The Force-a-Nature"
				Itemname "The Soda Popper"
			}
		}
		// ReplicaFAN
		// {
		// 	Name "Stable: Replica Module" 
		// 	Attribute "bullets per shot bonus"
		// 	Cap 2
		// 	Increment 0.8
		// 	Cost 0
		// 	Description "(i)Uses Giant FAN Scout +200 Health -15% Bigger -No double jump" 
		// 	Tier 1
		// 	SecondaryAttributes
		// 	{
		// 		"reload time increased" 0.7
		// 		"scattergun knockback mult" 5
		// 		"damage penalty" -0.65
		// 		"weapon spread bonus" 0.6
		// 		"move speed bonus" 0.1
		// 		"max health additive bonus" 200
		// 		"model scale" 1.15
		// 		"no double jump" 1
		// 	}
        //     AllowedWeapons
		// 	{
		// 		SimilartoItem "The Force-a-Nature"
		// 	}
		// }
		Shortstop
		{
			Name "Unstable: Life Leach" 
			Attribute "reload time increased"
			Cap 1.5
			Increment 0.5
			Cost 0
			Description "+40% damage returned as health +25% faster firing speed -50% slower reload" 
			Tier 1
			SecondaryAttributes
			{
				"fire rate bonus" -0.25
				"damage returns as health" 0.4
			}
            AllowedWeapons
			{
				Itemname "The Shortstop"
			}
		}
		BFB
		{
			Name "Unstable: Slow Start" 
			Attribute "move speed penalty"
			Cap 0.75
			Increment -0.15
			Cost 0
			Description "+Boost not reduced on hit +34% clip size +Speed boost on hit -15% slower move speed -No double jump" 
			Tier 1
			SecondaryAttributes
			{
				"no double jump" 1
				"clip size penalty" 0.34
				"speed_boost_on_hit" 3
			}
            AllowedWeapons
			{
				Itemname "Baby Face's Blaster"
			}
		}
		Cleaver 
		{
			Name "Clean: Titanium Blade" 
			Attribute "always crit"
			Cap 1
			Increment 1
			Cost 0
			Description "+Always crit +On Hit: Apply Mad Milk for 8s" 
			Tier 1
			SecondaryAttributes
			{
				"mult dmg vs giants" 1
				"add cond on hit" 27
				"add cond on hit duration" 8
				"special item description" "+Applies Mad Milk on hit"
			}
            AllowedWeapons
			{
				SimilartoItem "The Flying Guillotine"
			}
		}
		//soldier
		RocketLauncher
		{
			Name "Unstable: Rocketeer Musketeer" 
			Attribute "cannot giftwrap"
			Cap 1
			Increment 1
			Cost 0
			Description "(i)Rockets start slow, then accelerate +175% damage on direct hit -35% damage penalty -75% clip size -100% slower reload" 
			Tier 1
			OnUpgrade 
			{
				Output "!activator,$regenerate,,0"
			}
			OnRestore 
			{
				Output "!activator,$regenerate,,0"
			}
			SecondaryAttributes
			{
				"projectile speed decreased" -0.8
				"projectile acceleration" 2250
				"projectile acceleration start time" 0.75
				"reload time increased" 1
				"cannot giftwrap" 1
				"mult dmg direct hit" 2.75
				"mod max primary clip override" 1
				"damage penalty" -0.35
				"projectile trail particle" "~raygun_projectile_red_crit_trail"
				"explosion particle" "taunt_yeti_fistslam"
				"explosion particle on direct hit" "asplode_hoodoo_burning_debris"
			}
            AllowedWeapons
			{
				Classname TF_WEAPON_ROCKETLAUNCHER
				//Itemname "the cow mangler 5000"
				Itemname "the direct hit"
			}
		}
		ManglerRL
		{
			Name "Unstable: Rocketeer Musketeer" 
			Attribute "cannot giftwrap"
			Cap 1
			Increment 1
			Cost 0
			Description "(i)Rockets start slow, then accelerate +175% damage on direct hit -55% damage penalty -75% clip size -100% slower reload" 
			Tier 1
			OnUpgrade 
			{
				Output "!activator,$regenerate,,0"
			}
			OnRestore 
			{
				Output "!activator,$regenerate,,0"
			}
			SecondaryAttributes
			{
				"projectile speed decreased" -0.8
				"projectile acceleration" 2250
				"projectile acceleration start time" 0.75
				"reload time increased" 1
				"mult dmg direct hit" 2.75
				"damage bonus hidden" -0.55
				"reload full clip at once" 1
				"mod max primary clip override" 1
				"fire full clip at once" 1
				"penetrate teammates" 1
				"ignores other projectiles" 1
				"damage penalty" -0.55
				// "projectile trail particle" "~raygun_projectile_red_crit_trail"
				"explosion particle" "skull_island_embers"
				"explosion particle on direct hit" "skull_island_embers"
			}
            AllowedWeapons
			{
				Itemname "the cow mangler 5000"
			}
		}
		// ReplicaBB
		// {
		// 	Name "Stable: Replica Module" 
		// 	Attribute "mult dmg direct hit"
		// 	Cap 2.75
		// 	Increment 1.75
		// 	Cost 0
		// 	Description "(i)Use Giant Robot Black Box +200 Max Health -20% move speed -15% bigger" 
		// 	Tier 1

		// 	SecondaryAttributes
		// 	{
		// 		"max health additive bonus" 200
		// 		"model scale" 1.15
		// 		"no double jump" 1
		// 		"hold fire until full reload" 2
		// 		"move speed penalty" -0.2

		// 		"damage penalty" -0.45
		// 		"fire rate bonus" -1
		// 		"reload time increased" 0.6
		// 		"blast radius increased" 0.25
		// 		"Projectile speed decreased" 0.1
		// 		"projectile spread angle penalty" 4
		// 		"heal on hit for rapidfire" 1000
		// 	}
        //     AllowedWeapons
		// 	{
		// 		Itemname "the black box"
		// 	}
		// }
		Airstrike // cactus overclock
		{
			Name "Unstable Mod: Smart Rockets"
			Attribute "rocket jump damage reduction"
			Cap 1
			Increment 0.15
			Cost 0
			SecondaryAttributes 
			{
				"rocketjump attackrate bonus" -0.15
				"mod projectile heat follow crosshair" 1
				"mod projectile heat seek power" 360
				"clip size penalty" -0.5
				"damage penalty" -0.15
				"Projectile speed decreased" -0.20
				"projectile detonate time" 2.5
			}
			Description "+15% increase to rocket jump bonuses +Rockets follow cross-hair -50% clip size -20% slower projectile speed -no reduced self blast damage" 
			Tier 1
			AllowedWeapons
			{
				ItemName "The Air Strike"
			}
		}
		//pyro
		Flamer
		{
			Name "Unstable: Flying Dragon" 
			Attribute "mod crit while airborne"
			Cap 1
			Increment 1
			Cost 0
			Description "+Crit while under Jetpack +Pierce resistences -60% damage penalty vs Tanks -30% damage penalty" 
			Tier 1
			SecondaryAttributes
			{
				"dmg pierces resists absorbs" 1
				"mult dmg vs tanks" -0.6
				"damage penalty" -0.3
			}
            AllowedWeapons
			{
				ItemName "The Dragon's Fury"
				ClassName TF_WEAPON_FLAMETHROWER 
				ItemName "Festive Flamethrower 2011"
				Itemname "TF_WEAPON_FLAMETHROWER"
			}
			DisallowedWeapons // Disallow those weapons
			{
				ItemName "The Phlogistinator"
				ItemName "Festive Backburner 2014"
				Itemname "The Backburner"
			}
		}
		Jetpack
		{
			Name "Clean: Winged Menace" 
			Attribute "parachute attribute"
			Cap 1
			Increment 1
			Cost 0
			Description "+Gain B.A.S.E. Jumper parachute +25 max health +25% increased jump height x3.5 increased air control" 
			Tier 1
			
			SecondaryAttributes
			{
				"max health additive bonus" 25
				"increased jump height" 0.25
				"parachute redeploy" 1
				"increased air control" 5
			}
            AllowedWeapons
			{
				ItemName "The Thermal Thruster"
			}
		}
		//demo
		GrenadeLauncher 
		{
			Name "Unstable Mod: Gravity Bombs"
			Attribute "cannot giftwrap"
			Cap 1
			Increment 1
			Cost 0
			OnUpgrade 
			{
				Output "!activator,$regenerate,,0"
			}
			OnRestore 
			{
				Output "!activator,$regenerate,,0"
			}
			SecondaryAttributes 
			{
				"clip size penalty" -0.5
				"grenade bounce speed" 0.8
				"fire rate bonus HIDDEN" -0.8
				"reload time decreased" -0.2
				"projectile detonate time" 0.35
				"Projectile speed increased HIDDEN" 3
				"grenade launcher mortar mode" -1
				"hold fire until full reload" 2
				"CARD: damage bonus" 3
			}
			Description "(i)Bombs become highly bouncy and explode after a short time -Disable Loose Cannon charge" 
			Tier 1
			AllowedWeapons
			{
				Classname tf_weapon_grenadelauncher
				Itemname "the loose cannon"
			}
			DisallowedWeapons
			{
				Itemname "The Loch-n-Load"
			}
		}
		LochnLoad 
		{
			Name "Unstable Mod: Rolling Thunder"
			Attribute "mod crit while airborne"
			Cap 1
			Increment 1
			Cost 0
			OnUpgrade 
			{
				Output "!activator,$regenerate,,0"
			}
			OnRestore 
			{
				Output "!activator,$regenerate,,0"
			}
			SecondaryAttributes 
			{
				"fire rate bonus hidden" -0.25
				"blast radius decreased" -0.5
				"clip size penalty" 0.25
				"mod max primary clip override" 4
				"damage penalty" -0.25
			}
			Description "+Crits while sticky jumping +25% faster firing speed +No clip size penalty -75% blast radius -25% damage penalty" 
			Tier 1
			AllowedWeapons
			{
				Itemname "The Loch-n-Load"
			}
		}
		//heavy
		Minigun 
		{
			Name "Unstable Mod: Lead Storm"
			Attribute "card: damage bonus"
			Cap 1.5
			Increment 0.5
			Cost 0
			OnUpgrade 
			{
				Output "!activator,$regenerate,,0"
			}
			OnRestore 
			{
				Output "!activator,$regenerate,,0"
			}
			SecondaryAttributes 
			{
				"mod max primary clip override" 50
				"minigun spinup time increased" 0.5
			}
			Description "+50% damage bonus, -50% slower spin up -Uses clip size, spin down to reload" 
			Tier 1
			AllowedWeapons
			{
				Classname TF_WEAPON_MINIGUN
			}
		}
		//engie
		ShotgunA // dr cactus overclock
		{
			Name "Unstable Mod: Rescue Attachment"
			Attribute "engineer building teleporting pickup"
			Cap 100
			Increment 100
			Cost 0
			SecondaryAttributes 
			{
				"mark for death on building pickup" 1
			}
			Description "+Use 100 metal to pickup building from long range -Self mark for death when hauling buildings" 
			Tier 1
			AllowPlayerClass Engineer
			AllowedWeapons
			{
				Slot Primary
			}
			DisallowedWeapons
			{
				Itemname "the rescue ranger"
				ItemName "The Widowmaker"
			}
		}
		// Pomson
		// {
		// 	Name "Unstable Mod: Bitter Burn"
		// 	Attribute "crit vs burning players"
		// 	Cap 1
		// 	Increment 1
		// 	Cost 0
		// 	SecondaryAttributes 
		// 	{
		// 		"projectile trail particle" "~spell_fireball_small_red"
		// 		"explosion particle on direct hit" "taunt_pyro_headbutt_flame"
		// 	}
		// 	Description "(i)Projectiles become " 
		// 	Tier 1
		// 	AllowPlayerClass Engineer
		// 	AllowedWeapons
		// 	{
		// 		ItemName "The Pomson 6000"
		// 	}
		// }
		Gunslinger
		{
			Name "Unstable Mod: Fireball Sentry"
			Attribute "engy sentry radius increased"
			Cap 0.5
			Increment -0.5
			Cost 0
			SecondaryAttributes 
			{
				"sentry bullet weapon" "The Dragon's Fury"
				"engy building health bonus" 2
				"special item description" "Sentry attacks with Dragon Fury Fireballs -No Disposable"
			}
			Description "+Use Dragon Sentry +200% sentry health -50% sentry range -No disposable" 
			Tier 1
			AllowedWeapons
			{
				ItemName "The Gunslinger"
			}
		}
		//medic
		Medigun
		{
			Name "Unstable Mod: Microwave Beam"
			Attribute "medigun attack enemy" 
			Cap 1
			Increment 1
			Cost 0

			SecondaryAttributes 
			{
				"medigun particle enemy" "~bombonomicon_spell_trail"
				"add cond on hit" 123
				"fire input on kill" "!activator^$AddItemAttribute^explode_on_ignite|1|1"
				"fire input on hit" "!activator^$RemoveItemAttribute^explode_on_ignite|1"
				"mod see enemy health" 1
				"special item description" "On Enemy heal: Cause target to explode and disables Explode Mode, if `Explode Mode` is enabled"
				"special item description 2" "On Kill: Enable `Explode Mode`, causing enemies to combust upon healing them."
				"special item description 3" "-50% shield duration"
				"increase buff duration HIDDEN" -0.5
				"mult bleeding dmg" -0.61
			}
			Description "+Can now drain enemy life, which applies afterburn (i)Explosive Gas module +Can see enemy health -50% shield duration" 
			Tier 1
			AllowedWeapons
			{
				ItemName "The Kritzkrieg"
				ClassName TF_WEAPON_MEDIGUN
				ItemName "Festive Medigun 2011"
				ItemName "The Quick-Fix"
				ItemName "The Vaccinator"
			}
		}
		//sniper 
		SniperRifle
		{
			Name "Unstable Mod: Brain Blast"
			Attribute "headshot damage increase" 
			Cap 2
			Increment 1
			Cost 0

			SecondaryAttributes 
			{
				"mult bleeding dmg" -0.5
			}
			Description "+100% increased headshot damage -50% Explosive Headshot damage" 
			Tier 1
			AllowedWeapons
			{
				ClassName TF_WEAPON_SNIPERRIFLE
				Itemname "The Bazaar Bargain"
			}
		}
		//spy
		Knife
		{
			Name "Unstable Mod: Explosive Backstab"
			Attribute "never craftable" 
			Cap 1
			Increment 1
			Cost 0

			SecondaryAttributes 
			{
				"fire rate penalty" 1
				"mult dmg vs giants" -0.5
				"special item description" "On non-Giant backstab: Cause a small explosion that deals damage based on Armor penetration upgrade."
				"special item description 2" "Explosion is affected by crit modifiers."
			}
			Description "+Backstabing non-Giants causes explosion -100% fire rate penalty -50% backstab damage vs Giants" 
			Tier 1
			AllowedWeapons
			{
				ClassName TF_WEAPON_KNIFE
			}
		}
    }
}