
--------------------------------------------------------------------------------
-- Variables
--------------------------------------------------------------------------------
shape_name					= "M-2000C-CPT"
is_EDM						= true
new_model_format			= true

ambient_light				= {255,255,255}
ambient_color_day_texture	= {255, 0, 0}
ambient_color_night_texture	= {40, 60 ,150}
ambient_color_from_devices	= {50, 50, 40}
ambient_color_from_panels	= {35, 25, 25}
dusk_border					= 0.4

draw_pilot					= false
external_model_canopy_arg	= 38

use_external_views			= false
cockpit_local_point			= {2.930, 1.060, 0.000}

day_texture_set_value		= 0.0
night_texture_set_value		= 0.1

local controllers			= LoRegisterPanelControls()

-- LIVERY
dofile(LockOn_Options.common_script_path.."tools.lua")
livery = get_livery_setting_from_plugin("M-2000C")

--
Z_test =
{
	near = 0.05,
	far  = 4.0,
}


args_initial_state = 
{
}

local showPilot = get_option_value("miscellaneous.show_pilot_body","local")
if showPilot then 
	args_initial_state[1000] = 1.0
end


--------------------------------------------------------------------------------
-- Mirror
--------------------------------------------------------------------------------
mirrors_data =
{
    width			= 0.702, -- 0.265
    aspect			= 2, -- 1.5
    rotation		= math.rad(-25); -- -13.5
    animation_speed	= 2.0;
    near_clip		= 0.1;
    middle_clip		= 10;
    far_clip		= 60000;
    connector		= "M2KC_CPT_MIRROR",
}

mirrors_draw                    = CreateGauge()
mirrors_draw.arg_number    		= 183
mirrors_draw.input   			= {0,1}
mirrors_draw.output   			= {1,0}
mirrors_draw.controller         = controllers.mirrors_draw

need_to_be_closed			= true -- close lua state after initialization
