mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-23 08:30:50 +03:00
Update compiles - 2 more files to do
fn_selfActions.sqf player_updateGui.sqf
This commit is contained in:
@@ -1,20 +1,30 @@
|
||||
//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;
|
||||
private ["_type","_typeA","_test","_soundType","_soundVal","_soundval"];
|
||||
|
||||
//diag_log ("FINDME: " + _type);
|
||||
_type = surfaceType getPosATL _this;
|
||||
_typeA = toArray _type;
|
||||
_typeA set [0,"DEL"];
|
||||
_typeA = _typeA - ["DEL"];
|
||||
_type = toString _typeA;
|
||||
//_test = 0;
|
||||
|
||||
_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;
|
||||
_soundType = getText (configFile >> "CfgSurfaces" >> _type >> "soundEnviron");
|
||||
_soundVal = getArray (configFile >> "CfgVehicles" >> "CAManBase" >> "SoundEnvironExt" >> _soundType);
|
||||
if ((isNil "_soundval") or {(count _soundval == 0)}) then {
|
||||
_soundval = 25;
|
||||
}
|
||||
else {
|
||||
_soundVal = _soundVal select 0;
|
||||
if ((isNil "_soundval") or {(count _soundval <= 3)}) then {
|
||||
_soundval = 25;
|
||||
}
|
||||
else {
|
||||
_soundVal = parseNumber format["%1",_soundVal select 3];
|
||||
if (_soundVal == 0) then {
|
||||
_soundVal = 25;
|
||||
};
|
||||
};
|
||||
};
|
||||
_array = [_soundType,_soundVal];
|
||||
_array
|
||||
|
||||
//diag_log format["Type: %1, SoundType: %2, SoundVal: %3",_type,_soundType,_soundVal];
|
||||
|
||||
[_soundType,_soundVal]
|
||||
Reference in New Issue
Block a user