Adding required files

This commit is contained in:
SAM 2015-05-08 09:28:48 +02:00
parent c2bb6386af
commit 2c8dddfc47
4 changed files with 36 additions and 5 deletions

View 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";
};
};

View File

@ -6,10 +6,11 @@ class CfgPatches {
weapons[] = {}; weapons[] = {};
requiredVersion = REQUIRED_VERSION; requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_common"}; requiredAddons[] = {"ace_common"};
author[] = {""}; author[] = {"Winter"};
authorUrl = ""; authorUrl = "https://github.com/Winter259";
VERSION_CONFIG; VERSION_CONFIG;
}; };
}; };
#include "CfgEventHandlers.hpp" #include "CfgEventHandlers.hpp"
#include "ACE_Settings.hpp"

View 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);

View File

@ -1,3 +0,0 @@
#include "script_component.hpp"
diag_log text format["This is here as an example!!!"];