<commit_before>/*
Author:	ToxaBes
Description: Defend submarine.
*/

// define some keywords
#define INFANTRY_MISSION "Спецоперация: Рыба-меч (техника запрещена)"
#define OUR_SIDE WEST
#define ENEMY_SIDE EAST
#define INFANTRY_RANK "CAPTAIN","MAJOR","COLONEL"
#define INFANTRY_SDV "O_SDV_01_F"
#define INFANTRY_DIVERS "O_T_Diver_F","O_T_Diver_TL_F","O_T_Diver_Exp_F"
#define INFANTRY_HQ_GUARDS "O_T_Recon_TL_F","O_T_Recon_F","O_T_Recon_F","O_T_Recon_F","O_T_Recon_LAT_F","O_T_Recon_LAT_F","O_T_Recon_LAT_F","O_T_Recon_M_F","O_T_Recon_M_F","O_T_Recon_M_F","O_T_Recon_JTAC_F","O_T_Recon_JTAC_F","O_T_Recon_JTAC_F"
#define INFANTRY_WRECKED_VECHICLES "Land_Boat_06_wreck_F","Land_UWreck_FishingBoat_F","Land_Wreck_Traw2_F","Land_Wreck_Traw_F","Land_UWreck_Heli_Attack_02_F","Land_Wreck_Plane_Transport_01_F","Land_HistoricalPlaneWreck_01_F","Land_HistoricalPlaneWreck_03_F","Land_HistoricalPlaneWreck_02_front_F","Land_HistoricalPlaneWreck_02_wing_right_F","Land_UWreck_MV22_F","Land_Cargo20_grey_F","Land_Cargo20_light_green_F","Land_Cargo20_military_green_F"

// define private variables
private ["_targets","_accepted","_distance","_briefing","_position","_flatPos","_x","_enemiesArray","_startPoint"];

_enemiesArray = [grpNull];
_unitsArray = [];

// format: [[coords x,y,z],  [submarine x,y,z,dir]]
_targets = [
    [[2741,10063,-20],   [2743,10083,-37,132] ],
    [[1629,9573,-20],    [1640,9542,-40,230]  ],
    [[6055,13726,-30],   [6060,13771,-20,41]  ],
    [[10571,14073,-35],  [10512,14075,-25,169]],
    [[13884,13100,-45],  [13908,13122,-40,146]],
    [[14518,8200,-25],   [14537,8204,-23,344] ],
    [[13485,6435,-20],   [13515,6479,-22,354] ],
    [[5885,2975,-75],    [5909,2954,-50,172]  ],
    [[7174,5140,-40],    [7205,5146,-40,82]   ],
    [[9403,5321,-35],    [9403,5321,-23,163]  ],
    [[10799,5639,-30],   [10800,5647,-25,151] ],
    [[3509,4352,-35],    [3488,4362,-28,291]  ]
];

// select correct place for mission
_position = selectRandom _targets;
_flatPos  = _position select 0;<commit_msg>Локальные переменные в Рыбе-меч #115<commit_after>/*
Author:	ToxaBes
Description: Defend submarine.
*/

// define some keywords
#define INFANTRY_MISSION "Спецоперация: Рыба-меч (техника запрещена)"
#define OUR_SIDE WEST
#define ENEMY_SIDE EAST
#define INFANTRY_RANK "CAPTAIN","MAJOR","COLONEL"
#define INFANTRY_SDV "O_SDV_01_F"
#define INFANTRY_DIVERS "O_T_Diver_F","O_T_Diver_TL_F","O_T_Diver_Exp_F"
#define INFANTRY_HQ_GUARDS "O_T_Recon_TL_F","O_T_Recon_F","O_T_Recon_F","O_T_Recon_F","O_T_Recon_LAT_F","O_T_Recon_LAT_F","O_T_Recon_LAT_F","O_T_Recon_M_F","O_T_Recon_M_F","O_T_Recon_M_F","O_T_Recon_JTAC_F","O_T_Recon_JTAC_F","O_T_Recon_JTAC_F"
#define INFANTRY_WRECKED_VECHICLES "Land_Boat_06_wreck_F","Land_UWreck_FishingBoat_F","Land_Wreck_Traw2_F","Land_Wreck_Traw_F","Land_UWreck_Heli_Attack_02_F","Land_Wreck_Plane_Transport_01_F","Land_HistoricalPlaneWreck_01_F","Land_HistoricalPlaneWreck_03_F","Land_HistoricalPlaneWreck_02_front_F","Land_HistoricalPlaneWreck_02_wing_right_F","Land_UWreck_MV22_F","Land_Cargo20_grey_F","Land_Cargo20_light_green_F","Land_Cargo20_military_green_F"

// define private variables
private ["_enemiesArray", "_unitsArray", "_targets", "_position", "_flatPos", "_startPoint", "_briefing", "_sub", "_subPos", "_subDir", "_submarine", "_mod", "_chemPos", "_chemlight", "_minePos", "_height", "_mine", "_wreck", "_wreckPos", "_wreckVeh", "_devices", "_safePos", "_devicePos", "_device", "_sdv", "_light", "_diversGroup1", "_r", "_diverPos", "_diversGroup2", "_patrolGroup", "_boatPos1", "_dirBoat1", "_boat1", "_dirBoat2", "_botPos2", "_boat2", "_dirBoat3", "_botPos3", "_boat3", "_places", "_campPos", "_camo", "_hqGroup", "_guardPos", "_sniperPlaces", "_sniperPos", "_viperGroup", "_nearestMines"];

_enemiesArray = [grpNull];
_unitsArray = [];

// format: [[coords x,y,z],  [submarine x,y,z,dir]]
_targets = [
    [[2741,10063,-20],   [2743,10083,-37,132] ],
    [[1629,9573,-20],    [1640,9542,-40,230]  ],
    [[6055,13726,-30],   [6060,13771,-20,41]  ],
    [[10571,14073,-35],  [10512,14075,-25,169]],
    [[13884,13100,-45],  [13908,13122,-40,146]],
    [[14518,8200,-25],   [14537,8204,-23,344] ],
    [[13485,6435,-20],   [13515,6479,-22,354] ],
    [[5885,2975,-75],    [5909,2954,-50,172]  ],
    [[7174,5140,-40],    [7205,5146,-40,82]   ],
    [[9403,5321,-35],    [9403,5321,-23,163]  ],
    [[10799,5639,-30],   [10800,5647,-25,151] ],
    [[3509,4352,-35],    [3488,4362,-28,291]  ]
];

// select correct place for mission
_position = selectRandom _targets;
_flatPos  = _position select 0;
{'fraction_non_alphanumeric': 0.18736287845546293, 'fraction_numerical': 0.14260640631856078, 'mean_word_length': 7.767307692307693, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7148411', 'n_tokens_mistral': 2460, 'n_tokens_neox': 2087, 'n_words': 223}