entityDef weapon_crossbow
{
	"editor_color"		".3 .3 1"
	"editor_mins"		"-16 -16 -16"
	"editor_maxs"		"16 16 16"
	"editor_usage"		"#HL2_Crossbow"
	"editor_rotatable"	"1"

	"spawnclass"		"HLWeapon"
	"model"				"models/weapons/w_crossbow.mdl"
	"model_view"		"models/weapons/v_crossbow_dx7.mdl"
	"snd_acquire"		"HL2Player.PickupWeapon"
	"snd_respawn"		"Item.Materialize"

	// weapon specific
	"def_fireInfo"		"fireInfo_crossbow"
	"inv_name"			"CROSSBOW"
	"inv_ammo_crossbow"	"4"
	"clipSize"			"1"
	"ammoType"			"ammo_crossbow"
	"ammoRequired"		"1"
	"hl2hud_icon"		"g"

	"act_fire"			"3"
	"act_fireLast"		"6"
	"act_holster"		"5"
	"act_reload"			"4"
	"act_draw"			"2"
	"act_idle"			"0"
	"act_idleEmpty"		"1"

	"snd_fire"		"Weapon_Crossbow.Single"
//	"snd_reload"	"Weapon_Crossbow.Reload"

	// HLWeapon specific
	"hudSlot"		"3"
	"hudSlotPos"	"1"
	"weight"		"6"
	"zoomFov"		"18"
	"physics"		"1"
	"buggyIdleAnim"	"1"
}

entityDef fireInfo_crossbow
{
	"def_onFire"		"projectile_bolt"
	"ammoPerShot"		"1"
	"punchAngle"		"-2 0 0"
}

entityDef debris_bolt
{
	"spawnclass"		"ncProjectile"
	"model"				"models/crossbow_bolt.mdl"
}

entityDef projectile_bolt
{
	"spawnclass"		"ncProjectile"
	"model"				"models/crossbow_bolt.mdl"
	"velocity"			"2000 0 0"
	"angular_velocity"	"0 0 20"
	"mins"				"0 0 0"
	"maxs"				"0 0 0"
	"bounce"			"1"
	"def_damage"		"damage_boltDirect"
	"model_detonate"	"fx_spark.main"
	"snd_explode"		"Weapon_Crossbow.BoltFly"
	"detonate_on_fuse"	"0"
	"detonate_on_death"	"1"
	"detonate_on_world"	"1"
	"detonate_on_actor"	"1"
	"projectile_debris" "debris_bolt"
	"debris_count"		"1"
	"debris_stick"		"1"
	"debris_offset"		"-16 0 0"
}

entityDef damage_boltDirect
{
	"damage"	"skill:plr_dmg_crossbow"
}
