diff --git a/addons/Streamator/Spectator/fn_firedEH.sqf b/addons/Streamator/Spectator/fn_firedEH.sqf index 93d3ef6..1353650 100644 --- a/addons/Streamator/Spectator/fn_firedEH.sqf +++ b/addons/Streamator/Spectator/fn_firedEH.sqf @@ -22,7 +22,7 @@ if (GVAR(OverlayBulletTracer)) then { if (isNull _projectile) then { _projectile = (getPos _unit) nearestObject _ammo; }; - if (toLower _weapon in ["put", "throw"]) then { // Handle Thrown Grenate + if (toLowerANSI _weapon in ["put", "throw"]) then { // Handle Thrown Grenate GVAR(ThrownTracked) pushBack [_projectile, time + 10]; }; private _color = +(GVAR(SideColorsArray) getOrDefault [side (group _unit), [0.4, 0, 0.5, 1]]); diff --git a/addons/Streamator/Spectator/fn_getUnitType.sqf b/addons/Streamator/Spectator/fn_getUnitType.sqf index 313cd2a..5aeb483 100644 --- a/addons/Streamator/Spectator/fn_getUnitType.sqf +++ b/addons/Streamator/Spectator/fn_getUnitType.sqf @@ -72,12 +72,12 @@ if (_isEngineer) exitWith { //"\a3\ui_f\data\IGUI\Cfg\simpleTasks\types\repair_ca.paa"; ["\A3\ui_f\data\gui\cfg\respawnroles\support_ca.paa", 1]; }; -if ((toLower (getText(configFile >> "CfgWeapons" >> (secondaryWeapon _unit) >> "UIPicture")) == "\a3\weapons_f\data\ui\icon_at_ca.paa")) exitWith { +if ((toLowerANSI (getText(configFile >> "CfgWeapons" >> (secondaryWeapon _unit) >> "UIPicture")) == "\a3\weapons_f\data\ui\icon_at_ca.paa")) exitWith { //"\a3\ui_f\data\igui\cfg\weaponicons\at_ca.paa"; ["\A3\ui_f\data\gui\rsc\rscdisplayarsenal\secondaryweapon_ca.paa", 1.3]; }; -private _primaryWeapon = toLower primaryWeapon _unit; +private _primaryWeapon = toLowerANSI primaryWeapon _unit; if ("srifle" in _primaryWeapon) exitWith { //"\a3\ui_f\data\igui\cfg\weaponicons\srifle_ca.paa"; ["\A3\ui_f\data\gui\cfg\respawnroles\recon_ca.paa", 1]; @@ -88,7 +88,7 @@ if ("gl" in _primaryWeapon) exitWith { ["\A3\ui_f_curator\data\rsccommon\rscattributeinventory\filter_6_ca.paa", 1]; }; -if ((toLower (getText (configFile >> "CfgWeapons" >> (primaryWeapon _unit) >> "UIPicture")) == "\a3\weapons_f\data\ui\icon_mg_ca.paa")) exitWith { +if ((toLowerANSI (getText (configFile >> "CfgWeapons" >> (primaryWeapon _unit) >> "UIPicture")) == "\a3\weapons_f\data\ui\icon_mg_ca.paa")) exitWith { //"\a3\ui_f\data\igui\cfg\weaponicons\mg_ca.paa"; ["\A3\ui_f\data\gui\cfg\respawnroles\assault_ca.paa", 1]; }; diff --git a/addons/Streamator/UnitTracker/fn_updateIcons.sqf b/addons/Streamator/UnitTracker/fn_updateIcons.sqf index 37c0e7c..65f841b 100644 --- a/addons/Streamator/UnitTracker/fn_updateIcons.sqf +++ b/addons/Streamator/UnitTracker/fn_updateIcons.sqf @@ -31,7 +31,7 @@ private _vehicles = (vehicles select { _x call FUNC(isValidVehicle) }); if (_units isNotEqualTo []) then { { if (isNull objectParent _x) then { // Infantry - private _iconId = toLower format [QGVAR(IconId_Player_%1_%2), _x, (group _x)]; + private _iconId = toLowerANSI format [QGVAR(IconId_Player_%1_%2), _x, (group _x)]; if !(_iconId in GVAR(processedIcons)) then { GVAR(processedIcons) pushBack _iconId; // DUMP("UNIT ICON ADDED: " + _iconId); @@ -39,7 +39,7 @@ if (_units isNotEqualTo []) then { }; if (alive _x && { leader _x == _x }) then { - _iconId = toLower format [QGVAR(IconId_Group_%1_%2), group _x, _x]; + _iconId = toLowerANSI format [QGVAR(IconId_Group_%1_%2), group _x, _x]; if !(_iconId in GVAR(processedIcons)) then { GVAR(processedIcons) pushBack _iconId; // DUMP("GROUP ICON ADDED: " + _iconId); @@ -52,7 +52,7 @@ if (_units isNotEqualTo []) then { private _inGroup = { if (leader _x == _x) then { _nbrGroups = _nbrGroups + 1; - private _iconId = toLower format [QGVAR(IconId_Group_%1_%2_%3), group _x, _vehicle, _nbrGroups]; + private _iconId = toLowerANSI format [QGVAR(IconId_Group_%1_%2_%3), group _x, _vehicle, _nbrGroups]; if !(_iconId in GVAR(processedIcons)) then { GVAR(processedIcons) pushBack _iconId; // DUMP("GROUP ICON ADDED: " + _iconId); @@ -63,7 +63,7 @@ if (_units isNotEqualTo []) then { } count (crew _vehicle); _inGroup = _inGroup > 0; if (!isNull _vehicle) then { - private _iconId = toLower format [QGVAR(IconId_Vehicle_%1), _vehicle]; + private _iconId = toLowerANSI format [QGVAR(IconId_Vehicle_%1), _vehicle]; if !(_iconId in GVAR(processedIcons)) then { GVAR(processedIcons) pushBack _iconId; // DUMP("VEHICLE ADDED: " + _iconId); @@ -76,7 +76,7 @@ if (_units isNotEqualTo []) then { if (_vehicles isNotEqualTo []) then { { - private _iconId = toLower format [QGVAR(IconId_Vehicle_%1), _x]; + private _iconId = toLowerANSI format [QGVAR(IconId_Vehicle_%1), _x]; if ( !(_iconId in GVAR(processedIcons)) && (locked _x) <= 1