ACE3/addons/viewdistance/ACE_Settings.hpp

47 lines
2.4 KiB
C++
Raw Normal View History

2015-05-08 07:28:48 +00:00
class ACE_Settings {
class GVAR(enabled) {
typeName = "BOOL";
value = 1;
2015-06-06 02:02:24 +00:00
displayName = CSTRING(enabled_DisplayName);
description = CSTRING(enabled_Description);
};
class GVAR(viewDistanceOnFoot) {
2015-05-08 07:28:48 +00:00
typeName = "SCALAR";
isClientSettable = 1;
value = 0; // index, NOT value // Can set it to client's actual viewdistance in the init function once ACE_Settings supports numbers (if ever).
values[] = {CSTRING(videosettings), "500", "1000", "1500", "2000", "2500", "3000", "3500", "4000", "5000", "6000", "7000", "8000", "9000", "10000"}; // Values also need to be changed in functions/fnc_returnValue.sqf
2015-06-06 02:02:24 +00:00
displayName = CSTRING(onFoot_DisplayName);
description = CSTRING(onFoot_Description);
};
class GVAR(viewDistanceLandVehicle) {
typeName = "SCALAR";
isClientSettable = 1;
value = 0; // index, NOT value
values[] = {CSTRING(videosettings), "500", "1000", "1500", "2000", "2500", "3000", "3500", "4000", "5000", "6000", "7000", "8000", "9000", "10000"}; // Values also need to be changed in functions/fnc_returnValue.sqf
2015-06-06 02:02:24 +00:00
displayName = CSTRING(landVehicle_DisplayName);
description = CSTRING(landVehicle_Description);
};
class GVAR(viewDistanceAirVehicle) {
typeName = "SCALAR";
isClientSettable = 1;
value = 0; // index, NOT value
values[] = {CSTRING(videosettings), "500", "1000", "1500", "2000", "2500", "3000", "3500", "4000", "5000", "6000", "7000", "8000", "9000", "10000"}; // Values also need to be changed in functions/fnc_returnValue.sqf
2015-06-06 02:02:24 +00:00
displayName = CSTRING(airVehicle_DisplayName);
description = CSTRING(airVehicle_Description);
2015-05-08 07:28:48 +00:00
};
class GVAR(limitViewDistance) {
typeName = "SCALAR";
value = 10000; // Value, NOT index. 10000 is the maximum in A3
2015-06-06 02:02:24 +00:00
displayName = CSTRING(limit_DisplayName);
description = CSTRING(limit_setting);
};
class GVAR(objectViewDistanceCoeff) {
typeName = "SCALAR";
isClientSettable = 1;
value = 0; // index. Actual coefficient is given by functions/fnc_returnObjectCoeff.sqf
values[] = {CSTRING(object_off), CSTRING(object_verylow), CSTRING(object_low), CSTRING(object_medium),CSTRING(object_high), CSTRING(object_veryhigh), CSTRING(object_fovBased)};
2015-06-06 02:02:24 +00:00
displayName = CSTRING(object_DisplayName);
description = CSTRING(object_Description);
};
2015-05-08 12:14:15 +00:00
};