mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Adjusted post init, removed redundant settings
This commit is contained in:
parent
9e40e16c4a
commit
7201a23d41
@ -1,18 +1,5 @@
|
||||
class ACE_Settings {
|
||||
class GVAR(changeAllowed) {
|
||||
typeName = "BOOL";
|
||||
value = 1;
|
||||
displayName = "Allow View Distance Changing";
|
||||
description = "Allows clients to be able to change their view distance";
|
||||
};
|
||||
class GVAR(viewDistanceLimit) {
|
||||
typeName = "SCALAR";
|
||||
value = 11; // setting the highest number in the array below means no limit.
|
||||
values[] = {0,1,2,3,4,5,6,7,8,9,10,11}; // correspond to the INDEX values
|
||||
displayName = "Change View Distance Limit";
|
||||
description = "Sets the top limit for all clients";
|
||||
};
|
||||
class GVAR(newViewDistance) {
|
||||
class GVAR(viewDistance) {
|
||||
typeName = "SCALAR";
|
||||
isClientSettable = 1;
|
||||
value = 0; // not sure what to set this to.
|
||||
|
@ -1,7 +1,3 @@
|
||||
#include "script_component.hpp"
|
||||
|
||||
if (!GVAR(changeAllowed)) exitWith {
|
||||
// if viewdistance module is disabled from config, exit here.
|
||||
diag_log format["[ACE]: View Distance is disabled from the config.cpp in the pbo"];
|
||||
};
|
||||
[] call FUNC(initViewDistance);
|
||||
[] call FUNC(init);
|
Loading…
Reference in New Issue
Block a user