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

	reexportModels items/landmine.def

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

// ========================================================================
// Export
//

export hauser {
	options -prefix LANDMINE_ -sourcedir models/weapons/gdf_landmine/dev_sd -destdir models/weapons/gdf_landmine/

	mesh	landmine_idle.mb		-dest models/weapons/gdf_landmine/landmine_view.md5mesh
	anim	landmine_idle.mb		-dest models/weapons/gdf_landmine/landmine_idle.md5anim
	anim	landmine_raise.mb		-dest models/weapons/gdf_landmine/landmine_raise.md5anim
 	anim	landmine_lower.mb		-dest models/weapons/gdf_landmine/landmine_lower.md5anim
   	anim	landmine_fire.mb		-dest models/weapons/gdf_landmine/landmine_fire.md5anim
 	anim	landmine_lower.mb		-dest models/weapons/gdf_landmine/landmine_reload.md5anim
}

// ========================================================================
// view Models
//
model viewmodel_landmine {
	mesh					models/weapons/gdf_landmine/landmine_view.md5mesh

	anim idle				models/weapons/gdf_landmine/landmine_idle.md5anim {
	}

	anim fire				models/weapons/gdf_landmine/landmine_fire.md5anim {
		frame 10					sound_channel snd_weapon_fire snd_fire
	}

	anim putaway 			models/weapons/gdf_landmine/landmine_lower.md5anim {
	}

	anim raise 				models/weapons/gdf_landmine/landmine_raise.md5anim {
		frame begin				sound_channel snd_weapon_raise snd_raise
	}

	anim reload 			models/weapons/gdf_landmine/landmine_reload.md5anim {
	}
}

model viewmodel_landmine_strogg {
	mesh					models/items/landmine_strogg/landmine_strogg_view.md5mesh

	anim idle				models/items/landmine_strogg/landmine_strogg_idle.md5anim{
	}

	anim fire				models/items/landmine_strogg/landmine_strogg_fire.md5anim{
		frame 10					sound_channel snd_weapon_fire snd_fire
	}

	anim raise				models/items/landmine_strogg/landmine_strogg_raise.md5anim{
		frame begin				sound_channel snd_weapon_raise snd_raise
	}

	anim putaway			models/items/landmine_strogg/landmine_strogg_lower.md5anim{
	}
}

invItemDef inventory/items/landmine {
	type							"item"
	slot							"item"
	name							"game/weapons/mine"

	data {
		"model_view" 				"viewmodel_landmine"
		"model_world" 				"models/weapons/gdf_landmine/landmine_world.lwo"
		"joint_attach"				"RightHand"

		"view_offset"				"-2 1 -1"

		"anim_prefix"				"landmine"
		"anim_prefix_class"			"tool"

		"weapon_scriptobject"		"item_landmine"

		"snd_raise"					"sounds/tools/mine/raise"
		"snd_fire"					"sounds/tools/mine/fire"
		"snd_need_charge"			"sounds/ui/main/cannot"
		"snd_invalid"				"sounds/items/mine/cannot"

		"num_projectiles"			"1"
		"hide_clip"					"1"
		"show_charge"				"1"

		"timer_charge"				"energy_device"
		"charge_per_use"			"40"

		"mtr_weaponmenu"			"guis/assets/icons/weapons/landmine"

		"climate_skin_key"			"weapon_gdf"

		"crosshair"					"none"

		"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"

		"finish_fire_anim"			"1"

		"tt_mine_limit"				"tip_item_landmine_limit"
		"tt_intro_1"				"landmine_intro_1"
		"tt_intro_2"				"landmine_intro_2"
		"tt_need_charge"			"landmine_need_charge"
		"tt_wrong_surface"			"landmine_tripmine_wrong_surface"
		"tt_unknown_beam_range"		"landmine_tripmine_unknown_beam_range"

		"def_landmine"				"projectile_landmine"
		"melee_distance"			"128"
		"throw_time"				"0.22"

		"player_weapon_num"			"17"
		
		"no_energy_segments"		"1"
	}

	clip {
		"projectile"				"projectile_landmine"
		"type"						"infinite"
		"ammo_per_shot"				"-1"
	}
}

invItemDef inventory/items/landmine_strogg {
	type							"weapon"
	slot							"item"
	name							"game/weapons/mine_grav"

	data {
		"model_view" 				"viewmodel_landmine_strogg"
		"model_world" 				"models/items/landmine_strogg/landmine_strogg_thirdperson.lwo"
		"joint_attach"				"LeftHand"

		"view_offset"				"-5 0 0"

		"anim_prefix"				"hands_landmine"
		"anim_prefix_class"			"hands"

		"weapon_scriptobject"		"item_landmine"

		"snd_raise"					"sounds/tools/mine/strogg/raise"
		"snd_fire"					"sounds/tools/mine/fire"
		"snd_need_charge"			"sounds/ui/main/cannot"
		"snd_invalid"				"sounds/items/mine/cannot"

		"num_projectiles"			"1"
		"hide_clip"					"1"
		"show_charge"				"1"

		"timer_charge"				"energy_device"
		"charge_per_use"			"40"
		"mtr_weaponmenu"			"guis/assets/icons/weapons/strogg_landmine"

		"crosshair"					"small"

		"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"

		"arming_weapon"				"inventory/tools/repair_strogg"

		"finish_fire_anim"			"1"

		"tt_mine_limit"				"tip_item_landmine_limit"
		"tt_intro_1"				"landmine_strogg_intro_1"
		"tt_intro_2"				"landmine_strogg_intro_2"
		"tt_need_charge"			"landmine_strogg_need_charge"
		"tt_wrong_surface"			"landmine_tripmine_wrong_surface"
		"tt_unknown_beam_range"		"landmine_tripmine_unknown_beam_range"

		"def_landmine"				"projectile_landmine_strogg"
		"melee_distance"			"128"
		"throw_time"				"0.3"

		"player_weapon_num"			"17"

		"fx_idle"					"effects/items/landmine_strogg_idle"
		"idle_effect_joint"			"landmine_main_joint"
		
		"no_energy_segments"		"1"
	}
}

entityDef projectile_landmine {
	"spawnclass"				"sdScriptEntity"
	"scriptObject"				"projectile_landmine"

	"mins"						"-5 -5 0"
	"maxs"						"5 5 3"

	"model" 					"models/weapons/gdf_landmine/landmine.lwo"

	"dmg_splash_damage_mine"	"damage_landmine_splash_gdf_mine"
	"dmg_splash_damage_trap"	"damage_landmine_splash_gdf_trap"
	"dmg_splash_damage_prox"	"damage_landmine_splash_gdf_prox"

	"maxVisDist"				"2048"

	"option_simple_rigid_body_physics"		"1"
	"option_crosshair_interface"			"1"
	"option_interactive_interface"			"1"
	"option_write_bind"						"1"
	"option_unlock_interpolate"				"1"

	"option_allow_abilities"				"1"
	"ability_1"								"landmine"

	"health"					"40"
	"linear_friction"			"0.8"
	"angular_friction"			"0.8"
	"contact_friction"			"0.8"
	"bouncyness"				"1"
	"mass"						"10"
	"gravity"					"1066"
	"fuse"						"-1"
	"stick_on_contact"			"0"
	"velocity"					"400 0 0"
	"angular_velocity"			"0 0 0"
	
	"snd_beep"					"sounds/tools/mine/beep"
	"snd_beep_arming"			"sounds/tools/mine/arming/beep"
	"snd_armed"					"sounds/tools/mine/armed"
	"snd_disarmed"				"sounds/tools/mine/disarmed"
	"snd_trigger"				"sounds/tools/mine/trigger"
	"snd_arm_auto"				"sounds/tools/mine/autoarm"

	"range"						"96"
	"arm_delay"					"1"
	"self_arm_delay"			"8"
	"arm_count"					"20"
	"disarm_count"				"20"
	"start_armed"				"0"
	
	"prox_detonate_delay"		"1"

	"detonate_on_trigger"		"1"

	"require_fastDisarm"		"ability_trapFastArmDisarm"

	"ti_target_filter"			"target_player_veh_all"
	"disarm_delay"				"2"

	"mtr_icon_enemy"			"hud/commandmap/mine_enemy"
	"mtr_icon_friendly"			"hud/commandmap/mine_friendly"
	
	"option_icon_interface"		"1"
	"occlusion_query"			"1"
	"occlusion_query_bb_scale"	"0.25"

	"mtr_worldicon"				"hud/icons/player/indicator_mine"
	"world_icon_cutoff_dist"	"512"
	
	"skin_spot"					"deployEffect"

	"tt_intro_arm_me_1"			"landmine_crosshair_info_1"
	"tt_intro_arm_me_2"			"landmine_crosshair_info_2"
	"tt_intro_disarm_me_1"		""
	"tt_intro_disarm_me_2"		""

	"collection_spottable"		"spottable"
	"collection_explodable"		"explodable"
	"collection_mine"			"mine"
	"collection_emp"			"emp"
	
	"mtr_beam"					"textures/sfx/laser"

	"item_armed"				"inventory/items/landmine"

	"prof_disarm"				"pro_constructor_disarm_mine"
	"prof_disable"				"pro_infiltrator_emp_mine"
	
	"task_name"					"game/mine"

	"task_disarm"				"constructor_disarm"

	"fx_trigger"				"effects/generic_smoke" // FIXME: new effect
	"fx_disarm"					"effects/generic_smoke" // FIXME: new effect
	"fx_explode"				"effects/impacts/landmine/explosion_default"
	"fx_explode_pavement"		"effects/impacts/landmine/explosion_pavement"
 	"fx_explode_stone"			"effects/impacts/landmine/explosion_stone"
  	"fx_explode_concrete"		"effects/impacts/landmine/explosion_stone"
	"fx_explode_dirt"			"effects/impacts/landmine/explosion_dirt"
	"fx_explode_mud"			"effects/impacts/landmine/explosion_dirt"
	"fx_explode_glass"			"effects/impacts/landmine/explosion_metal"
	"fx_explode_ice"			"effects/impacts/landmine/explosion_metal"
 	"fx_explode_gravel"			"effects/impacts/landmine/explosion_stone"
	"fx_explode_metal"			"effects/impacts/landmine/explosion_metal"
	"fx_explode_metal_thick"	"effects/impacts/landmine/explosion_metal"
	"fx_explode_dusty_road"		"effects/impacts/landmine/explosion_sand"
	"fx_explode_sand"			"effects/impacts/landmine/explosion_sand"
	"fx_explode_snow"			"effects/impacts/landmine/explosion_snow"
 	"fx_explode_liquid"			"effects/impacts/frag/explosion_water"
  	"fx_explode_water"			"effects/impacts/frag/explosion_water"
  	"fx_explode_water_interior"	"effects/impacts/frag/explosion_water_interior"
	"fx_explode_grass"			"effects/impacts/landmine/explosion_grass"
	"fx_splash"					"effects/player/splash"	

}

entityDef projectile_landmine_strogg {
	"inherit"					"projectile_landmine"

	"tt_intro_arm_me_1"			"landmine_crosshair_info_3"
	"tt_intro_arm_me_2"			"landmine_crosshair_info_2"
	"tt_intro_disarm_me_1"		""
	"tt_intro_disarm_me_2"		""

	"model" 					"models/items/landmine_strogg/landmine_strogg_world.lwo"

	"mins"						"-5 -5 0"
	"maxs"						"5 5 3"
	
	"dmg_splash_damage_mine"	"damage_landmine_splash_strogg_mine"
	"dmg_splash_damage_trap"	"damage_landmine_splash_strogg_trap"
	"dmg_splash_damage_prox"	"damage_landmine_splash_strogg_prox"
	
	"prof_disarm"				"pro_engineer_disarm_mine"
	"prof_disable"				"pro_covertops_emp_mine"

	"snd_beep"					"sounds/tools/mine/strogg/beep"
	"snd_armed"					"sounds/tools/mine/strogg/armed"
	"snd_disarmed"				"sounds/tools/mine/strogg/disarmed"
	"snd_trigger"				"sounds/tools/mine/strogg/trigger"
	"snd_arm_auto"				"sounds/tools/mine/strogg/autoarm"

	"item_armed"				"inventory/items/landmine_strogg"
	
	"task_disarm"				"engineer_disarm"

	"fx_explode"				"effects/impacts/landmine_strogg/explosion_default"
	"fx_explode_pavement"		"effects/impacts/landmine_strogg/explosion_pavement"
 	"fx_explode_stone"			"effects/impacts/landmine_strogg/explosion_pavement"
  	"fx_explode_concrete"		"effects/impacts/landmine_strogg/explosion_pavement"
	"fx_explode_dirt"			"effects/impacts/landmine_strogg/explosion_dirt"
	"fx_explode_mud"			"effects/impacts/landmine_strogg/explosion_dirt"
	"fx_explode_glass"			"effects/impacts/landmine_strogg/explosion_metal"
	"fx_explode_ice"			"effects/impacts/landmine_strogg/explosion_metal"
 	"fx_explode_gravel"			"effects/impacts/landmine_strogg/explosion_pavement"
	"fx_explode_metal"			"effects/impacts/landmine_strogg/explosion_metal"
	"fx_explode_metal_thick"	"effects/impacts/landmine_strogg/explosion_metal"
	"fx_explode_dusty_road"		"effects/impacts/landmine_strogg/explosion_sand"
	"fx_explode_sand"			"effects/impacts/landmine_strogg/explosion_sand"
	"fx_explode_snow"			"effects/impacts/landmine_strogg/explosion_snow"
 	"fx_explode_liquid"			"effects/impacts/frag/explosion_water"
  	"fx_explode_water"			"effects/impacts/frag/explosion_water"
  	"fx_explode_water_interior"	"effects/impacts/frag/explosion_water_interior"
	"fx_explode_grass"			"effects/impacts/landmine_strogg/explosion_grass"
}

damageDef damage_landmine_splash_strogg_mine {
	damage							"damage_landmine"
	radius							512
	push							10000000
	no_complaint
	noheadshot
	
	prof_damage						"pro_constructor_damage"

	stat_name						"landmine_strogg"

	tt_obituary						"tooltips/killmsgs/weapons/mines/landmine"
	tt_obituary_team_kill			"tooltips/killmsgs/weapons/mines/landmine/teamkill"
	tt_obituary_self				"tooltips/killmsgs/weapons/mines/landmine/self"
	tt_obituary_unknown				"tooltips/killmsgs/weapons/mines/landmine/unknown"
}

damageDef damage_landmine_splash_strogg_trap {
	damage							"damage_landmine"
	radius							512
	push							10000000
	no_complaint
	noheadshot
	
	prof_damage						"pro_constructor_damage"

	stat_name						"landmine_strogg"

	tt_obituary						"tooltips/killmsgs/weapons/mines/trapmine"
	tt_obituary_team_kill			"tooltips/killmsgs/weapons/mines/trapmine/teamkill"
	tt_obituary_self				"tooltips/killmsgs/weapons/mines/trapmine/self"
	tt_obituary_unknown				"tooltips/killmsgs/weapons/mines/trapmine/unknown"
}

damageDef damage_landmine_splash_strogg_prox {
	damage							"damage_landmine"
	radius							512
	push							10000000
	no_complaint
	noheadshot
	
	prof_damage						"pro_constructor_damage"

	stat_name						"landmine_strogg"

	tt_obituary						"tooltips/killmsgs/weapons/mines/proxymine"
	tt_obituary_team_kill			"tooltips/killmsgs/weapons/mines/proxymine/teamkill"
	tt_obituary_self				"tooltips/killmsgs/weapons/mines/proxymine/self"
	tt_obituary_unknown				"tooltips/killmsgs/weapons/mines/proxymine/unknown"
}

damageDef damage_landmine_splash_gdf_mine {
	damage							"damage_landmine"
	radius							512
	push							10000000
	no_complaint
	noheadshot
	
	prof_damage						"pro_engineer_damage"

	stat_name						"landmine_gdf"

	tt_obituary						"tooltips/killmsgs/weapons/mines/landmine"
	tt_obituary_team_kill			"tooltips/killmsgs/weapons/mines/landmine/teamkill"
	tt_obituary_self				"tooltips/killmsgs/weapons/mines/landmine/self"
	tt_obituary_unknown				"tooltips/killmsgs/weapons/mines/landmine/unknown"
}

damageDef damage_landmine_splash_gdf_trap {
	damage							"damage_landmine"
	radius							512
	push							10000000
	no_complaint
	noheadshot
	
	prof_damage						"pro_engineer_damage"

	stat_name						"landmine_gdf"

	tt_obituary						"tooltips/killmsgs/weapons/mines/trapmine"
	tt_obituary_team_kill			"tooltips/killmsgs/weapons/mines/trapmine/teamkill"
	tt_obituary_self				"tooltips/killmsgs/weapons/mines/trapmine/self"
	tt_obituary_unknown				"tooltips/killmsgs/weapons/mines/trapmine/unknown"
}

damageDef damage_landmine_splash_gdf_prox {
	damage							"damage_landmine"
	radius							512
	push							10000000
	no_complaint
	noheadshot
	
	prof_damage						"pro_engineer_damage"

	stat_name						"landmine_gdf"

	tt_obituary						"tooltips/killmsgs/weapons/mines/proxymine"
	tt_obituary_team_kill			"tooltips/killmsgs/weapons/mines/proxymine/teamkill"
	tt_obituary_self				"tooltips/killmsgs/weapons/mines/proxymine/self"
	tt_obituary_unknown				"tooltips/killmsgs/weapons/mines/proxymine/unknown"
}

damageFilter damage_landmine {
	type {
		target	"target_player_all"
		damage	150
	}

	type {
		target	"target_veh_all"
		damage	1000
	}

	type {
		target	"target_deployables_all"
		damage	1000
	}
}

#include "templates/tooltips.include"

toolTip landmine_intro_1 {
	sound "sounds/ui/main/neutral"
	text "game/tt/intro/landmine_1"
}

toolTip landmine_intro_2 {
	sound "sounds/ui/main/neutral"
	text "game/tt/intro/fire_altfire_deploy_mine"
}

toolTip landmine_need_charge {
	alwaysPlay
	length	2
	nextShowDelay 0

	text "game/tt/intro/generic/need_charge"
	locationIndex TOOLTIP_POSITION_CHARGE
}




toolTip landmine_strogg_intro_1 {
	sound "sounds/ui/main/neutral"
	text "game/tt/intro/landmine_1"
}

toolTip landmine_strogg_intro_2 {
	sound "sounds/ui/main/neutral"
	text "game/tt/intro/fire_altfire_deploy_mine"
}

toolTip landmine_strogg_need_charge {
	alwaysPlay
	length	2
	nextShowDelay 0

	text "game/tt/intro/generic/need_charge"
	locationIndex TOOLTIP_POSITION_CHARGE
}




toolTip landmine_crosshair_info_1 {
	sound "sounds/ui/main/neutral"
	text "game/tt/intro/arm_me_1"
	locationIndex TOOLTIP_POSITION_WEAPON_CHANGE
}

toolTip landmine_crosshair_info_3 {
	sound "sounds/ui/main/neutral"
	text "game/tt/intro/arm_me_4"
	locationIndex TOOLTIP_POSITION_WEAPON_CHANGE
}

toolTip landmine_crosshair_info_2 {
	sound "sounds/ui/main/neutral"
	text "game/tt/intro/arm_me_3"
	nextShowDelay 30
}

toolTip landmine_tripmine_wrong_surface {
	alwaysPlay
	length	2
	nextShowDelay 0

	text "game/tt/intro/tripmine_wrong_surface"
}

toolTip landmine_tripmine_unknown_beam_range {
	alwaysPlay
	length	2
	nextShowDelay 0

	text "game/tt/intro/tripmine_unknown_beam_range"
}

