mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-17 17:20:26 +03:00
Organize files a bit and removed non source pbo's
This commit is contained in:
20
SQF/dayz_code/compile/fn_surfaceNoise.sqf
Normal file
20
SQF/dayz_code/compile/fn_surfaceNoise.sqf
Normal file
@@ -0,0 +1,20 @@
|
||||
//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
|
||||
Reference in New Issue
Block a user