initial files
This commit is contained in:
40
kp_liberation.brf_sumava/KP/KPPLM/fnc/fn_apply.sqf
Normal file
40
kp_liberation.brf_sumava/KP/KPPLM/fnc/fn_apply.sqf
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
KPPLM_fnc_apply
|
||||
|
||||
File: fn_apply.sqf
|
||||
Author: Wyqer - https://github.com/KillahPotatoes
|
||||
Date: 2018-08-04
|
||||
Last Update: 2018-11-10
|
||||
License: GNU General Public License v3.0 - https://www.gnu.org/licenses/gpl-3.0.html
|
||||
|
||||
Description:
|
||||
Applies and saves the selected settings from the player menu dialog.
|
||||
|
||||
Parameter(s):
|
||||
NONE
|
||||
|
||||
Returns:
|
||||
Function reached the end [BOOL]
|
||||
*/
|
||||
|
||||
// Apply current view distance and sound volume
|
||||
[] call KPPLM_fnc_getInOut;
|
||||
|
||||
// Apply terrain detail setting
|
||||
switch (KPPLM_terrain) do {
|
||||
case 0: {setTerrainGrid 50;};
|
||||
case 1: {setTerrainGrid 25;};
|
||||
case 2: {setTerrainGrid 12.5;};
|
||||
case 3: {setTerrainGrid 6.25;};
|
||||
case 4: {setTerrainGrid 3.125;};
|
||||
default {setTerrainGrid 10;};
|
||||
};
|
||||
|
||||
// Apply radio chatter setting
|
||||
switch (KPPLM_radio) do {
|
||||
case 1: {enableRadio true; 1 fadeRadio 0;};
|
||||
case 2: {enableRadio false; 1 fadeRadio 0;};
|
||||
default {enableRadio true; 1 fadeRadio 1;};
|
||||
};
|
||||
|
||||
true
|
||||
Reference in New Issue
Block a user