--OT-64_SKOT

GT = {};
GT_t.ws = 0;

--chassis
set_recursive_metatable(GT, GT_t.generic_wheel_vehicle,generic_vehicle);
set_recursive_metatable(GT, GT_t.generic_wheel_IFV, generic_wheel_vehicle);


GT_t.CH_t.OT64SKOT = { 
life = 3,
mass = 12840,
length = 8.65,
width = 2.25,
max_road_velocity = 94,  
max_slope = 1.4,
canSwim = true,
canWade = true,
engine_power = 180,
max_vert_obstacle = 0.6,
max_acceleration = 1.28,
min_turn_radius = 11,
X_gear_1 = 2.504,
Y_gear_1 = 0,
Z_gear_1 = 0.825,
X_gear_2 = -2.608,
Y_gear_2 = 0,
Z_gear_2 = 0.825,
r_max = 0.65, 
armour_thickness = 0.003,
gear_type = GT_t.GEAR_TYPES.WHEELS,
};
 

set_recursive_metatable(GT.chassis, GT_t.CH_t.OT64SKOT);

GT.DM = {
	{ area_name = "BODY",         armour = {width=0.010}},
  { area_name = "TURRET_BASE",  armour = {width=0.010}},
  { area_name = "TURRET",       armour = {width=0.010}},  
}

GT.visual.shape = "OT-64 SKOT";
GT.visual.shape_dstr = "OT-64 SKOT_DM";


GT.swing_on_run = false;


GT.sensor = {};
set_recursive_metatable(GT.sensor, GT_t.SN_visual);
GT.sensor.height = 2.467;


--Burning after hit

GT.visual.fire_size = 0.7; --relative burning size
GT.visual.fire_pos[1] = 1; -- center of burn at long axis shift(meters)
GT.visual.fire_pos[2] = 0;-- center of burn shift at vertical shift(meters)
GT.visual.fire_pos[3] = 0; -- center of burn at transverse axis shift(meters)
GT.visual.fire_time = 1000; --burning time (seconds)


GT.driverViewConnectorName = "DRIVER_POINT";


-- weapon systems

GT.WS = {}
GT.WS.maxTargetDetectionRange = 5000;

local ws = GT_t.inc_ws();
GT.WS[ws] = {}
set_recursive_metatable(GT.WS[ws], GT_t.WS_t.KPVT_BTR)

GT.WS[ws].angles = {
          {math.rad(180), math.rad(-180), math.rad(-5), math.rad(30)},  
}
GT.WS[ws].center = 'CENTER_TOWER'
GT.WS[ws].LN[1].fireAnimationArgument = 23
GT.WS[ws].LN[1].BR[1].connector_name = 'POINT_GUN'
GT.WS[ws].LN[2].fireAnimationArgument = 45
GT.WS[ws].LN[2].BR[1].connector_name = 'POINT_MGUN'


GT.Name = "OT-64 SKOT";
GT.Aliases = {"OT-64 SKOT"}
GT.DisplayName = _("OT-64 SKOT");
GT.Rate = 10;

GT.Sensors = { OPTIC = {"TKN-3B day", "TKN-3B night"} };

GT.DetectionRange  = 0;
GT.ThreatRange = GT.WS[1].LN[1].distanceMax;
GT.mapclasskey = "P0091000002";
GT.attribute = {wsType_Ground,wsType_Tank,wsType_Gun,wsType_GenericIFV,
                "APC",
                };
GT.category = "Armor";

        
GT.Countries = { "Slovakia","Czech Republic","Poland", };        
--------------------------------------------------------------------------------

        
add_surface_unit(GT)