mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Adding required files
This commit is contained in:
parent
c2bb6386af
commit
2c8dddfc47
9
addons/viewdistance/ACE_Settings.hpp
Normal file
9
addons/viewdistance/ACE_Settings.hpp
Normal file
@ -0,0 +1,9 @@
|
||||
class ACE_Settings {
|
||||
class GVAR(viewdistance) {
|
||||
typeName = "SCALAR";
|
||||
isClientSettable = 1;
|
||||
values[] = {1500,2000,2500,3000,3500,4000,5000,6000,7000,8000,9000,10000};
|
||||
displayName = "View Distance"; // has to be changed to string table type
|
||||
description = "Change View Distance";
|
||||
};
|
||||
};
|
@ -6,10 +6,11 @@ class CfgPatches {
|
||||
weapons[] = {};
|
||||
requiredVersion = REQUIRED_VERSION;
|
||||
requiredAddons[] = {"ace_common"};
|
||||
author[] = {""};
|
||||
authorUrl = "";
|
||||
author[] = {"Winter"};
|
||||
authorUrl = "https://github.com/Winter259";
|
||||
VERSION_CONFIG;
|
||||
};
|
||||
};
|
||||
|
||||
#include "CfgEventHandlers.hpp"
|
||||
#include "ACE_Settings.hpp"
|
24
addons/viewdistance/functions/fnc_changeViewDistance.sqf
Normal file
24
addons/viewdistance/functions/fnc_changeViewDistance.sqf
Normal file
@ -0,0 +1,24 @@
|
||||
/*
|
||||
* Author: Winter
|
||||
* Sets the player's current view distance according to allowed values.
|
||||
*
|
||||
*
|
||||
* Arguments:
|
||||
* 0: View Distance Setting (SCALAR)
|
||||
*
|
||||
* Return Value:
|
||||
* None
|
||||
*
|
||||
* Example:
|
||||
* [1500] call ace_common_fnc_imanexample
|
||||
*
|
||||
* Public: No
|
||||
*/
|
||||
|
||||
#include "script_component.hpp"
|
||||
|
||||
private ["_new_view_distance"];
|
||||
|
||||
_new_view_distance = _this select 0;
|
||||
|
||||
player setViewDistance (_new_view_distance);
|
@ -1,3 +0,0 @@
|
||||
#include "script_component.hpp"
|
||||
|
||||
diag_log text format["This is here as an example!!!"];
|
Loading…
Reference in New Issue
Block a user