Exemple #1
0
void notify_co_pilot_ecm_option_button ( ui_object *obj, void *arg )
{

    set_global_auto_counter_measures (!get_global_auto_counter_measures ());

    set_ui_object_text (obj, option_boolean_text [get_global_auto_counter_measures ()]);

    // don't leave text selected

    set_toggle_button_off (obj);
}
Exemple #2
0
void initialise_global_options_data_version2 (void)
{
	set_global_apache_havoc_installed (FALSE);

	set_global_auto_counter_measures (TRUE);

	set_global_ase_auto_page (TRUE);

	set_global_graphics_object_detail_level ( 3 );

	set_global_graphics_terrain_detail_level ( 3 );

	set_global_session_free_flight_time_of_day ( SESSION_TIME_RANDOM );
	set_global_session_campaign_time_of_day ( SESSION_TIME_RANDOM );

	set_global_session_free_flight_weather ( SESSION_WEATHER_RANDOM );
	set_global_session_campaign_weather ( SESSION_WEATHER_RANDOM );

	set_global_difficulty_level ( GAME_DIFFICULTY_EASY );

	set_global_session_free_flight_realism_infinite_fuel ( TRUE );
	#if DEMO_VERSION
	set_global_session_free_flight_realism_infinite_weapons ( FALSE );
	set_global_session_free_flight_realism_invulnerable_from_collisions ( FALSE );
	set_global_session_free_flight_realism_invulnerable_from_weapons ( FALSE );
	set_global_session_free_flight_realism_suppress_ai_fire ( FALSE );
	#else
	set_global_session_free_flight_realism_infinite_weapons ( TRUE );
	set_global_session_free_flight_realism_invulnerable_from_collisions ( TRUE );
	set_global_session_free_flight_realism_invulnerable_from_weapons ( TRUE );
	set_global_session_free_flight_realism_suppress_ai_fire ( TRUE );
	#endif

	set_global_session_campaign_realism_infinite_weapons ( FALSE );
	set_global_session_campaign_realism_infinite_fuel ( FALSE );
	set_global_session_campaign_realism_invulnerable_from_collisions ( FALSE );
	set_global_session_campaign_realism_invulnerable_from_weapons ( FALSE );
	set_global_session_campaign_realism_suppress_ai_fire ( FALSE );

	set_global_copilot_speech_effects_enabled ( TRUE );

	set_global_draw_cockpit_graphics (TRUE);

	set_global_draw_overlaid_instruments (TRUE);

	set_global_glass_cockpit (FALSE);

	set_global_cockpit_detail_level (COCKPIT_DETAIL_LEVEL_HIGH);

	set_global_simple_avionics (TRUE);

	set_global_display_in_flight_intelligence_messages (TRUE);

	set_global_unscaled_displays (FALSE);

	set_global_3d_visual_screen_width (INIT_WIDTH);

	set_global_3d_visual_screen_height (INIT_HEIGHT);

	set_global_map_layer_options
	(
		(1 << MAP_LAYER_CONTROL_FOG_OF_WAR) +
		(1 << MAP_LAYER_CONTROL_KEYSITES) +
		(1 << MAP_LAYER_CONTROL_AIRCRAFT) +
		(1 << MAP_LAYER_CONTROL_SHIPS) +
		(1 << MAP_LAYER_CONTROL_ARMOUR)
	);

	set_global_sound_channel_volume (SOUND_CHANNEL_SOUND_EFFECT, 				10);
	set_global_sound_channel_volume (SOUND_CHANNEL_SYSTEM, 						10);
	set_global_sound_channel_volume (SOUND_CHANNEL_CO_PILOT, 					8);
	set_global_sound_channel_volume (SOUND_CHANNEL_WINGMAN, 						7);
	set_global_sound_channel_volume (SOUND_CHANNEL_AIR_TRAFFIC_CONTROLLER, 	5);
	set_global_sound_channel_volume (SOUND_CHANNEL_FORWARD_AIR_CONTROLLER, 	6);
	set_global_sound_channel_volume (SOUND_CHANNEL_GROUND_CONTROLLER, 		5);

	set_global_sound_channel_muted (SOUND_CHANNEL_SOUND_EFFECT, 				FALSE);
	set_global_sound_channel_muted (SOUND_CHANNEL_SYSTEM, 						FALSE);
	set_global_sound_channel_muted (SOUND_CHANNEL_CO_PILOT, 						FALSE);
	set_global_sound_channel_muted (SOUND_CHANNEL_WINGMAN, 						FALSE);
	set_global_sound_channel_muted (SOUND_CHANNEL_AIR_TRAFFIC_CONTROLLER, 	FALSE);
	set_global_sound_channel_muted (SOUND_CHANNEL_FORWARD_AIR_CONTROLLER, 	FALSE);
	set_global_sound_channel_muted (SOUND_CHANNEL_GROUND_CONTROLLER, 			FALSE);

	//
	// Graphics card ID & resolution stuff
	//
#ifdef _WIN32
	memset ( &global_options.graphics_card_device_identifier, 0, sizeof ( GUID ) );
#elif defined __unix__
memset ( &global_options.graphics_card_device_identifier, 0, sizeof ( GUID ) );
#endif
	global_options.number_of_graphics_card_resolutions = 0;

	memset ( &global_options.graphics_card_resolutions, 0, sizeof ( graphics_resolution_mode ) * 32 );
}