/***********************************************************************

	reexportModels tools\trinoculars.def

***********************************************************************/

// ========================================================================
// Export
//
export hauser {
	options -prefix TRINOCS_ -sourcedir models/techkits/trinoculars/dev_sd/ -destdir models/tools/trinoculars -keep

	mesh	new_trinoculars_base_file.mb		-dest models/tools/trinoculars/trinoculars_view.md5mesh
	anim	new_trinoculars_idle.mb			-dest models/tools/trinoculars/trinoculars_idle.md5anim
	anim	new_trinoculars_raise.mb			-dest models/tools/trinoculars/trinoculars_raise.md5anim
 	anim	new_trinoculars_lower.mb			-dest models/tools/trinoculars/trinoculars_lower.md5anim
   	anim	new_trinoculars_zoom_in.mb		-dest models/tools/trinoculars/trinoculars_zoom_in.md5anim 		-range 7 13
   	anim	new_trinoculars_zoom_in.mb		-dest models/tools/trinoculars/trinoculars_zoom_out.md5anim 		-range 13 18
   	anim	new_trinoculars_lower.mb		-dest models/tools/trinoculars/trinoculars_start_sprint.md5anim
   	anim	new_trinoculars_raise.mb		-dest models/tools/trinoculars/trinoculars_leave_sprint.md5anim

}

// ========================================================================
// view Models
//
model viewmodel_trinoculars
{
	mesh					models/tools/trinoculars/trinoculars_view.md5mesh
	anim idle				models/tools/trinoculars/trinoculars_idle.md5anim
	anim fire				models/tools/trinoculars/trinoculars_zoom_in.md5anim
	anim putaway 			models/tools/trinoculars/trinoculars_lower.md5anim
	anim raise	 			models/tools/trinoculars/trinoculars_raise.md5anim {
		frame begin				sound_channel snd_weapon_raise snd_raise
	}
	anim start_sprint		models/tools/trinoculars/trinoculars_lower.md5anim
	anim leave_sprint		models/tools/trinoculars/trinoculars_raise.md5anim
}

// ========================================================================
// Entity DEFS
//
invItemDef inventory/tools/trinoculars {
	type									"tool"
	slot									"binocs"
	name									"game/weapons/trinoc"

	data {
		"model_view" 						"viewmodel_trinoculars"
		"model_world" 						"models/tools/trinoculars/trinoculars_world.lwo"
		"joint_attach"						"LeftHand"

		"view_offset"						"-4 2 -2"

		"anim_prefix"						"hands_trinoculars"
		"anim_prefix_class"					"hands"

		"weapon_scriptobject"				"trinoculars"

		"binoculars_focustreshold_min"		"0.8"
		"binoculars_focustreshold_max"		"1.75"
		"binoculars_focusloststep"			"0.09"
		"binoculars_focusgainstep"			"0.006"
		"binoculars_zoomfocuslost"			"1"

		"snd_zoomin"						"sounds/tools/binocs/zoom/in"
		"snd_zoomout"						"sounds/tools/binocs/zoom/out"
		"snd_raise"							"sounds/tools/trinocs/raise"
		"snd_scopeup"						"sounds/tools/trinocs/zoom"

		"gui_overlay"						"guis/game/targeting/trinoculars"
		"hud_sort"						"999"

		"mtr_weaponmenu"					"guis/assets/icons/weapons/trinoculars"

		"crosshair"							"small"

		"use_hold_anims"					"1"

		"crosshair_spread_min"				"0.1"
		"crosshair_spread_max"				"0.1"
		"crosshair_spread_scale"			"1"

		"spread_min"						"0"
		"spread_max"						"0"

		"spread_crouch_min"					"0"
		"spread_crouch_max"					"0"

		"spread_prone_min"					"0"
		"spread_prone_max"					"0"

		"spread_jump_min"					"0"
		"spread_jump_max"					"0"

		"weapon_menu_ignore"				"1"

		"player_weapon_num"					"9"

		"fx_idle"						"effects/tools/trinoculars_idle"
		"idle_effect_joint"					"trinoculars_joint"

		"num_zoom_levels"					"4"
		"zoom_fov_1"						"45"
		"zoom_fov_2"						"30"
		"zoom_fov_3"						"20"
		"zoom_fov_4"						"10"
		"zoom_time"							"0.2"
	}
}
