<commit_before>/*
 * Author: r4vn
 *
 * Description:
 * This module offers essential and common functionalities used in other
 * modules.
 */

#define MODULE "main"

#include "functions\script_macros.hpp"

private [
    "_kitConfigs"
];

// Make public functions from this module accessible from other modules
SAD_fnc_randomizePosition2D = FUNC("randomizePosition2D");

// Get kits from configuration
_kitConfigs = 'inheritsFrom _x == (missionConfigFile >> "CfgRespawnInventory")'
        configClasses missionConfigFile;
// Add each kit to respawn dialog
{
    [west, configName _x] call BIS_fnc_addRespawnInventory;
} forEach _kitConfigs;

// Initialize DynamicGroups for both the server and client
if (isServer) then {
    ["Initialize"] call BIS_fnc_dynamicGroups;
} else {
    ["InitializePlayer", [player]] call BIS_fnc_dynamicGroups;
};
<commit_msg>added respawn event handler for dynamicgroups<commit_after>/*
 * Author: r4vn
 *
 * Description:
 * This module offers essential and common functionalities used in other
 * modules.
 */

#define MODULE "main"

#include "functions\script_macros.hpp"

private [
    "_kitConfigs"
];

// Make public functions from this module accessible from other modules
SAD_fnc_randomizePosition2D = FUNC("randomizePosition2D");

// Get kits from configuration
_kitConfigs = 'inheritsFrom _x == (missionConfigFile >> "CfgRespawnInventory")'
        configClasses missionConfigFile;
// Add each kit to respawn dialog
{
    [west, configName _x] call BIS_fnc_addRespawnInventory;
} forEach _kitConfigs;

// Initialize DynamicGroups for both the server and client
if (isServer) then {
    ["Initialize"] call BIS_fnc_dynamicGroups;
} else {
    player addEventHandler ["Respawn", {
        ["InitializePlayer", [player]] call BIS_fnc_dynamicGroups;
    }];
};

{'fraction_non_alphanumeric': 0.09460211463550362, 'fraction_numerical': 0.00333889816360601, 'mean_word_length': 4.636363636363637, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '6161910', 'n_tokens_mistral': 540, 'n_tokens_neox': 545, 'n_words': 162}