ACE3/addons/viewdistance/ACE_Settings.hpp

25 lines
1.1 KiB
C++
Raw Normal View History

2015-05-08 07:28:48 +00:00
class ACE_Settings {
2015-05-08 12:14:15 +00:00
class GVAR(changeAllowed) {
typeName = "BOOL";
value = 1;
displayName = "Allow View Distance Changing";
2015-05-08 12:49:52 +00:00
description = "Allows clients to be able to change their view distance";
2015-05-08 12:14:15 +00:00
};
class GVAR(viewDistanceLimit) {
2015-05-08 12:14:15 +00:00
typeName = "SCALAR";
2015-05-08 12:49:52 +00:00
value = 11; // setting the highest number in the array below means no limit.
2015-05-08 16:41:32 +00:00
values[] = {0,1,2,3,4,5,6,7,8,9,10,11}; // correspond to the INDEX values
2015-05-08 12:49:52 +00:00
displayName = "Change View Distance Limit";
2015-05-08 12:14:15 +00:00
description = "Sets the top limit for all clients";
};
class GVAR(newViewDistance) {
2015-05-08 07:28:48 +00:00
typeName = "SCALAR";
isClientSettable = 1;
2015-05-08 12:49:52 +00:00
value = 0; // not sure what to set this to.
2015-05-08 16:41:32 +00:00
values[] = {"1500","2000","2500","3000","3500","4000","5000","6000","7000","8000","9000","10000"}; // Values also need to be changed in functions/fnc_returnViewDistanceValue.sqf
2015-05-08 12:14:15 +00:00
displayName = "Change View Distance";
description = "Changes in game view distance";
2015-05-08 07:28:48 +00:00
};
2015-05-08 12:14:15 +00:00
};
// To do: include string table style displayName & description.