<commit_before>//	@file Version: 1.0
//	@file Name: staticHeliCreation.sqf
//	@file Author: [404] Costlyy
//	@file Created: 20/12/2012 21:00
//	@file Description: Random static helis
//	@file Args: [int (0 = not wreck | 1 = wreck), array (position)]

if (!isServer) exitWith {};

private ["_isWreck", "_spawnPos", "_spawnType", "_finalPos", "_currHeli"];

_isWreck = _this select 0;
_spawnPos = _this select 1;

//if (_isWreck == 0) then
//{
	//diag_log "Spawning heli...";
	_spawnType = staticHeliList call BIS_fnc_selectRandom;
	_finalPos = _spawnPos findEmptyPosition [0, 50, _spawnType];
	
	if (count _finalPos == 0) then { _finalPos = _spawnPos };
	
	_currHeli = createVehicle [_spawnType, _finalPos, [], 0, "None"]; 
	[_currHeli] call vehicleSetup;
	
	_currHeli setPos [_spawnPos select 0, _spawnPos select 1, 0.01];
	_currHeli setVelocity [0,0,0.01];
	
	_currHeli setVehicleAmmo 0.5;
	_currHeli spawn cleanVehicleWreck;
	_currHeli setDir (random 360);
/*}
else 
{
	//diag_log "Spawning heli wreck...";<commit_msg>Changed setPos to setPosATL in staticHeliCreation.sqf<commit_after>//	@file Version: 1.0
//	@file Name: staticHeliCreation.sqf
//	@file Author: [404] Costlyy
//	@file Created: 20/12/2012 21:00
//	@file Description: Random static helis
//	@file Args: [int (0 = not wreck | 1 = wreck), array (position)]

if (!isServer) exitWith {};

private ["_isWreck", "_spawnPos", "_spawnType", "_finalPos", "_currHeli"];

_isWreck = _this select 0;
_spawnPos = _this select 1;

//if (_isWreck == 0) then
//{
	//diag_log "Spawning heli...";
	_spawnType = staticHeliList call BIS_fnc_selectRandom;
	_finalPos = _spawnPos findEmptyPosition [0, 50, _spawnType];
	
	if (count _finalPos == 0) then { _finalPos = _spawnPos };
	
	_currHeli = createVehicle [_spawnType, _finalPos, [], 0, "None"]; 
	[_currHeli] call vehicleSetup;
	
	_currHeli setPosATL [_spawnPos select 0, _spawnPos select 1, 0.01];
	_currHeli setVelocity [0,0,0.01];
	
	_currHeli setVehicleAmmo 0.5;
	_currHeli spawn cleanVehicleWreck;
	_currHeli setDir (random 360);
/*}
else 
{
	//diag_log "Spawning heli wreck...";
{'fraction_non_alphanumeric': 0.14354296687469995, 'fraction_numerical': 0.040326452232357174, 'mean_word_length': 4.412987012987013, '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': '6873246', 'n_tokens_mistral': 884, 'n_tokens_neox': 806, 'n_words': 218}