-
-
Notifications
You must be signed in to change notification settings - Fork 307
EN_ConfigFiles
The following files contain things which you may want to edit to your own likings or the preferences of your group.
In this file you'll find all the general settings from the FOB range, production interval, fuel consumption, etc.
Also you set the unit preset and arsenal preset here. The reason because it's here and not a parameter is, that this has to be in general always the same setting during a playthrough to prevent any issues. There are small exceptions, but just set it at the start of your campaign and don't change it unless you wipe or win the campaign to be safe.
All config values are explained with comments, so you should be able to easily understand everything and know for what it's important.
If you don't want to use a blacklisted arsenal or the items you would want to blacklist are much more than the remaining available ones, you should use a whitelist instead. If you set KP_liberation_arsenal = 1;
in the kp_liberation_config.sqf
this would be the file where you can enter the classnames of the items you want to be available in the virtual arsenal.
Keep in mind that you don't need to create a preset if you play with mods or something. If you stick to the blacklist method the mission will automaticly crawl through all mods and add all items from the mods to the virtual arsenal, if they're not entered in the blacklist array. So it adapts fully automaticly to the used mods.
You can edit these files as you like. You can edit what's in the build menu, what kind of soldiers are on your side, what soldiers and vehicles are on the enemy side, which vehicles should be locked by bases and even the appearance of the civilians.
You can surely also edit the other files in the presets folder if you've chosen the rhs preset for example, then you can also edit the rhs.sqf.
As always you'll find comments on each area or line with information about what you can edit there.
It's recommended to use the save/load of parameters without any scripting.
Illustrated explanation on imgur
In this file you can set default values for the mission parameters. Very handy if you're running your server with autoInit and automatic restarts. As you then just set the default parameters to your needs and don't have to think about changing them to that values after each restart of the server. But you should maybe have the parameter list open in the client while editing it in the .hpp, as that would be much easier to know what each parameter really is, because inside the .hpp all texts are linked to the stringtable and may not really point you to what the setting will do exactly without read it in the stringtable or the opened parameter list in the client.
Example:
class Fatigue {
title = $STR_PARAMS_FATIGUE;
values[] = { 0, 1 };
texts[] = { $STR_PARAMS_DISABLED, $STR_PARAMS_ENABLED };
default = 1;
};
This is set to default = 1;
, so Fatique is enabled via the parameters. If you want to disable it by default, you've to set default = 0;
.
class Fatigue {
title = $STR_PARAMS_FATIGUE;
values[] = { 0, 1 };
texts[] = { $STR_PARAMS_DISABLED, $STR_PARAMS_ENABLED };
default = 0;
};
If you're using this method instead of Liberation lobby load/save params functionality you should set default value of LoadSaveParams
class to 2
There you can enter a clan tag, steamIDs or even names to whitelist people for the commander slot. It's all explained inside via comments. But you've to ensure to enable the whitelist mission parameter.
This file allows you to apply custom code to objects that are being build by players or loaded from save. It was added to make it easier for admins to add custom code without messing inside the save_manager.sqf or do_build.sqf files like it was needed before.
It contains single array of arrays in following format:
/* - Specific object init codes depending on classnames.
Format = [Array of classnames as strings, Code to apply]
_this is the reference to the object with the classname */
KPLIB_objectInits = [
[["className1", "className2"], {diag_log format["This object was just built or loaded: %1!", _this]}],
// Hide Cover on big GM trucks
[["gm_ge_army_kat1_454_cargo", "gm_ge_army_kat1_454_cargo_win"], {_this animateSource ["cover_unhide", 0, true];}] //remember that last element should not be followed by comma!
];