mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 20:13:13 +03:00
20 lines
632 B
Plaintext
20 lines
632 B
Plaintext
//Assess Terrain
|
|
private ["_unit","_pos","_type","_typeA","_soundType","_soundVal","_array"];
|
|
_unit = _this;
|
|
_pos = getPosATL _unit;
|
|
_type = surfaceType _pos;
|
|
_typeA = toArray _type;
|
|
_typeA set [0,"DEL"];
|
|
_typeA = _typeA - ["DEL"];
|
|
_type = toString _typeA;
|
|
// _test = 0;
|
|
|
|
//diag_log ("FINDME: " + _type);
|
|
|
|
_soundType = getText (configFile >> "CfgSurfaces" >> _type >> "soundEnviron");
|
|
_soundVal = parseNumber format["%1",((getArray (configFile >> "CfgVehicles" >> "CAManBase" >> "SoundEnvironExt" >> _soundType) select 0) select 3)];
|
|
if (_soundVal == 0) then {
|
|
_soundVal = 25;
|
|
};
|
|
_array = [_soundType,_soundVal];
|
|
_array |