// Note for mission makers:
// These weapons are not intended to be used alongside Dr. Cactus' Overclocks and will more than likely break something

// UPDATE 01 (02/2026)
// Finally decided to move all of these to a separate file, new weapons soon?
// Steel Slugger auto collect money on kill added
// Renamed Psychopath's Seeker to Seeker's Swarm
// Renamed Atomic Anguish to Lunatic's Leveller, reserve ammo penalty -50% -> -40%
// Removed Con-Man's Compressor (replaced with Overclock)
// Renamed Toxic Torid to Putrid Pestilence
// Renamed Veruc to Technician's Trifold
// Added Photonic Phaser - Engineer Primary from Surface Tension/Marina Mayhem
// Removed Maggie (replaced with Overclock)

// TODO: custom upgrades for Photonic Phaser - damage bonus, penetration, clip size

WaveSchedule
{
	FixSetCustomModelInput		1	 
	UpgradeStationKeepWeapons	1	 
	// Model precache
	PrecacheModel	"models\weapons\c_models\c_entrenched_gun\c_scattergun.mdl"	 
	PrecacheModel	"models\workshop\weapons\c_models\c_hornetsnest\c_atom_launcher.mdl"	 
	PrecacheModel	"models\weapons\c_models\c_howitzer\c_lochnload.mdl"	 
	PrecacheModel	"models\weapons\w_bugbait.mdl"	 
	PrecacheModel	"models\workshop\weapons\c_models\c_tactigatling\c_russian_riot.mdl"	 
	PrecacheModel	"models\workshop_partner\weapons\c_models\c_great_peace_preserver\c_dex_shotgun.mdl"	 
	PrecacheModel	"models\weapons\c_models\c_gupgun\c_leechgun.mdl"	 
	// Sound precache
	PrecacheSound	"weapons/china_lake_shoot.wav"	 
	PrecacheSound	"weapons/sven_shotgun_shoot.wav"	 
	PrecacheSound	"weapons/mp40_shoot.wav"	 
	PrecacheSound	"terraria/mechboss_laser.wav"	 
	PrecacheSound	"weapons/supernailgun_shoot.wav"	 
	// SCOUT
	CustomWeapon	 	// Scout Primary - Slug Scattergun
	{
		Name								"Steel Slugger"
		OriginalItemName					"The Back Scatter"
		"bullets per shot bonus"			0.1		// 1 pellet total
		"damage bonus HIDDEN"				8.33	// 50 damage total
		"dmg pierces resists absorbs"		1
		"can headshot"						1
		"revolver use hit locations"		1
		"collect currency on kill"			1
		"closerange backattack minicrits"	0
		"spread penalty"					1
		"custom weapon fire sound"			"=75|weapons/shotgun/shotgun_fire6.wav"
		"custom item model"					"models\weapons\c_models\c_entrenched_gun\c_scattergun.mdl"
		"special item description"			"Slug Scattergun that fires a high damage slug which can pierce resistances and deal critical damage on a headshot."
		"special item description 2"		"Doink!"
	}
	// SOLDIER
	CustomWeapon	 	// Soldier Primary - Homing Rocket Launcher
	{
		Name									"Seeker's Swarm"
		OriginalItemName						"The Liberty Launcher"
		"clip size bonus"						2.5		// 10 rockets total
		"hidden primary max ammo bonus"			1.5		// 30 reserve ammo total
		"fire rate bonus HIDDEN"				0.35
		"projectile spread angle penalty"		10
		"projectile speed decreased"			0.65
		"mod projectile heat seek power"		360
		"mod projectile heat aim error"			360
		"mod projectile heat follow crosshair"	1
		"mod projectile heat aim time"			2
		"Reload time increased"					3
		"reload full clip at once"				1
		"damage penalty"						0.5		// 45 damage total
		"blast radius decreased"				0.75
		"projectile speed increased"			1
		"rocket jump damage reduction"			1
		"custom weapon fire sound"				"=75|weapons/grenade_launcher1.wav"
		"custom item model"						"models\workshop\weapons\c_models\c_hornetsnest\c_atom_launcher.mdl"
		"special item description"				"Automatic Rocket Launcher that fires a wide spread of low damage rockets which home in on the crosshair."
		"special item description 2"			"If you run, you'll only die tired."
	}
	CustomWeapon	 	// Soldier Primary - Heavy Rocket Launcher
	{
		Name							"Lunatic's Leveller"
		OriginalItemName				"The Black Box"
		"mod no reload DISPLAY ONLY"	1
		"mod max primary clip override"	-1
		"maxammo primary reduced"		0.4		// 12 reserve ammo total
		"fire rate penalty"				2.25
		"projectile gravity"			800
		"damage bonus HIDDEN"			2		// 180 damage total
		"mult dmg vs tanks"				0.75	// 135 damage vs Tanks
		"crits_become_minicrits"		1
		"blast dmg to self increased"	1.8
		"clip size penalty"				1
		"health on radius damage"		0
		"paintkit_proto_def_index"		218		// uranium
		"set_item_texture_wear"			0		// factory new
		"custom weapon fire sound"		"=75|ambient/explosions/explode_1.wav"
		"special item description"		"Heavy Rocket Launcher that fires very high damage rockets in an arc."
		"special item description 2"	"This was not a good idea at any point in time."
	}
	// DEMOMAN
	CustomWeapon	 	// Demoman Primary - Automatic Grenade Launcher
	{
		Name								"Burst of Brimstone"
		OriginalItemName					"The Loch-n-Load"
		"clip size bonus"					1.5		// 6 grenades total
		"hidden primary max ammo bonus"		1.5		// 24 reserve ammo total
		"fire rate bonus HIDDEN"			0.45
		"projectile spread angle penalty"	2
		"projectile speed increased"		1.5
		"grenade explode on impact"			1
		"Reload time increased HIDDEN"		0.8
		"damage penalty"					0.7		// 70 damage total
		"self dmg push force decreased"		0.3
		"clip size penalty"					1
		"sticky air burst mode"				0
		"dmg bonus vs buildings"			1
		"custom weapon fire sound"			"=75|weapons/china_lake_shoot.wav"
		"custom item model"					"models\weapons\c_models\c_howitzer\c_lochnload.mdl"
		"special item description"			"Automatic Grenade Launcher that fires low damage grenades which explode on impact with a smaller blast radius."
		"special item description 2"		"Blammo!"
	}
	CustomWeapon	 	// Demoman Primary - Toxic Grenade Launcher
	{
		Name							"Putrid Pestilence"
		OriginalItemName				"Upgradeable TF_WEAPON_GRENADELAUNCHER"
		"clip size bonus"				1.5		// 6 grenades total
		"maxammo primary reduced"		0.75	// 12 reserve ammo total
		"fire rate penalty"				1.3
		"projectile speed decreased"	0.8
		"damage penalty"				0.75	// 75 damage total
		"mult dmg vs tanks"				1.6		// 120 damage vs Tanks
		"bleeding duration"				4
		"mult bleeding dmg"				2.5		// 10 damage per bleed tick
		"slow enemy on hit major"		2
		"grenade explode on impact"		1
		"self dmg push force decreased"	0.65
		"paintkit_proto_def_index"		243		// tumour toasted
		"set_item_texture_wear"			0		// factory new
		"custom weapon fire sound"		"=75|npc/antlion_grub/squashed.wav"
		"custom impact sound"			"=75|weapons/bugbait/bugbait_impact1.wav"
		"custom projectile model"		"models\weapons\w_bugbait.mdl"
		"explosion particle"			"merasmus_bomb_explosion"
		"custom kill icon"				"purgatory"
		"special item description"		"Grenade Launcher that lobs toxic bombs which slow enemies on hit and deal heavy damage over time."
		"special item description 2"	"Smelly, smelly gas!"
	}
	// HEAVY
	CustomWeapon	 	// Heavy Primary - Deflector
	{
		Name							"Bootleg Deflector"
		OriginalItemName				"Deflector"
		"minigun spinup time increased"	1.25
		"aiming movespeed increased"	1.35
		"spread penalty"				1.5
		"attack projectiles"			1
		"damage bonus"					1.1		// 9.9 damage total
		"special item description"		"Minigun that destroys projectiles in a wider spread and deals slightly more damage, but spins up slower."
		"special item description 2"	"I hate metal!"
	}
	CustomWeapon	 	// Heavy Primary - Homing Rocket Cannon
	{
		Name									"Bludger's Barrage"
		OriginalItemName						"Tomislav"
		"max health additive penalty"			-50
		"maxammo primary reduced"				0.75	// 150 reserve ammo total
		"override projectile type"				2		// rockets
		"fire rate penalty"						1.4
		"damage bonus"							2		// 18 damage total
		"mult dmg vs tanks"						3		// 54 damage vs Tanks
		"Projectile speed decreased"			0.6
		"projectile spread angle penalty"		10
		"mod projectile heat seek power"		360
		"mod projectile heat aim error"			360
		"mod projectile heat follow crosshair"	1
		"mod projectile heat aim time"			2
		"self dmg push force decreased"			0.01
		"no self blast dmg"						2
		"minigun spinup time decreased"			1
		"weapon spread bonus"					1
		"paintkit_proto_def_index"				217		// bomber soul
		"set_item_texture_wear"					0		// factory new
		"projectile trail particle"				"~tranq_distortion_trail"
		"custom kill icon"						"merasmus_zap"
		"special item description"				"Automatic Rocket Cannon that fires a wide spread of rockets which home in on the crosshair."
		"special item description 2"			"I have one question for you: EXPLOSIONS?!"
	}
	CustomWeapon	 	// Heavy Secondary - Automatic Shotgun
	{
		Name							"Soviet Slammer"
		OriginalItemName				"The Family Business"
		"mod no reload DISPLAY ONLY"	1
		"mod max primary clip override"	-1
		"maxammo secondary reduced"		0.75	// 24 reserve ammo total
		"fire rate bonus HIDDEN"		0.4
		"spread penalty"				2
		"mult dmg vs tanks"				0.5		// 3x10 damage vs Tanks
		"damage penalty"				1
		"clip size bonus"				1
		"fire rate bonus"				1
		"custom weapon fire sound"		"=55|weapons/sven_shotgun_shoot.wav"
		"custom item model"				"models\workshop\weapons\c_models\c_tactigatling\c_russian_riot.mdl"
		"special item description"		"Fully Automatic Shotgun with reduced accuracy."
		"special item description 2"	"I am 100 metres from your location and approaching rapidly."
	}
	// ENGINEER
	CustomWeapon	 	// Engineer Primary - Triple Shot Rifle
	{
		Name								"Technician's Trifold"
		OriginalItemName					"TF_WEAPON_SHOTGUN_PRIMARY"
		"single wep deploy time increased"	1.25
		"mod no reload DISPLAY ONLY"		1
		"mod max primary clip override"		-1
		"fire rate bonus HIDDEN"			0.3
		"bullets per shot bonus"			0.3
		"spread penalty"					2
		"damage bonus HIDDEN"				1.66	// 10x3 damage total
		"custom weapon fire sound"			"=55|weapons/mp40_shoot.wav"
		"custom item model"					"models\workshop_partner\weapons\c_models\c_great_peace_preserver\c_dex_shotgun.mdl"
		"special item description"			"Automatic Rifle that fires three bullets in a horizontal spread."
		"special item description 2"		"I want that rifle, Daddy!"
	}
	CustomWeapon	 	// Engineer Primary - Automatic Laser Rifle
	{
		Name									"Photonic Phaser"
        OriginalItemName						"The Pomson 6000"
		"clip size bonus upgrade"				5	// 20 charges total
		"override projectile type"				1	// bullets
		"sniper fires tracer HIDDEN"			1
		"bullets per shot bonus"				0.1
		"weapon spread bonus"					0.4
		"damage bonus HIDDEN"					2.5	// 15 damage total
		"fire rate bonus HIDDEN"				0.2
		"reload full clip at once"				1
		"Reload time increased"					1.8
		"subtract victim medigun charge on hit"	0
		"subtract victim cloak on hit"			0
		"energy weapon no hurt building"		0
		"special item description"				"Automatic Laser Rifle with increased accuracy"
		"special item description 2"			"Laser! Caution. Laser! What could it mean?!"
	}
	// MEDIC
    CustomWeapon         // Medic Primary - Burst Fire Syringe Gun
    {
        Name								"Four Part Plan"
        OriginalItemName					"The Blutsauger"
        "add cond on hit"					24		// jarate
        "add cond on hit duration"			7
        "single wep deploy time increased"	1.35
        "clip size penalty"					0.1		// 4 needles total
        "maxammo primary reduced"			0.133	// 20 reserve ammo total
        "fire rate bonus HIDDEN"			0.5
        "damage bonus"						2		// 20 damage total
        "no reduced damage rampup"			1
        "heal on hit for rapidfire"			0
        "custom weapon fire sound"			"=75|weapons/supernailgun_shoot.wav"
        "custom item model"					"models\weapons\c_models\c_gupgun\c_leechgun.mdl"
        "special item description"			"Burst Fire Syringe Gun that fires high damage syringes which coat enemies with Jarate on hit."
        "special item description 2"		"Part five: booby trap the stalemate button!"
    }
	ExtraLoadoutItems	 
	{
		Scout
		{
			Primary		"Steel Slugger"
		}
		Soldier
		{
			Primary		"Seeker's Swarm"
			Primary		"Lunatic's Leveller"
		}
		Demoman
		{
			Primary		"Burst of Brimstone"
			Primary		"Putrid Pestilence"
		}
		HeavyWeapons
		{
			Primary		"Bootleg Deflector"
			Primary		"Bludger's Barrage"
			Secondary	"Soviet Slammer"
		}
		Engineer
		{
			Primary		"Technician's Trifold"
			Primary		"Photonic Phaser"
		}
		Medic
		{
			Primary		"Four Part Plan"
		}
	}
	// UPGRADE BANS
	DisallowUpgrade	 
	{
		Name		"Lunatic's Leveller"
		Upgrade		"clip size upgrade atomic"
		MaxLevel	0
	}
	DisallowUpgrade	 
	{
		Name		"Bludger's Barrage"
		Upgrade		"projectile penetration heavy"
		MaxLevel	0
	}
	DisallowUpgrade	 
	{
		Name		"Bludger's Barrage"
		Upgrade		"attack projectiles"
		MaxLevel	0
	}
	DisallowUpgrade	 
	{
		Name		"Bludger's Barrage"
		Upgrade		"generate rage on damage"
		MaxLevel	0
	}
	DisallowUpgrade	 
	{
		Name		"Soviet Slammer"
		Upgrade		"fire rate bonus"
		MaxLevel	0
	}
	DisallowUpgrade	 
	{
		Name		"Four Part Plan"
		Upgrade		"mad milk syringes"
		MaxLevel	0
	}
	DisallowUpgrade	 
	{
		Upgrade		"reload full clip at once"
		MaxLevel	0
		IfUpgradePresent
		{
			"faster reload rate"	1
		}
	}
	DisallowUpgrade	 
	{
		Upgrade		"faster reload rate"
		MaxLevel	0
		IfUpgradePresent
		{
			"reload full clip at once"	1
		}
	}
}