<commit_before>private ["_debug","_d","_pos","_storms"];
if (!isServer) exitWith{};

_debug = true;
_d = 500;
_storms = ceil(count(bis_functions_mainscope getVariable "locations") / 8);

for "_id" from 0 to _storms do { 
        _pos = position ((bis_functions_mainscope getVariable "locations") call BIS_fnc_selectRandom);
        missionNamespace setVariable [format["sandstorms%1", _id], _pos];
        if (_debug) then { 
                [format["sandstorms%1", _id], _pos, "ELLIPSE", [_d,_d], "GLOBAL","PERSIST"] call CBA_fnc_createMarker; 
                [format["t_sandstorms%1", _id], _pos, "Icon", [1,1], "TYPE:", "Dot", "TEXT:", "Sandstorms",  "GLOBAL", "PERSIST"] call CBA_fnc_createMarker;
        };                
        
        [{
                private ["_params","_id","_d","_debug","_pos","_dest"];
                _params = _this select 0;
                _id = _params select 0;
                _d = _params select 1;
                _debug = _params select 2;
                
                _pos = missionNamespace getVariable format["sandstorms%1", _id];
                if(random 1 > 0.9) then {
                        _dest = position ((bis_functions_mainscope getVariable "locations") call BIS_fnc_selectRandom);
                        _pos = [_pos, _d / 2,[_pos, _dest] call BIS_fnc_dirTo] call BIS_fnc_relPos;
                        missionNamespace setVariable [format["sandstorms%1", _id], _pos];
                        
                        if(_debug)then{
                                format["sandstorms%1", _id] setMarkerPos _pos;
                                format["t_sandstorms%1", _id] setMarkerPos _pos;
                        };
                };
                
                {
                        if(_x distance _pos < _d) then {
                                [2, [_x,_debug],{
	                                if(_this select 1)then{hint "Sandstorm!";};
                                        [_this select 0] call BIS_fnc_sandstorm;
                                }] call mso_core_fnc_ExMP;
                        };
                } forEach ([] call BIS_fnc_listPlayers);
        }, 15, [_id, _d, _debug]] call CBA_fnc_addPerFrameHandler;
};


<commit_msg>- Increased frequency to move<commit_after>private ["_debug","_d","_pos","_storms"];
if (!isServer) exitWith{};

_debug = true;
_d = 500;
_storms = ceil(count(bis_functions_mainscope getVariable "locations") / 8);

for "_id" from 0 to _storms do { 
        _pos = position ((bis_functions_mainscope getVariable "locations") call BIS_fnc_selectRandom);
        missionNamespace setVariable [format["sandstorms%1", _id], _pos];
        if (_debug) then { 
                [format["sandstorms%1", _id], _pos, "ELLIPSE", [_d,_d], "GLOBAL","PERSIST"] call CBA_fnc_createMarker; 
                [format["t_sandstorms%1", _id], _pos, "Icon", [1,1], "TYPE:", "Dot", "TEXT:", "Sandstorms",  "GLOBAL", "PERSIST"] call CBA_fnc_createMarker;
        };                
        
        [{
                private ["_params","_id","_d","_debug","_pos","_dest"];
                _params = _this select 0;
                _id = _params select 0;
                _d = _params select 1;
                _debug = _params select 2;
                
                _pos = missionNamespace getVariable format["sandstorms%1", _id];
                if(random 1 > 0.7) then {
                        _dest = position ((bis_functions_mainscope getVariable "locations") call BIS_fnc_selectRandom);
                        _pos = [_pos, _d / 2,[_pos, _dest] call BIS_fnc_dirTo] call BIS_fnc_relPos;
                        missionNamespace setVariable [format["sandstorms%1", _id], _pos];
                        
                        if(_debug)then{
                                format["sandstorms%1", _id] setMarkerPos _pos;
                                format["t_sandstorms%1", _id] setMarkerPos _pos;
                        };
                };
                
                {
                        if(_x distance _pos < _d) then {
                                [2, [_x,_debug],{
	                                if(_this select 1)then{hint "Sandstorm!";};
                                        [_this select 0] call BIS_fnc_sandstorm;
                                }] call mso_core_fnc_ExMP;
                        };
                } forEach ([] call BIS_fnc_listPlayers);
        }, 15, [_id, _d, _debug]] call CBA_fnc_addPerFrameHandler;
};



{'fraction_non_alphanumeric': 0.11619090098126672, 'fraction_numerical': 0.012042818911685994, 'mean_word_length': 1.5541002277904328, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4925581', 'n_tokens_mistral': 1394, 'n_tokens_neox': 1260, 'n_words': 286}