void select_hokum_target_acquisition_system (target_acquisition_systems system) { target_acquisition_systems new_system, old_system; int damaged; new_system = system; old_system = target_acquisition_system; damaged = FALSE; reset_common_target_acquisition_system_keys (); deselect_hokum_target_acquisition_system (target_acquisition_system); switch (system) { //////////////////////////////////////// case TARGET_ACQUISITION_SYSTEM_OFF: //////////////////////////////////////// { target_acquisition_system = system; set_gunship_target (NULL); #if 0 hud_mode = HUD_MODE_NAVIGATION; #endif break; } //////////////////////////////////////// case TARGET_ACQUISITION_SYSTEM_GROUND_RADAR: //////////////////////////////////////// { if (!hokum_damage.radar) { target_acquisition_system = system; activate_common_ground_radar (); select_hokum_ground_radar_mfd (); hud_mode = HUD_MODE_WEAPON; } damaged = hokum_damage.radar; break; } //////////////////////////////////////// case TARGET_ACQUISITION_SYSTEM_AIR_RADAR: //////////////////////////////////////// { if (!hokum_damage.radar) { target_acquisition_system = system; activate_common_air_radar (); select_hokum_air_radar_mfd (); hud_mode = HUD_MODE_WEAPON; } damaged = hokum_damage.radar; break; } //////////////////////////////////////// case TARGET_ACQUISITION_SYSTEM_FLIR: //////////////////////////////////////// { if (!hokum_damage.flir) { target_acquisition_system = system; activate_common_eo (); select_hokum_eo_mfd (); hud_mode = HUD_MODE_WEAPON; } damaged = hokum_damage.flir; break; } //////////////////////////////////////// case TARGET_ACQUISITION_SYSTEM_LLLTV: //////////////////////////////////////// { if (!hokum_damage.llltv) { target_acquisition_system = system; activate_common_eo (); select_hokum_eo_mfd (); hud_mode = HUD_MODE_WEAPON; } damaged = hokum_damage.llltv; break; } //////////////////////////////////////// case TARGET_ACQUISITION_SYSTEM_PERISCOPE: //////////////////////////////////////// { if (!hokum_damage.periscope) { target_acquisition_system = system; activate_common_eo (); if (get_crew_role () == CREW_ROLE_PILOT) { set_co_pilot_seat_position (); } if (get_crew_role () == CREW_ROLE_CO_PILOT) { set_view_mode (VIEW_MODE_VIRTUAL_COCKPIT_PERISCOPE); } select_hokum_eo_mfd (); hud_mode = HUD_MODE_WEAPON; } damaged = hokum_damage.periscope; break; } //////////////////////////////////////// case TARGET_ACQUISITION_SYSTEM_HMS: //////////////////////////////////////// { if (!hokum_damage.helmet_mounted_sight) { target_acquisition_system = system; activate_common_hms (); hud_mode = HUD_MODE_WEAPON; } damaged = hokum_damage.helmet_mounted_sight; break; } //////////////////////////////////////// default: //////////////////////////////////////// { debug_fatal ("Invalid target acquisition system = %d", system); break; } } play_common_cpg_target_acquisition_system_speech (new_system, old_system, damaged); }
void select_comanche_target_acquisition_system (target_acquisition_systems system) { target_acquisition_systems new_system, old_system; int damaged; new_system = system; old_system = target_acquisition_system; damaged = FALSE; reset_common_target_acquisition_system_keys (); deselect_comanche_target_acquisition_system (target_acquisition_system); switch (system) { //////////////////////////////////////// case TARGET_ACQUISITION_SYSTEM_OFF: //////////////////////////////////////// { target_acquisition_system = system; set_gunship_target (NULL); #if 0 hud_mode = HUD_MODE_NAVIGATION; #endif break; } //////////////////////////////////////// case TARGET_ACQUISITION_SYSTEM_GROUND_RADAR: //////////////////////////////////////// { if (!comanche_damage.radar) { target_acquisition_system = system; activate_common_ground_radar (); select_comanche_ground_radar_main_mfd (); hud_mode = HUD_MODE_WEAPON; } damaged = comanche_damage.radar; break; } //////////////////////////////////////// case TARGET_ACQUISITION_SYSTEM_AIR_RADAR: //////////////////////////////////////// { if (!comanche_damage.radar) { target_acquisition_system = system; activate_common_air_radar (); select_comanche_air_radar_main_mfd (); hud_mode = HUD_MODE_WEAPON; } damaged = comanche_damage.radar; break; } //////////////////////////////////////// case TARGET_ACQUISITION_SYSTEM_FLIR: //////////////////////////////////////// { if (!comanche_damage.flir) { target_acquisition_system = system; activate_common_eo (); select_comanche_tads_main_mfd (); hud_mode = HUD_MODE_WEAPON; } damaged = comanche_damage.flir; break; } //////////////////////////////////////// case TARGET_ACQUISITION_SYSTEM_DTV: //////////////////////////////////////// { if (!comanche_damage.dtv) { target_acquisition_system = system; activate_common_eo (); select_comanche_tads_main_mfd (); hud_mode = HUD_MODE_WEAPON; } damaged = comanche_damage.dtv; break; } //////////////////////////////////////// case TARGET_ACQUISITION_SYSTEM_DVO: //////////////////////////////////////// { if (!comanche_damage.dvo) { target_acquisition_system = system; activate_common_eo (); select_comanche_tads_main_mfd (); hud_mode = HUD_MODE_WEAPON; } damaged = comanche_damage.dvo; break; } //////////////////////////////////////// case TARGET_ACQUISITION_SYSTEM_HIDSS: //////////////////////////////////////// { if (!comanche_damage.hidss) { target_acquisition_system = system; activate_common_hms (); hud_mode = HUD_MODE_WEAPON; } damaged = comanche_damage.hidss; break; } //////////////////////////////////////// default: //////////////////////////////////////// { debug_fatal ("Invalid target acquisition system = %d", system); break; } } play_common_cpg_target_acquisition_system_speech (new_system, old_system, damaged); }
void select_viper_target_acquisition_system (target_acquisition_systems system) { target_acquisition_systems new_system, old_system; int damaged; new_system = system; old_system = target_acquisition_system; damaged = FALSE; reset_common_target_acquisition_system_keys (); deselect_viper_target_acquisition_system (target_acquisition_system); switch (system) { //////////////////////////////////////// case TARGET_ACQUISITION_SYSTEM_OFF: //////////////////////////////////////// { target_acquisition_system = system; set_gunship_target (NULL); if (!command_line_manual_laser_radar) set_laser_is_active(FALSE); #if 0 hud_mode = previous_hud_mode; #endif break; } //////////////////////////////////////// case TARGET_ACQUISITION_SYSTEM_FLIR: //////////////////////////////////////// { if (!viper_damage.flir) { target_acquisition_system = system; activate_common_eo (); if (command_line_targeting_system_auto_page) select_viper_tads_mfd (); if (hud_mode != HUD_MODE_WEAPON) previous_hud_mode = hud_mode; hud_mode = HUD_MODE_WEAPON; } damaged = viper_damage.flir; break; } //////////////////////////////////////// case TARGET_ACQUISITION_SYSTEM_DTV: //////////////////////////////////////// { if (!viper_damage.dtv) { target_acquisition_system = system; activate_common_eo (); if (command_line_targeting_system_auto_page) select_viper_tads_mfd (); if (hud_mode != HUD_MODE_WEAPON) previous_hud_mode = hud_mode; hud_mode = HUD_MODE_WEAPON; } damaged = viper_damage.dtv; break; } //////////////////////////////////////// case TARGET_ACQUISITION_SYSTEM_HIDSS: //////////////////////////////////////// { if (!viper_damage.hidss) { target_acquisition_system = system; activate_common_hms (); if (hud_mode != HUD_MODE_WEAPON) previous_hud_mode = hud_mode; hud_mode = HUD_MODE_WEAPON; } damaged = viper_damage.hidss; break; } //////////////////////////////////////// default: //////////////////////////////////////// { debug_fatal ("Invalid target acquisition system = %d", system); break; } } play_common_cpg_target_acquisition_system_speech (new_system, old_system, damaged); }