#define CHAINSAW_IDLE_OFF 0
#define CHAINSAW_IDLE_ON 1

entityDef weapon_chainsaw
{
	"editor_color"		".3 .3 1"
	"editor_mins"		"-16 -16 -16"
	"editor_maxs"		"16 16 16"
	"editor_usage"		"Chainsaw"
	"editor_rotatable"	"1"

	"inherit"			"weapon_base"
	"model"				"models/p_saw.mdl"
	"model_view"		"models/v_chainsaw.mdl"
	"snd_idle"			"weapon_chainsaw.idle"
	"snd_start"			"weapon_chainsaw.start"
	"snd_stop"			"weapon_chainsaw.stop"

	// weapon specific
	"def_melee"			"damage_chainsaw"
	"melee_distance"	"32"
	"inv_name"			"Chainsaw"
	"ammoType"			""
	"silent_fire"		"0"

	"act_idle"			"5,6"
	"act_draw"			"3"
	"act_holster"		"4"
	"act_fireStart"		"0"
	"act_fireFailed"	"1"
	"act_fire"			"1"
	"actMeleeStop"		"2"

	// HLWeapon specific
	"hudSlot"		"0"
	"hudSlotPos"	"2"
	"weight"		"1"
	"crosshair"		"none"
	"ammoIcon"		"none"
}

// TODO sh_chainspark and fx_spark.main

entityDef projectile_chainsaw
{
	"spawnclass"			"ncProjectile"
	"damage"				"skill:plr_chainsaw"
	"is_bullet"				"1"
	"range"					"32"
	"decal_impact"			"Impact.Spark"
	"detonate_on_world" 	"1"
	"gib"					"1"
	"failRate"				"0.5"
	"fireRate"				"0.25"
	"knockback"				"-32"
	"snd_fireFailed"		"Weapon_Machete.miss"
	"snd_hitBody"			"weapon_chainsaw.hit"
	"snd_hitWorld"			"weapon_chainsaw.hit"
}
