Related to the Rsc...
In the ui.pbo you can find this:
Code:
class RscWeaponRangeZeroing {
idd = 300;
controls[] = {"CA_ZeroingText", "CA_Zeroing", "CA_DistanceText", "CA_Distance"};
class CA_DistanceText : RscOpticsText {
idc = -1;
style = 2;
x = 0;
y = "(SafezoneY+SafezoneH) - 0.05";
w = 1;
h = 0.05;
};
class CA_Distance : RscOpticsValue {
idc = 151;
style = 2;
colorText[] = {0.4, 0.6745, 0.2784, 1.0};
x = 0;
y = "(SafezoneY+SafezoneH) - 0.195";
w = 1;
h = 0.05;
};
class CA_ZeroingText : RscIGUIText {
idc = 169;
style = 0;
x = "(SafeZoneW + SafeZoneX) - (1 - 0.761)";
y = "0.095 + SafeZoneY";
w = 0.214;
h = 0.039;
text = $STR_DISP_ZEROING;
};
class CA_Zeroing : RscIGUIValue {
idc = 168;
style = 1;
x = "(SafeZoneW + SafeZoneX) - (1 - 0.761)";
y = "0.095 + SafeZoneY";
w = 0.214;
h = 0.039;
};
};
:EDITH:
For what i understand:
Code:
discreteDistance[] = {100, 200, 300, 400, 500, 600, 700, 800};
discreteDistanceInitIndex = 2;
this is in the cfgWeapons and defines if a weapon can be zeroed. Doesn't mean the player can see the zeroed range in the HUD. For this we have to differ between personal weapons (like rifles) or vehicle weapons. For personal weapons, there is this config entry in the cfgWeapons part:
Code:
weaponInfoType = "RscWeaponZeroing";
which points to this resource, found in the ui.pbo config:
Code:
class RscWeaponZeroing {
idd = 300;
controls[] = {"CA_ZeroingText", "CA_Zeroing"};
class CA_ZeroingText : RscIGUIText {
idc = 169;
style = 0;
x = "(SafeZoneW + SafeZoneX) - (1 - 0.761)";
y = "0.095 + SafeZoneY";
w = 0.214;
h = 0.039;
text = $STR_DISP_ZEROING;
};
class CA_Zeroing : RscIGUIValue {
idc = 168;
style = 1;
x = "(SafeZoneW + SafeZoneX) - (1 - 0.761)";
y = "0.095 + SafeZoneY";
w = 0.214;
h = 0.039;
};
};
Throw all this together and you should end up with a rifle, capable of zeroing.
For vehicle weapons, the ressource isn't defined in the cfgWeapons but in the repsective cfgVehicles, as example the AH-64:
Code:
turretInfoType = "RscUnitInfo_AH64D_gunner";
Which leads to the respective defined ressource in the ui.pbo config. It is a little bit long so i wont post it here.