// * AdmiralMOD by Matthias Lorenz, http://www.cod2mod.com *



GetAMVars() {

	
	// * Wird bei jedem MAP-Start und bei jeder neuen Runde neu eingelesen *
		
	
	game["am_enabled"]								= GetV("int",	"am_enabled",1,0,1);
	
	game["am_error_logfile"]						= GetV("int",	"am_error_logfile",0,0,1);
	game["am_error_bots"]							= GetV("int",	"am_error_bots",0,0,64);

	game["am_tournament_mode"]						= GetV("int",	"am_tournament_mode",0,0,1);
	game["am_tournament_public_mode"]				= GetV("int",	"am_tournament_public_mode",1,0,1);
	game["am_tournament_league_setting"]			= GetV("string","am_tournament_league_setting","esl","","");
	game["am_tournament_make_screenshots"]			= GetV("int",	"am_tournament_make_screenshots",1,0,1);
	game["am_tournament_record_demo"]				= GetV("int",	"am_tournament_record_demo",1,0,1);
	game["am_tournament_live_score"]				= GetV("int",	"am_tournament_live_score",0,0,1);

	game["am_show_hit_location_graphic"]			= GetV("int",	"am_show_hit_location_graphic",1,0,1);

	game["am_pickup_max_frag_grenades"]				= GetV("int",	"am_pickup_max_frag_grenades",5,1,10);
	game["am_pickup_max_smoke_grenades"]			= GetV("int",	"am_pickup_max_smoke_grenades",5,1,10);


	game["am_tournament_halftime_switch_round"]		= GetV("int",	"am_tournament_halftime_switch_round",10,1,500);
	game["am_tournament_halftime_switch_score"]		= GetV("int",	"am_tournament_halftime_switch_score",10,1,500);
	game["am_tournament_end_at_round"]				= GetV("int",	"am_tournament_end_at_round",20,2,500);
	game["am_tournament_end_at_score"]				= GetV("int",	"am_tournament_end_at_score",20,2,500);
	game["am_tournament_halftime_timelimit"]		= GetV("int",	"am_tournament_halftime_timelimit",12,1,30);


	game["am_game_speed"]							= GetV("int",	"am_game_speed",50,1,100);
	game["am_frag_grenades_type"]					= GetV("string","am_frag_grenades_type","original","","");

	game["am_skip_info_screen"]						= GetV("int",	"am_skip_info_screen",0,0,1);
	game["am_ambient_war_sounds"]					= GetV("int",	"am_ambient_war_sounds",1,0,1);
	game["am_ambient_flyby_sounds"]					= GetV("int",	"am_ambient_flyby_sounds",1,0,1);
	game["am_promotion_sound_next_rank"]			= GetV("int",	"am_promotion_sound_next_rank",1,0,1);
	game["am_weapon_pickup_key"]					= GetV("int",	"am_weapon_pickup_key",0,0,1);
	game["am_weapon_pickup_player_must_look_at"]	= GetV("int",	"am_weapon_pickup_player_must_look_at",0,0,1);
	
	game["am_disable_map_fx"]						= GetV("int",	"am_disable_map_fx",0,0,1);
	game["am_disable_map_ambient"]					= GetV("int",	"am_disable_map_ambient",0,0,1);

	game["am_frag_grenade_count"]					= GetV("int",	"am_frag_grenade_count",-1,-1,10);
	game["am_smoke_grenade_count"]					= GetV("int",	"am_smoke_grenade_count",-1,-1,10);

	game["am_show_friends_and_enemys_on_compass"]	= GetV("int",	"am_show_friends_and_enemys_on_compass",1,0,1);


	game["am_player_can_burn"]						= GetV("int",	"am_player_can_burn",0,0,1);

	
	game["am_enable_killtriggers"]					= GetV("int",	"am_enable_killtriggers",0,0,1);
	game["am_fall_damage_modifier"]					= GetV("int",	"am_fall_damage_modifier",-1,-1,200);
	
	game["am_clan_vs_public"]						= GetV("int",	"am_clan_vs_public",0,0,1);
	
	
	game["am_enable_mobile_mg"]						= GetV("int",	"am_enable_mobile_mg",1,0,1);
	game["am_mg_plant_key"]							= GetV("int",	"am_mg_plant_key",1,0,1);
	game["am_mc_plant_key"]							= GetV("int",	"am_mc_plant_key",1,0,1);
	game["am_medic_heal_points"]					= GetV("int",	"am_medic_heal_points",1,1,20);

	game["am_show_kill_hit_location"]				= GetV("int",	"am_show_kill_hit_location",1,0,3);
	game["am_grenade_warning"]						= GetV("int",	"am_grenade_warning",1,0,1);
	game["am_sd_teambalance_every_round"]			= GetV("int",	"am_sd_teambalance_every_round",1,0,1);
	game["am_sdr_teambalance_every_round"]			= GetV("int",	"am_sdr_teambalance_every_round",1,0,1);
	game["am_csd_teambalance_every_round"]			= GetV("int",	"am_csd_teambalance_every_round",1,0,1);

	game["am_use_colored_smokegrenades"]			= GetV("int",	"am_use_colored_smokegrenades",1,0,1);
	game["am_show_teammates_your_tnt_positions"]	= GetV("int",	"am_show_teammates_your_tnt_positions",1,0,1);
	game["am_class_medic_hold_player"]				= GetV("int",	"am_class_medic_hold_player",1,0,1);
	game["am_medic_allow_drop_healthpacks"]			= GetV("int",	"am_medic_allow_drop_healthpacks",0,0,1);


	game["am_ammo_crate_allow_max_ammo_reloads"] 	= GetV("int",	"am_ammo_crate_allow_max_ammo_reloads",2,1,100);



	game["am_show_player_position"]					= GetV("int",	"am_show_player_position",0,0,1);

	game["am_parachute"]							= GetV("int",	"am_parachute",0,0,1);
	game["am_parachute_drive_melee"]				= GetV("int",	"am_parachute_drive_melee",0,0,1);
	
	game["am_ctf_random_flag_position"]				= GetV("int",	"am_ctf_random_flag_position",0,0,1);
	game["am_ctb_random_flag_position"]				= GetV("int",	"am_ctb_random_flag_position",1,0,1);
	game["am_ctfb_random_flag_position"]			= GetV("int",	"am_ctfb_random_flag_position",1,0,1);
	
	game["am_dom_flag_capture_time"]				= GetV("int",	"am_dom_flag_capture_time",20,1,45);
	
	game["am_mortar_cannon_training_player_fly"]	= GetV("int",	"am_mortar_cannon_training_player_fly",0,0,1);
	
	
	game["am_night_of_zombies_more_weapons"]		= GetV("int",	"am_night_of_zombies_more_weapons",0,0,1);


	game["am_gas_grenade_has_allies_class"]			= GetV("int",	"am_gas_grenade_has_allies_class",0,-1,7);
	game["am_gas_grenade_has_axis_class"]			= GetV("int",	"am_gas_grenade_has_axis_class",0,-1,7);
	game["am_fire_grenade_has_allies_class"]		= GetV("int",	"am_fire_grenade_has_allies_class",1,-1,7);
	game["am_fire_grenade_has_axis_class"]			= GetV("int",	"am_fire_grenade_has_axis_class",1,-1,7);



	game["am_hq_allow_defenders_to_respawn"]  		= GetV("int",	"am_hq_allow_defenders_to_respawn",1,0,1);
	game["am_hq2_allow_defenders_to_respawn"] 		= GetV("int",	"am_hq2_allow_defenders_to_respawn",1,0,1);


    game["am_use_player_class_system"]				= GetV("int",	"am_use_player_class_system",1,0,1);
	game["am_class_medic_max_health_packs"]			= GetV("int",	"am_class_medic_max_health_packs",6,1,9);
    game["am_class_tnt_max_bombs_packs"]			= GetV("int",	"am_class_tnt_max_bombs_packs",2,1,5);
    game["am_class_tnt_max_bombs_packs_on_map"]		= GetV("int",	"am_class_tnt_max_bombs_packs_on_map",2,1,3);
    game["am_class_artillerie_max_strikes"]			= GetV("int",	"am_class_artillerie_max_strikes",3,1,9);
	game["am_down_by_leg_shot"]						= GetV("int",	"am_down_by_leg_shot",0,0,1);
	
	game["am_ctf_show_enemy_own_flag"]				= GetV("int",	"am_ctf_show_enemy_own_flag",1,0,1);
	game["am_ctf_show_enemy_own_flag_after_sec"]	= GetV("int",	"am_ctf_show_enemy_own_flag_after_sec",60,20,900);
	game["am_ctf_show_enemy_own_flag_time"]			= GetV("int",	"am_ctf_show_enemy_own_flag_time",60,20,900);
	
	game["am_ctfb_show_enemy_own_flag"]				= GetV("int",	"am_ctfb_show_enemy_own_flag",1,0,1);
	game["am_ctfb_show_enemy_own_flag_after_sec"]	= GetV("int",	"am_ctfb_show_enemy_own_flag_after_sec",60,20,900);
	game["am_ctfb_show_enemy_own_flag_time"]		= GetV("int",	"am_ctfb_show_enemy_own_flag_time",60,20,900);

	game["am_ctb_show_enemy_own_flag"]				= GetV("int",	"am_ctb_show_enemy_own_flag",1,0,1);
	game["am_ctb_show_enemy_own_flag_after_sec"]	= GetV("int",	"am_ctb_show_enemy_own_flag_after_sec",60,20,900);
	game["am_ctb_show_enemy_own_flag_time"]			= GetV("int",	"am_ctb_show_enemy_own_flag_time",60,20,900);

	game["am_ctb_art"]								= GetV("int",	"am_ctb_art",1,1,2);

	game["am_show_rank_icons_in_highscore"]			= GetV("int",	"am_show_rank_icons_in_highscore",0,0,1);

	
	
	game["am_forced_autoassign"]					= GetV("int",	"am_forced_autoassign",0,0,1);
	game["am_killcam_time"]							= GetV("int",	"am_killcam_time",7,3,30);

	game["am_crosshair_names"]						= GetV("int",	"am_crosshair_names",1,0,1);

	game["am_compass_red_dots_fade_time"]			= GetV("int",	"am_compass_red_dots_fade_time",2,0,10);
	


    game["am_mission_pack_edit"]					= GetV("int",	"am_mission_pack_edit",0,0,1);
   
    game["am_only_with_autodownload"]				= GetV("int",	"am_only_with_autodownload",1,0,1);



	game["am_cinemascope"]  						= GetV("int",   "am_cinemascope",0,0,1);
	game["am_minefields_disabled"] 					= GetV("int",   "am_minefields_disabled",0,0,1);
	game["am_clan_training"]						= GetV("int",   "am_clan_training",0,0,1);

	game["am_show_mod_features"]					= GetV("int",   "am_show_mod_features",1,0,1);

	
	game["am_show_team_score"]						= GetV("int",   "am_show_team_score",1,0,1);
 	game["am_show_time"]							= GetV("int",   "am_show_time",1,0,1);


	game["am_player_sprinting"]  					= GetV("int",   "am_player_sprinting",1,0,1);
	game["am_player_sprint_key"]  					= GetV("int",   "am_player_sprint_key",1,0,1);
	game["am_weapon_disabled_while_sprinting"]  	= GetV("int",   "am_weapon_disabled_while_sprinting",0,0,1);
	game["am_deny_sprinting_health"]  				= GetV("int",   "am_deny_sprinting_health",30,1,90);
	game["am_sprinting_time"] 	 					= GetV("int",   "am_sprinting_time",4,1,9);



	game["am_climbing"]  							= GetV("int",   "am_climbing",0,0,1);
	game["am_climbing_key"]  						= GetV("int",   "am_climbing_key",1,0,1);

	game["am_battlechatter"] 						= GetV("int",   "am_battlechatter",1,0,1);
	game["am_battlechatter_comments_probability"]	= GetV("int",   "am_battlechatter_comments_probability",40,0,100);

	game["am_healthbar"]  							= GetV("int",   "am_healthbar",1,0,1);
	game["am_health_regen"]  						= GetV("int",   "am_health_regen",0,0,1);
	game["am_health_drop"]  						= GetV("int",   "am_health_drop",1,0,1);

	game["am_bleeding"]								= GetV("int",   "am_bleeding",0,0,1);
	game["am_bleeding_start_if_health_less_than"]	= GetV("int",   "am_bleeding_start_if_health_less_than",50,1,80);
	game["am_bleeding_speed"]						= GetV("int",   "am_bleeding_speed",2,1,10);
	

	game["am_crosshairs"]  							= GetV("int",   "am_crosshairs",1,0,1);
	game["am_crosshair_red"]  						= GetV("int",   "am_crosshair_red",0,0,1);

	game["am_player_spawn_protect"] 				= GetV("int",   "am_player_spawn_protect",1,0,1);
	game["am_player_spawn_protect_time"] 			= GetV("int",   "am_player_spawn_protect_time",6,1,30);

	game["am_deathicons"] 							= GetV("int",   "am_deathicons",1,0,1);
	game["am_grenade_indicator"] 					= GetV("int",   "am_grenade_indicator",1,0,1);
	game["am_objective_indicator"]   				= GetV("int",   "am_objective_indicator",1,0,1);
	
	game["am_show_player_hit"]   					= GetV("int",   "am_show_player_hit",1,0,1);
	
	game["am_show_campers"]   						= GetV("int",   "am_show_campers",1,0,1);
	game["am_warn_campers_after_sec"]				= GetV("int",   "am_warn_campers_after_sec",30,30,360);
	game["am_indicate_campers_after_sec"]			= GetV("int",   "am_indicate_campers_after_sec",40,40,360);
	game["am_indicate_end_after_sec"]				= GetV("int",   "am_indicate_end_after_sec",60,30,480);
	
	
	game["am_show_welcome"] 						= GetV("int",   "am_show_welcome",1,0,1);
	game["am_show_roto_messages"] 					= GetV("int",   "am_show_roto_messages",1,0,1);

	game["am_show_next_map"] 						= GetV("int",   "am_show_next_map",1,0,1);
	game["am_show_next_map_loop_wait_time"] 		= GetV("int",   "am_show_next_map_loop_wait_time",30,20,360);


	game["am_weapon_arsenal"] 						= GetV("int",   "am_weapon_arsenal",0,0,1);
	game["am_max_weapon_slot_count"] 				= GetV("int",   "am_max_weapon_slot_count",4,3,10);
	game["am_give_pistol"] 							= GetV("int",   "am_give_pistol",1,0,1);
	
	game["am_grenade_return_throw"] 				= GetV("int",   "am_grenade_return_throw",1,0,1);

	game["am_only_rifles"] 							= GetV("int",   "am_only_rifles",0,0,1);
	game["am_only_snipers"] 						= GetV("int",   "am_only_snipers",0,0,1);

	game["am_squads"] 								= GetV("int",   "am_squads",0,0,1);
	game["am_max_players_in_squad"] 				= GetV("int",   "am_max_players_in_squad",4,2,6);
	game["am_max_dist_from_squad"] 					= GetV("int",   "am_max_dist_from_squad",1200,500,2000);
	game["am_clanmember_squads_enabled"] 			= GetV("int",   "am_clanmember_squads_enabled",0,0,1);
	game["am_squad_respawn_time"] 					= GetV("int",   "am_squad_respawn_time",45,5,120);

	game["am_squad_new_leader_text"] 				= GetV("string","am_squad_new_leader_text","^2The SQUAD ^7[#squadname#] #teamname# ^2 has a new Leader: ^7#playername#","","");
	game["am_squad_you_leader_text"] 				= GetV("string","am_squad_you_leader_text","^2You are the Leader of SQUAD ^7[#squadname#] #teamname#","","");



	game["am_change_unknown_soldier_names"]			= GetV("int",   "am_change_unknown_soldier_names",1,0,1);
	
	unknown_soldier_names = [];
	unknown_soldier_names[unknown_soldier_names.size] = "Luky Luke";
	unknown_soldier_names[unknown_soldier_names.size] = "Wizard Of War";
	unknown_soldier_names[unknown_soldier_names.size] = "Darth Vader";
	unknown_soldier_names[unknown_soldier_names.size] = "Luke Skywalker";
	unknown_soldier_names[unknown_soldier_names.size] = "Edgar";
	unknown_soldier_names[unknown_soldier_names.size] = "Garfield";
	unknown_soldier_names[unknown_soldier_names.size] = "Arnold Schwarzenegger";
	unknown_soldier_names[unknown_soldier_names.size] = "Grisu der kleine Drache";
	unknown_soldier_names[unknown_soldier_names.size] = "Frankenstein";
	unknown_soldier_names[unknown_soldier_names.size] = "Rumpelstilzchen";
	unknown_soldier_names[unknown_soldier_names.size] = "Donald Duck";
	unknown_soldier_names[unknown_soldier_names.size] = "Yoda";
   
    game["am_unknown_soldier_names"]     			= GetV("array_komma","am_unknown_soldier_names",unknown_soldier_names,"");
	


	squadnames_allies = [];	
	squadnames_allies[squadnames_allies.size] = "PEACE";
	squadnames_allies[squadnames_allies.size] = "ZULU";
	squadnames_allies[squadnames_allies.size] = "DROID";
	squadnames_allies[squadnames_allies.size] = "GAMMA";
	squadnames_allies[squadnames_allies.size] = "TIGER";
	squadnames_allies[squadnames_allies.size] = "EARTH";
	squadnames_allies[squadnames_allies.size] = "TARGET";
	squadnames_allies[squadnames_allies.size] = "COMMIT";
	squadnames_allies[squadnames_allies.size] = "DRONE";
	squadnames_allies[squadnames_allies.size] = "PATH";

	squadnames_axis = [];	
	squadnames_axis[squadnames_axis.size] = "ADLER";
	squadnames_axis[squadnames_axis.size] = "STURM";
	squadnames_axis[squadnames_axis.size] = "FUCHS";
	squadnames_axis[squadnames_axis.size] = "WIND";
	squadnames_axis[squadnames_axis.size] = "WUESTE";
	squadnames_axis[squadnames_axis.size] = "BORKE";
	squadnames_axis[squadnames_axis.size] = "EICHE";
	squadnames_axis[squadnames_axis.size] = "SIEG";
	squadnames_axis[squadnames_axis.size] = "EISEN";
	squadnames_axis[squadnames_axis.size] = "STAHL";

    game["am_squadnames_allies"]      				= GetV("array_komma","am_squadnames_allies",squadnames_allies,"");
    game["am_squadnames_axis"]      				= GetV("array_komma","am_squadnames_axis",squadnames_axis,"");




	game["am_anti_teamkill"] 						= GetV("int",   "am_anti_teamkill",1,0,1);
	game["am_if_teamkill_1_then_option"] 			= GetV("int",   "am_if_teamkill_1_then_option",1,1,5);
	game["am_if_teamkill_2_then_option"] 			= GetV("int",   "am_if_teamkill_2_then_option",2,1,5);
	game["am_if_teamkill_3_then_option"] 			= GetV("int",   "am_if_teamkill_3_then_option",3,1,5);
	game["am_if_teamkill_4_then_option"] 			= GetV("int",   "am_if_teamkill_4_then_option",4,1,5);
	game["am_if_teamkill_5_then_option"] 			= GetV("int",   "am_if_teamkill_5_then_option",5,1,5);
	
	game["am_teamkill_1_message"] 					= GetV("string","am_teamkill_1_message","^1Please pay attention to kill none of your teammembers!","","");
	game["am_teamkill_2_message"] 					= GetV("string","am_teamkill_2_message","^1Please pay attention to kill none of your teammembers!","","");
	game["am_teamkill_3_message"] 					= GetV("string","am_teamkill_3_message","^1Please pay attention to kill none of your teammembers!","","");
	game["am_teamkill_4_message"] 					= GetV("string","am_teamkill_4_message","^1Please pay attention to kill none of your teammembers!","","");
	game["am_teamkill_5_message"] 					= GetV("string","am_teamkill_5_message","^1Please pay attention to kill none of your teammembers!","","");

	game["am_switch_incative_player_to_spectator"]			= GetV("int",   "am_switch_incative_player_to_spectator",1,0,1);
	game["am_switch_incative_player_to_spectator_waittime"]	= GetV("int",   "am_switch_incative_player_to_spectator_waittime",60,10,120);


	game["am_laser_dot"] 							= GetV("int",   "am_laser_dot",0,0,1);
	game["am_laser_size"] 							= GetV("int",   "am_laser_size",2,0,10);
	game["am_laser_alpha"] 							= GetV("float", "am_laser_size",0.8,0,1);
	game["am_laser_color_red"] 						= GetV("float", "am_laser_color_red",1,0,1);
	game["am_laser_color_green"] 					= GetV("float", "am_laser_color_green",0,0,1);
	game["am_laser_color_blue"] 					= GetV("float", "am_laser_color_blue",0,0,1);
	game["am_laser_x_pos"] 							= GetV("float", "am_laser_x_pos",319.5,0,640);
	game["am_laser_y_pos"] 							= GetV("float", "am_laser_y_pos",241.5,0,480);


    game["am_player_life_board"]           			= GetV("int",   "am_player_life_board",1,0,1);
    game["am_player_life_board_dead_alpha"]			= GetV("float", "am_player_life_board_dead_alpha",0.4,0,1.0);
    
    game["am_player_shell_shock"]           		= GetV("int",   "am_player_shell_shock",1,0,1);

    game["am_secondary_weapon"]           			= GetV("int",   "am_secondary_weapon",0,0,1);
    game["am_secondary_weapon_selection_wait"]  	= GetV("int",   "am_secondary_weapon_selection_wait",5,5,20);

    game["am_enable_weapon_thompson_for_axis"]     	= GetV("int",   "am_enable_weapon_thompson_for_axis",1,0,1);
    game["am_give_players_thompson_second_weapon"] 	= GetV("int",   "am_give_players_thompson_second_weapon",0,0,1);
    
    game["am_enable_weapon_enfield_for_american"]   = GetV("int",   "am_enable_weapon_enfield_for_american",1,0,1);


    game["am_mortar_attacks"]              			= GetV("int",   "am_mortar_attacks",0,0,1);
    game["am_mortar_attacks_at_same_time"]    		= GetV("int",   "am_mortar_attacks_at_same_time",1,1,5);
    game["am_mortar_attacks_formation"]         	= GetV("string","am_mortar_attacks_formation","random","","");
    game["am_mortar_attacks_strength"]              = GetV("string","am_mortar_attacks_strength","random","","");
    game["am_mortar_attacks_min_wait"]              = GetV("int",   "am_mortar_attacks_min_wait",10,1,360);
    game["am_mortar_attacks_max_wait"]              = GetV("int",   "am_mortar_attacks_max_wait",45,15,360);
    game["am_mortar_attacks_damage_range"]  		= GetV("int",   "am_mortar_attacks_damage_range",400,0,1000);
    game["am_mortar_attacks_player_damage"]         = GetV("int",   "am_mortar_attacks_player_damage",50,0,100);
    game["am_mortar_attacks_target"]              	= GetV("string","am_mortar_attacks_target","random","","");
    game["am_mortar_explosion_silent"]              = GetV("int",   "am_mortar_explosion_silent",0,0,1);
    

	game["am_arm_hit_drop_weapon"]					= GetV("int",   "am_arm_hit_drop_weapon",1,0,1);


	game["am_weapon_drop"]							= GetV("int",   "am_weapon_drop",1,0,1);
	game["am_allow_nade_weapon_drop"]				= GetV("int",   "am_allow_nade_weapon_drop",1,0,1);
	game["am_allow_sniper_weapon_drop"]				= GetV("int",   "am_allow_sniper_weapon_drop",1,0,1);
	game["am_allow_shotgun_weapon_drop"]			= GetV("int",   "am_allow_shotgun_weapon_drop",1,0,1);


	game["am_weapon_limit"]							= GetV("int",   "am_weapon_limit",0,0,1);

	game["am_weapon_max_count"]["mosin_nagant_sniper_mp"] = GetV("int","am_weapon_mosin_nagant_sniper_mp_mp_max_count",-1,-1,100);
	game["am_weapon_max_count"]["enfield_scope_mp"]	= GetV("int",   "am_weapon_enfield_scope_mp_max_count",-1,-1,100);
	game["am_weapon_max_count"]["kar98k_sniper_mp"]	= GetV("int",   "am_weapon_kar98k_sniper_mp_max_count",-1,-1,100);
	game["am_weapon_max_count"]["springfield_mp"]	= GetV("int",   "am_weapon_springfield_mp_max_count",-1,-1,100);
	game["am_weapon_max_count"]["SVT40_mp"]			= GetV("int",   "am_weapon_svt40_mp_max_count",-1,-1,100);
	
	game["am_weapon_max_count"]["enfield_mp"]		= GetV("int",   "am_weapon_enfield_mp_max_count",-1,-1,100);
	game["am_weapon_max_count"]["kar98k_mp"]		= GetV("int",   "am_weapon_kar98k_mp_max_count",-1,-1,100);
	game["am_weapon_max_count"]["m1carbine_mp"]		= GetV("int",   "am_weapon_m1carbine_mp_max_count",-1,-1,100);
	game["am_weapon_max_count"]["m1garand_mp"]		= GetV("int",   "am_weapon_m1garand_mp_max_count",-1,-1,100);
	game["am_weapon_max_count"]["mosin_nagant_mp"]	= GetV("int",   "am_weapon_mosin_nagant_mp_max_count",-1,-1,100);
	game["am_weapon_max_count"]["g43_mp"]			= GetV("int",   "am_weapon_g43_mp_max_count",-1,-1,100);

	game["am_weapon_max_count"]["bar_mp"]			= GetV("int",   "am_weapon_bar_mp_max_count",-1,-1,100);
	game["am_weapon_max_count"]["bren_mp"]			= GetV("int",   "am_weapon_bren_mp_max_count",-1,-1,100);
	game["am_weapon_max_count"]["mp44_mp"]			= GetV("int",   "am_weapon_mp44_mp_max_count",-1,-1,100);
	game["am_weapon_max_count"]["ppsh_mp"]			= GetV("int",   "am_weapon_ppsh_mp_max_count",-1,-1,100);

	game["am_weapon_max_count"]["sten_mp"]			= GetV("int",   "am_weapon_sten_mp_max_count",-1,-1,100);
	game["am_weapon_max_count"]["mp40_mp"]			= GetV("int",   "am_weapon_mp40_mp_max_count",-1,-1,100);
	game["am_weapon_max_count"]["thompson_mp"]		= GetV("int",   "am_weapon_thompson_mp_max_count",-1,-1,100);
	game["am_weapon_max_count"]["PPS42_mp"]			= GetV("int",   "am_weapon_pps42_mp_max_count",-1,-1,100);
	game["am_weapon_max_count"]["greasegun_mp"]		= GetV("int",   "am_weapon_greasegun_mp_max_count",-1,-1,100);

	game["am_weapon_max_count"]["shotgun_mp"]		= GetV("int",   "am_weapon_shotgun_mp_max_count",-1,-1,100);
	
	game["am_weapon_max_count"]["smokegrenade"]		= GetV("int",   "am_weapon_smokegrenade_max_count",-1,-1,100);
	game["am_weapon_max_count"]["fraggrenade"]		= GetV("int",   "am_weapon_fraggrenade_max_count",-1,-1,100);

	game["am_weapon_max_count"]["colt_mp"]			= GetV("int",   "am_weapon_colt_mp_max_count",-1,-1,100);
	game["am_weapon_max_count"]["luger_mp"]			= GetV("int",   "am_weapon_luger_mp_max_count",-1,-1,100);
	game["am_weapon_max_count"]["webley_mp"]		= GetV("int",   "am_weapon_webley_mp_max_count",-1,-1,100);
	game["am_weapon_max_count"]["TT30_mp"]			= GetV("int",   "am_weapon_TT30_mp_max_count",-1,-1,100);

	game["am_weapon_max_count"]["panzerschreck_mp"]	= GetV("int",   "am_weapon_panzerschreck_mp_max_count",-1,-1,100);
	game["am_weapon_max_count"]["30cal_walk_mp"]	= GetV("int",   "am_weapon_30cal_walk_mp_max_count",-1,-1,100);
	game["am_weapon_max_count"]["mg42_bipod_walk_mp"] = GetV("int",   "am_weapon_mg42_bipod_walk_mp_max_count",-1,-1,100);
	game["am_weapon_max_count"]["mortar_cannon_walk_mp"] = GetV("int",   "am_weapon_mortar_cannon_walk_mp_max_count",-1,-1,100);



	game["am_use_player_class_system"]				= GetV("int",   "am_use_player_class_system",0,0,1);
	game["am_class_tnt_ignore_plant_team"]			= GetV("int",   "am_class_tnt_ignore_plant_team",1,0,1);
	game["am_class_spy_can_climb"]					= GetV("int",   "am_class_spy_can_climb",1,0,1);

	game["am_points_for_tnt_kill"]					= GetV("int",	"am_points_for_tnt_kill",0,1,20);


	game["am_class_show_medic_damage_heart_if_health_less_than"] = GetV("int",   "am_class_show_medic_damage_heart_if_health_less_than",50,0,100);


	game["am_player_class_limit"]					= GetV("int",   "am_player_class_limit",0,0,1);
	
	game["am_player_class_max_0"]					= GetV("int",   "am_class_soldier_light_limit",-1,-1,100);
	game["am_player_class_max_1"]					= GetV("int",   "am_class_soldier_heavy_limit",-1,-1,100);
	game["am_player_class_max_2"]					= GetV("int",   "am_class_soldier_support_limit",-1,-1,100);
	game["am_player_class_max_3"]					= GetV("int",   "am_class_sharpshooter_limit",-1,-1,100);
	game["am_player_class_max_4"]					= GetV("int",   "am_class_medic_limit",-1,-1,100);
	game["am_player_class_max_5"]					= GetV("int",   "am_class_tnt_limit",-1,-1,100);
	game["am_player_class_max_6"]					= GetV("int",   "am_class_officer_limit",-1,-1,100);
	game["am_player_class_max_7"]					= GetV("int",   "am_class_spy_limit",-1,-1,100);



    game["am_admiral_mod_server_search_option"]		= GetV("int","am_admiral_mod_server_search_option",1,0,1);

	game["am_empty_server_map_rotation"]			= GetV("int",   "am_empty_server_map_rotation",0,0,1);
	game["am_empty_server_map_rotation_waittime"]	= GetV("int",   "am_empty_server_map_rotation_waittime",0,360,720);

	game["am_artillery_marker"]						= GetV("int",   "am_artillery_marker",1,0,1);
	game["am_third_person_spectate"]				= GetV("int",   "am_third_person_spectate",0,0,1);
	
	game["am_anti_bunny_hopper_shooters"]			= GetV("int",   "am_anti_bunny_hopper_shooters",1,0,1);



	maplist = [];	
	maplist[maplist.size] = "breakout";
	maplist[maplist.size] = "brecourt";
	maplist[maplist.size] = "burgundy";
	maplist[maplist.size] = "carentan";
	maplist[maplist.size] = "dawnville";
	maplist[maplist.size] = "decoy";
	maplist[maplist.size] = "downtown";
	maplist[maplist.size] = "farmhouse";
	maplist[maplist.size] = "leningrad";
	maplist[maplist.size] = "matmata";
	maplist[maplist.size] = "railyard";
	maplist[maplist.size] = "toujane";
	maplist[maplist.size] = "trainstation";
	maplist[maplist.size] = "rhine";
	maplist[maplist.size] = "harbor";

	gametypelist = [];	
	gametypelist[gametypelist.size] = "ctf";
	gametypelist[gametypelist.size] = "ctfb";
	gametypelist[gametypelist.size] = "ctb";
	gametypelist[gametypelist.size] = "dm";
	gametypelist[gametypelist.size] = "dom";
	gametypelist[gametypelist.size] = "ein";
	gametypelist[gametypelist.size] = "hq";
	gametypelist[gametypelist.size] = "hq2";
	gametypelist[gametypelist.size] = "noz";
	gametypelist[gametypelist.size] = "sd";
	gametypelist[gametypelist.size] = "sdr";
	gametypelist[gametypelist.size] = "csd";
	gametypelist[gametypelist.size] = "tdm";
	gametypelist[gametypelist.size] = "mm";

	game["am_vote_maps"] = [];

    game["am_vote_map"]								= GetV("int","am_vote_map",0,0,1);
    game["am_vote_gametype"]						= GetV("int","am_vote_gametype",0,0,1);
    game["am_vote_time"]							= GetV("int","am_vote_time",30,10,45);    
    game["am_vote_only_clanmembers"]				= GetV("int","am_vote_only_clanmembers",0,0,1);
    game["am_vote_maps_orig"]      					= GetV("array_komma","am_vote_maps",maplist,"","");
    game["am_vote_gametypes"]              			= GetV("array_komma","am_vote_gametypes",gametypelist,"","");
    game["am_allow_vote_custom_maps"]				= GetV("int","am_allow_vote_custom_maps",0,0,1);    

    game["am_hud_style"]							= GetV("int","am_hud_style",1,1,2);    


    game["am_max_turrets"]							= GetV("int","am_max_turrets",10,0,10);
    
	game["am_clanmember_tag"]    					= GetV("string","am_clanmember_tag","[CLAN]","","");
    
    game["am_player_artillerie"]					= GetV("int","am_player_artillerie",1,0,1);
    game["am_player_artillerie_needed_score"]		= GetV("int","am_player_artillerie_needed_score",40,0,100);
    game["am_player_artillerie_max_strikes"]		= GetV("int","am_player_artillerie_max_strikes",3,1,10);
    game["am_player_artillerie_delay_first_strike"]	= GetV("int","am_player_artillerie_delay_first_strike",45,1,360);
    game["am_player_artillerie_delay_next_strikes"]	= GetV("int","am_player_artillerie_delay_next_strikes",75,1,360);
    game["am_player_artillerie_damage_range"]		= GetV("int","am_player_artillerie_damage_range",400,1,1000);
    game["am_player_artillerie_player_damage"]		= GetV("int","am_player_artillerie_player_damage",50,1,100);
	game["am_points_for_artillerie_kill"]			= GetV("int","am_points_for_artillerie_kill",0,1,20);


	game["am_hostname"]								= GetV("string","sv_hostname","Hostname","","");
	game["am_mapname"]              				= GetV("string","mapname","mp_carentan","","");
    game["am_gametype"]             				= maps\mp\gametypes\_admiral_mod_utils::toLower(GetV("string","g_gametype","sd","",""));
    game["am_sv_mapRotation"]       				= GetV("string","sv_mapRotation","map mp_carentan","","");

    game["am_healthqueue"] 							= [];
    game["am_healthqueuecurrent"] 					= 0;

    game["am_weaponqueue"] 							= [];
    game["am_weaponqueuecurrent"] 					= 0;

	game["am_delete_dropped_weapon_time"]			= GetV("int","am_delete_dropped_weapon_time",120,0,240);



    game["am_welcome_msg"]      					= GetV("array","am_welcome_msg","","","");
    game["am_messages"]              				= GetV("array","am_messages","","","");

    game["am_show_clan_logo_text"]					= GetV("int","am_show_clan_logo_text",1,0,1);
    game["am_clan_logo_text_xpos"]					= GetV("int","am_clan_logo_text_xpos",185,0,640);
    game["am_clan_logo_text_ypos"]					= GetV("int","am_clan_logo_text_ypos",468,0,480);
    game["am_clan_logo_text_alpha"]					= GetV("float","am_clan_logo_text_alpha",0.5,0,1);

    game["am_show_clan_logo_graphic"]				= GetV("int","am_show_clan_logo_graphic",1,0,1);
    game["am_clan_logo_graphic_xpos"]				= GetV("int","am_clan_logo_graphic_xpos",230,0,640);
    game["am_clan_logo_graphic_ypos"]				= GetV("int","am_clan_logo_graphic_ypos",430,0,480);
    game["am_clan_logo_graphic_width"]				= GetV("int","am_clan_logo_graphic_width",100,1,640);
    game["am_clan_logo_graphic_height"]				= GetV("int","am_clan_logo_graphic_height",100,1,480);
    game["am_clan_logo_graphic_alpha"]				= GetV("float","am_clan_logo_graphic_alpha",0.2,0,1);


    game["am_enable_player_rank"]					= GetV("int","am_enable_player_rank",1,0,1);
	game["am_rank_2_min_points"]					= GetV("int","am_rank_2_min_points",10,1,100);
	game["am_rank_3_min_points"]					= GetV("int","am_rank_3_min_points",20,1,100);
	game["am_rank_4_min_points"]					= GetV("int","am_rank_4_min_points",30,1,100);
	game["am_rank_5_min_points"]					= GetV("int","am_rank_5_min_points",40,1,100);	

	game["am_if_rank_1_add_fraggrenades"]			= GetV("int","am_if_rank_1_add_fraggrenades",0,0,10);
	game["am_if_rank_2_add_fraggrenades"]			= GetV("int","am_if_rank_2_add_fraggrenades",1,0,10);
	game["am_if_rank_3_add_fraggrenades"]			= GetV("int","am_if_rank_3_add_fraggrenades",2,0,10);
	game["am_if_rank_4_add_fraggrenades"]			= GetV("int","am_if_rank_4_add_fraggrenades",3,0,10);
	game["am_if_rank_5_add_fraggrenades"]			= GetV("int","am_if_rank_5_add_fraggrenades",3,0,10);
	game["am_if_rank_1_add_smokegrenades"]			= GetV("int","am_if_rank_1_add_smokegrenades",0,0,10);
	game["am_if_rank_2_add_smokegrenades"]			= GetV("int","am_if_rank_2_add_smokegrenades",0,0,10);
	game["am_if_rank_3_add_smokegrenades"]			= GetV("int","am_if_rank_3_add_smokegrenades",1,0,10);
	game["am_if_rank_4_add_smokegrenades"]			= GetV("int","am_if_rank_4_add_smokegrenades",2,0,10);
	game["am_if_rank_5_add_smokegrenades"]			= GetV("int","am_if_rank_5_add_smokegrenades",2,0,10);

	game["am_give_artillery_by_rank_nr"]			= GetV("int","am_give_artillery_by_rank_nr",5,1,5);
	
	game["am_reduce_ammo_per_rank"]					= GetV("int","am_reduce_ammo_per_rank",1,0,1);

	game["am_nades"]["rifle"]						= GetV("int",	"am_weapon_rifle_nades_count",-1,-1,10);
	game["am_nades"]["automatic_rifle"]				= GetV("int",	"am_weapon_automatic_rifle_nades_count",-1,-1,10);
	game["am_nades"]["small_mg"]					= GetV("int",	"am_weapon_small_mg_nades_count",-1,-1,10);
	game["am_nades"]["mg"]							= GetV("int",	"am_weapon_mg_nades_count",-1,-1,10);
	game["am_nades"]["sniper"]						= GetV("int",	"am_weapon_sniper_nades_count",-1,-1,10);
	game["am_nades"]["shotgun"]						= GetV("int",	"am_weapon_shotgun_nades_count",-1,-1,10);
	
	game["am_smokes"]["rifle"]						= GetV("int",	"am_weapon_rifle_smokes_count",-1,-1,10);
	game["am_smokes"]["automatic_rifle"]			= GetV("int",	"am_weapon_automatic_rifle_smokes_count",-1,-1,10);
	game["am_smokes"]["small_mg"]					= GetV("int",	"am_weapon_small_mg_smokes_count",-1,-1,10);
	game["am_smokes"]["mg"]							= GetV("int",	"am_weapon_mg_smokes_count",-1,-1,10);
	game["am_smokes"]["sniper"]						= GetV("int",	"am_weapon_sniper_smokes_count",-1,-1,10);
	game["am_smokes"]["shotgun"]					= GetV("int",	"am_weapon_shotgun_smokes_count",-1,-1,10);



	game["am_weapon_damage_modifiers"]					= GetV("int","am_weapon_damage_modifiers",0,0,1);

    game["am_weapon_damage"]["luger_mp"]				= GetV("float","am_weapon_damagex_luger_mp",1.0,0.1,5);
    game["am_weapon_damage"]["webley_mp"]				= GetV("float","am_weapon_damagex_webley_mp",1.0,0.1,5);
    game["am_weapon_damage"]["TT30_mp"]					= GetV("float","am_weapon_damagex_TT30_mp",1.0,0.1,5);
    game["am_weapon_damage"]["colt_mp"]					= GetV("float","am_weapon_damagex_colt_mp",1.0,0.1,5);

    game["am_weapon_damage"]["mp40_mp"]					= GetV("float","am_weapon_damagex_mp40_mp",1.0,0.1,5);
    game["am_weapon_damage"]["mp44_mp"]					= GetV("float","am_weapon_damagex_mp44_mp",1.0,0.1,5);
    game["am_weapon_damage"]["bren_mp"]					= GetV("float","am_weapon_damagex_bren_mp",1.0,0.1,5);
    game["am_weapon_damage"]["bar_mp"]					= GetV("float","am_weapon_damagex_bar_mp",1.0,0.1,5);
    game["am_weapon_damage"]["greasegun_mp"]			= GetV("float","am_weapon_damagex_greasegun_mp",1.0,0.1,5);

    game["am_weapon_damage"]["thompson_mp"]				= GetV("float","am_weapon_damagex_thompson_mp",1.0,0.1,5);
    game["am_weapon_damage"]["PPS42_mp"]				= GetV("float","am_weapon_damagex_PPS42_mp",1.0,0.1,5);
    game["am_weapon_damage"]["ppsh_mp"]					= GetV("float","am_weapon_damagex_ppsh_mp",1.0,0.1,5);
    game["am_weapon_damage"]["sten_mp"]					= GetV("float","am_weapon_damagex_sten_mp",1.0,0.1,5);
  
    game["am_weapon_damage"]["m1carbine_mp"]			= GetV("float","am_weapon_damagex_m1carbine_mp",1.0,0.1,5);
    game["am_weapon_damage"]["g43_mp"]					= GetV("float","am_weapon_damagex_g43_mp",1.0,0.1,5); 
    game["am_weapon_damage"]["mosin_nagant_mp"]			= GetV("float","am_weapon_damagex_mosin_nagant_mp",1.0,0.1,5);
    game["am_weapon_damage"]["m1garand_mp"]				= GetV("float","am_weapon_damagex_m1garand_mp",1.0,0.1,5);
    game["am_weapon_damage"]["enfield_mp"]				= GetV("float","am_weapon_damagex_enfield_mp",1.0,0.1,5);
    game["am_weapon_damage"]["kar98k_mp"]				= GetV("float","am_weapon_damagex_kar98k_mp",1.0,0.1,5);
    game["am_weapon_damage"]["SVT40_mp"]				= GetV("float","am_weapon_damagex_SVT40_mp",1.0,0.1,5);

    game["am_weapon_damage"]["kar98k_sniper_mp"]		= GetV("float","am_weapon_damagex_kar98k_sniper_mp",1.0,0.1,5);
    game["am_weapon_damage"]["mosin_nagant_sniper_mp"]	= GetV("float","am_weapon_damagex_mosin_nagant_sniper_mp",1.0,0.1,5);
    game["am_weapon_damage"]["enfield_scope_mp"]		= GetV("float","am_weapon_damagex_enfield_scope_mp",1.0,0.1,5);
    game["am_weapon_damage"]["springfield_sniper_mp"]	= GetV("float","am_weapon_damagex_springfield_sniper_mp",1.0,0.1,5);

    game["am_weapon_damage"]["shotgun_mp"]				= GetV("float","am_weapon_damagex_shotgun_mp",1.0,0.1,5);

    game["am_weapon_damage"]["frag_grenade_british_mp"]	= GetV("float","am_weapon_damagex_frag_grenade_british_mp",1.0,0.1,5);
    game["am_weapon_damage"]["frag_grenade_german_mp"]	= GetV("float","am_weapon_damagex_frag_grenade_german_mp",1.0,0.1,5);
    game["am_weapon_damage"]["frag_grenade_american_mp"]= GetV("float","am_weapon_damagex_frag_grenade_american_mp",1.0,0.1,5);
    game["am_weapon_damage"]["frag_grenade_russian_mp"]	= GetV("float","am_weapon_damagex_frag_grenade_russian_mp",1.0,0.1,5);

    game["am_weapon_damage"]["panzerschreck_mp"]		= GetV("float","am_weapon_damagex_panzerschreck_mp",1.0,0.1,5);
    
    game["am_weapon_damage"]["30cal_stand_mp"]			= GetV("float","am_weapon_damagex_30cal",1.0,0.1,5);
    game["am_weapon_damage"]["30cal_duck_mp"]			= game["am_weapon_damage"]["30cal_stand_mp"];
    game["am_weapon_damage"]["30cal_prone_mp"]			= game["am_weapon_damage"]["30cal_stand_mp"];
    game["am_weapon_damage"]["30cal_walk_mp"]			= game["am_weapon_damage"]["30cal_stand_mp"];
    game["am_weapon_damage"]["mg42_bipod_stand_mp"]		= GetV("float","am_weapon_damagex_mg42",1.0,0.1,5);
    game["am_weapon_damage"]["mg42_bipod_duck_mp"]		= game["am_weapon_damage"]["mg42_bipod_stand_mp"];
    game["am_weapon_damage"]["mg42_bipod_prone_mp"]		= game["am_weapon_damage"]["mg42_bipod_stand_mp"];
    game["am_weapon_damage"]["mg42_bipod_walk_mp"]		= game["am_weapon_damage"]["mg42_bipod_stand_mp"];


	game["am_boats"]   								= GetV("int",   "am_boats",0,0,1);

	game["am_sd_show_bomb_timer"]   				= GetV("int",   "am_sd_show_bomb_timer",1,0,1);
	game["am_sd_random_bomb_timer"]   				= GetV("int",   "am_sd_random_bomb_timer",0,0,1);
	game["am_sd_random_timer_from"]   				= GetV("int",   "am_sd_random_timer_from",50,30,120);
	game["am_sd_random_timer_till"]   				= GetV("int",   "am_sd_random_timer_till",75,30,240);

	game["am_sdr_show_bomb_timer"]   				= GetV("int",   "am_sdr_show_bomb_timer",1,0,1);
	game["am_sdr_random_bomb_timer"]   				= GetV("int",   "am_sdr_random_bomb_timer",0,0,1);
	game["am_sdr_random_timer_from"]   				= GetV("int",   "am_sdr_random_timer_from",50,30,120);
	game["am_sdr_random_timer_till"]   				= GetV("int",   "am_sdr_random_timer_till",75,30,240);


	
	game["am_csd_plant_team"]   					= GetV("int",   "am_csd_plant_team",1,0,1);
	game["am_csd_switch_axis_spawn_when_attackers"] = GetV("int",   "am_csd_switch_axis_spawn_when_attackers",0,0,1);
	game["am_csd_use_cs_original_sounds"]   		= GetV("int",   "am_csd_use_cs_original_sounds",1,0,1);
	
	game["am_csd_show_bomb_timer"]   				= GetV("int",   "am_csd_show_bomb_timer",1,0,1);
	game["am_csd_random_bomb_timer"]   				= GetV("int",   "am_csd_random_bomb_timer",0,0,1);
	game["am_csd_random_timer_from"]   				= GetV("int",   "am_csd_random_timer_from",50,30,120);
	game["am_csd_random_timer_till"]   				= GetV("int",   "am_csd_random_timer_till",75,30,240);


	game["am_ctf_points_capture_flag"]   			= GetV("int",   "am_ctf_points_capture_flag",10,1,50);
	game["am_ctf_points_returned_flag"]   			= GetV("int",   "am_ctf_points_returned_flag",2,1,50);
	
	game["am_ctfb_points_capture_flag"]   			= GetV("int",   "am_ctfb_points_capture_flag",10,1,50);
	game["am_ctfb_points_returned_flag"]   			= GetV("int",   "am_ctfb_points_returned_flag",2,1,50);

	game["am_ctb_points_capture_flag"]   			= GetV("int",   "am_ctb_points_capture_flag",10,1,50);
	game["am_ctb_points_returned_flag"]   			= GetV("int",   "am_ctb_points_returned_flag",2,1,50);

	game["am_dom_points_capture_flag"]   			= GetV("int",   "am_dom_points_capture_flag",5,1,50);

	game["am_sd_points_bomb_planted"]   			= GetV("int",   "am_sd_points_bomb_planted",5,1,50);
	game["am_sd_points_bomb_defused"]   			= GetV("int",   "am_sd_points_bomb_defused",5,1,50);
	game["am_sdr_points_bomb_planted"]   			= GetV("int",   "am_sdr_points_bomb_planted",5,1,50);
	game["am_sdr_points_bomb_defused"]   			= GetV("int",   "am_sdr_points_bomb_defused",5,1,50);
	game["am_csd_points_bomb_planted"]   			= GetV("int",   "am_csd_points_bomb_planted",5,1,50);
	game["am_csd_points_bomb_defused"]   			= GetV("int",   "am_csd_points_bomb_defused",5,1,50);
	
	game["am_ctf_respawn_delay"]   					= GetV("int",   "am_ctf_respawn_delay",10,1,60);
	game["am_ctfb_respawn_delay"]   				= GetV("int",   "am_ctfb_respawn_delay",10,1,60);
	game["am_ctb_respawn_delay"]   					= GetV("int",   "am_ctb_respawn_delay",10,1,60);
	game["am_dom_respawn_delay"]   					= GetV("int",   "am_dom_respawn_delay",10,1,60);
	game["am_hq_respawn_delay"]   					= GetV("int",   "am_hq_respawn_delay",10,1,60);
	game["am_hq2_respawn_delay"]   					= GetV("int",   "am_hq2_respawn_delay",10,1,60);


  	
	maps\mp\gametypes\_admiral_mod_clan_logo_text::SetClanLogoText();
	
	

	

	if(game["am_gametype"] == "sd" || game["am_gametype"] == "sdr" || game["am_gametype"] == "csd" || game["am_gametype"] == "hq" || game["am_gametype"] == "hq2" || game["am_gametype"] == "ctf" || game["am_gametype"] == "ctfb" || game["am_gametype"] == "ctb" ) {
	
		game["am_boats"] = 0;
	}
	else {

		game["am_boats"] = 0;

		/*		
		pos = 0;

		for(i=0;i<10;i++) {

			xs = GetV("int","boat_" + i + "_on_" + game["am_mapname"] +  "_start_pos_x",-1,-30000,30000);
			ys = GetV("int","boat_" + i + "_on_" + game["am_mapname"] +  "_start_pos_y",-1,-30000,30000);
			zs = GetV("int","boat_" + i + "_on_" + game["am_mapname"] +  "_start_pos_z",-1,-30000,30000);
			
			xe = GetV("int","boat_" + i + "_on_" + game["am_mapname"] +  "_end_pos_x",-1,-30000,30000);
			ye = GetV("int","boat_" + i + "_on_" + game["am_mapname"] +  "_end_pos_y",-1,-30000,30000);
			ze = GetV("int","boat_" + i + "_on_" + game["am_mapname"] +  "_end_pos_z",-1,-30000,30000);
			
			if(xs != -1 && ys != -1 && zs != -1 && xe != -1 && ye != -1 && ze != -1) {
		

				game["boat_map_pos"][pos][game["am_mapname"] + "_start"] 	= (xs,ys,zs);
				game["boat_map_pos"][pos][game["am_mapname"] + "_end"] 		= (xe,ye,ze);
				
				pos++;	
			}
		}	
		*/
	}



	// * Bei folgenden Gametypen kein Spawnschutz *
	//if(game["am_gametype"] == "sd" || game["am_gametype"] == "sdr" || game["am_gametype"] == "csd") game["am_player_spawn_protect"] = 0;




	// * Wenn Tournament-Mode, dann Settings laden *
	if(game["am_tournament_mode"] == 1 && game["am_tournament_league_setting"] != "free") {
			
		if(game["am_gametype"] == "sd") {
		
			if(game["am_tournament_league_setting"] == "am_cup") 		maps\mp\league_settings\sd\am_cup::init();
			if(game["am_tournament_league_setting"] == "cal") 			maps\mp\league_settings\sd\cal::init();
			if(game["am_tournament_league_setting"] == "cal_euro") 		maps\mp\league_settings\sd\cal_euro::init();
			if(game["am_tournament_league_setting"] == "cb_1v1") 		maps\mp\league_settings\sd\cb_1v1::init();
			if(game["am_tournament_league_setting"] == "cb_2v2") 		maps\mp\league_settings\sd\cb_2v2::init();
			if(game["am_tournament_league_setting"] == "esl") 			maps\mp\league_settings\sd\esl::init();
			if(game["am_tournament_league_setting"] == "esl_1v1") 		maps\mp\league_settings\sd\esl_1v1::init();
			if(game["am_tournament_league_setting"] == "esl_2v2") 		maps\mp\league_settings\sd\esl_2v2::init();
			if(game["am_tournament_league_setting"] == "esleu") 		maps\mp\league_settings\sd\esleu::init();
			if(game["am_tournament_league_setting"] == "esleu_2v2") 	maps\mp\league_settings\sd\esleu_2v2::init();
			if(game["am_tournament_league_setting"] == "eurocup") 		maps\mp\league_settings\sd\eurocup::init();
			if(game["am_tournament_league_setting"] == "lgz") 			maps\mp\league_settings\sd\lgz::init();
			if(game["am_tournament_league_setting"] == "lgz_1v1") 		maps\mp\league_settings\sd\lgz_1v1::init();
			if(game["am_tournament_league_setting"] == "lgz_2v2") 		maps\mp\league_settings\sd\lgz_2v2::init();
			if(game["am_tournament_league_setting"] == "opencup") 		maps\mp\league_settings\sd\opencup::init();
			if(game["am_tournament_league_setting"] == "twl_eu_ladder")	maps\mp\league_settings\sd\twl_eu_ladder::init();
			if(game["am_tournament_league_setting"] == "twl_eu_league") maps\mp\league_settings\sd\twl_eu_league::init();
			if(game["am_tournament_league_setting"] == "twl_ladder") 	maps\mp\league_settings\sd\twl_ladder::init();
			if(game["am_tournament_league_setting"] == "twl_league") 	maps\mp\league_settings\sd\twl_league::init();
		}
		if(game["am_gametype"] == "sdr") {
		
			if(game["am_tournament_league_setting"] == "am_cup") 		maps\mp\league_settings\sdr\am_cup::init();
			if(game["am_tournament_league_setting"] == "cal") 			maps\mp\league_settings\sdr\cal::init();
			if(game["am_tournament_league_setting"] == "cal_euro") 		maps\mp\league_settings\sdr\cal_euro::init();
			if(game["am_tournament_league_setting"] == "cb_1v1") 		maps\mp\league_settings\sdr\cb_1v1::init();
			if(game["am_tournament_league_setting"] == "cb_2v2") 		maps\mp\league_settings\sdr\cb_2v2::init();
			if(game["am_tournament_league_setting"] == "esl") 			maps\mp\league_settings\sdr\esl::init();
			if(game["am_tournament_league_setting"] == "esl_1v1") 		maps\mp\league_settings\sdr\esl_1v1::init();
			if(game["am_tournament_league_setting"] == "esl_2v2") 		maps\mp\league_settings\sdr\esl_2v2::init();
			if(game["am_tournament_league_setting"] == "esleu") 		maps\mp\league_settings\sdr\esleu::init();
			if(game["am_tournament_league_setting"] == "esleu_2v2") 	maps\mp\league_settings\sdr\esleu_2v2::init();
			if(game["am_tournament_league_setting"] == "eurocup") 		maps\mp\league_settings\sdr\eurocup::init();
			if(game["am_tournament_league_setting"] == "lgz") 			maps\mp\league_settings\sdr\lgz::init();
			if(game["am_tournament_league_setting"] == "lgz_1v1") 		maps\mp\league_settings\sdr\lgz_1v1::init();
			if(game["am_tournament_league_setting"] == "lgz_2v2") 		maps\mp\league_settings\sdr\lgz_2v2::init();
			if(game["am_tournament_league_setting"] == "opencup") 		maps\mp\league_settings\sdr\opencup::init();
			if(game["am_tournament_league_setting"] == "twl_eu_ladder")	maps\mp\league_settings\sdr\twl_eu_ladder::init();
			if(game["am_tournament_league_setting"] == "twl_eu_league") maps\mp\league_settings\sdr\twl_eu_league::init();
			if(game["am_tournament_league_setting"] == "twl_ladder") 	maps\mp\league_settings\sdr\twl_ladder::init();
			if(game["am_tournament_league_setting"] == "twl_league") 	maps\mp\league_settings\sdr\twl_league::init();
		}
		if(game["am_gametype"] == "csd") {
		
			if(game["am_tournament_league_setting"] == "am_cup") 		maps\mp\league_settings\csd\am_cup::init();
			if(game["am_tournament_league_setting"] == "cal") 			maps\mp\league_settings\csd\cal::init();
			if(game["am_tournament_league_setting"] == "cal_euro") 		maps\mp\league_settings\csd\cal_euro::init();
			if(game["am_tournament_league_setting"] == "cb_1v1") 		maps\mp\league_settings\csd\cb_1v1::init();
			if(game["am_tournament_league_setting"] == "cb_2v2") 		maps\mp\league_settings\csd\cb_2v2::init();
			if(game["am_tournament_league_setting"] == "esl") 			maps\mp\league_settings\csd\esl::init();
			if(game["am_tournament_league_setting"] == "esl_1v1") 		maps\mp\league_settings\csd\esl_1v1::init();
			if(game["am_tournament_league_setting"] == "esl_2v2") 		maps\mp\league_settings\csd\esl_2v2::init();
			if(game["am_tournament_league_setting"] == "esleu") 		maps\mp\league_settings\csd\esleu::init();
			if(game["am_tournament_league_setting"] == "esleu_2v2") 	maps\mp\league_settings\csd\esleu_2v2::init();
			if(game["am_tournament_league_setting"] == "eurocup") 		maps\mp\league_settings\csd\eurocup::init();
			if(game["am_tournament_league_setting"] == "lgz") 			maps\mp\league_settings\csd\lgz::init();
			if(game["am_tournament_league_setting"] == "lgz_1v1") 		maps\mp\league_settings\csd\lgz_1v1::init();
			if(game["am_tournament_league_setting"] == "lgz_2v2") 		maps\mp\league_settings\csd\lgz_2v2::init();
			if(game["am_tournament_league_setting"] == "opencup") 		maps\mp\league_settings\csd\opencup::init();
			if(game["am_tournament_league_setting"] == "twl_eu_ladder")	maps\mp\league_settings\csd\twl_eu_ladder::init();
			if(game["am_tournament_league_setting"] == "twl_eu_league") maps\mp\league_settings\csd\twl_eu_league::init();
			if(game["am_tournament_league_setting"] == "twl_ladder") 	maps\mp\league_settings\csd\twl_ladder::init();
			if(game["am_tournament_league_setting"] == "twl_league") 	maps\mp\league_settings\csd\twl_league::init();
		}
		if(game["am_gametype"] == "tdm") {
		
			if(game["am_tournament_league_setting"] == "am_cup") 		maps\mp\league_settings\tdm\am_cup::init();
		}
		
	}




	
	game["am_vars_done"] = true;
			
}










// * Hilfsroutinen *


GetV(typ, name, standart, min, max) {


	if(typ == "int") {

		if(getcvar(name) == "") x = standart;
		else					x = getcvarint(name);
        
        if(x < min) x = min;
        if(x > max) x = max;
        
		return x;
	}
    
	if(typ == "float") {

		if(getcvar(name) == "") x = standart;
		else					x = getcvarfloat(name);

		if(x < min) x = min;
		if(x > max) x = max;
        
		return x;
	}

	if(typ == "string") {
    
		if(getcvar(name) == "") x = standart;
		else					x = getcvar(name);
        
		return x;
	}
        
	if(typ == "array") {
    
		z   = 0;
		n   = name + "_" + z;
        
		if(getcvar(n) != "")    ar[z] = getcvar(n);
		else {                  
	            
			return standart;
		}
        
		while(1) {
        
			z++;
			n = name + "_" + z;
            
			if(getcvar(n) != "")	{
				
				ar[z] = getcvar(n);
				
				if(ar[z] == "<newline>") ar[z] = " ";				
			}
			else break;                      
		}
        
		return ar;
	}   
	
	if(typ == "array_komma") {
    
		 
		if(getcvar(name) != "")    v = getcvar(name);
		else {                  
	            
			return standart;
		}
        
        ar = maps\mp\gametypes\_admiral_mod_utils::str_split(v,",");	
        
		return ar;
	}   	
	
}