Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "..\script_macros.hpp"
- /*
- File: configuration.sqf
- Author:
- Description:
- Master Life Configuration File
- This file is to setup variables for the client, there are still other configuration files in the system
- *****************************
- ****** Backend Variables *****
- *****************************
- */
- life_query_time = time;
- life_action_delay = time;
- life_trunk_vehicle = objNull;
- life_session_completed = false;
- life_garage_store = false;
- life_session_tries = 0;
- life_net_dropped = false;
- life_siren_active = false;
- life_clothing_filter = 0;
- life_clothing_uniform = -1;
- life_redgull_effect = time;
- life_is_processing = false;
- life_bail_paid = false;
- life_impound_inuse = false;
- life_action_inUse = false;
- life_spikestrip = objNull;
- life_knockout = false;
- life_interrupted = false;
- life_respawned = false;
- life_removeWanted = false;
- life_action_gathering = false;
- tawvd_addon_disable = true;
- life_god = false;
- life_frozen = false;
- life_save_gear = [];
- life_container_activeObj = objNull;
- life_disable_getIn = false;
- life_disable_getOut = false;
- life_admin_debug = false;
- life_preview_3D_vehicle_cam = objNull;
- life_preview_3D_vehicle_object = objNull;
- life_preview_light = objNull;
- life_pos_exist = false;
- life_pos_attach = [];
- life_civ_position = [];
- life_markers = false;
- life_canpay_bail = true;
- life_fadeSound = false; <------- ici
- life_seatbelt = false; <-------- ici
- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- NOM DU FICHIER : fn_fadeSound
- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- #include "..\..\script_macros.hpp"
- life_fadeSound = !life_fadeSound;
- if (life_fadeSound) then
- {
- 1 fadeSound 0.1;
- call life_fnc_hudUpdate;
- } else {
- 1 fadeSound 1;
- call life_fnc_hudUpdate;
- };
- fichier rajouté dans core/functions
- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- NOM DU FICHIER : fn_hudSetup
- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- #include "..\..\script_macros.hpp"
- disableSerialization;
- 2 cutRsc ["playerHUD","PLAIN"];
- [] call life_fnc_hudUpdate;
- [] spawn
- {
- private["_dam"];
- while {true} do
- {
- _dam = damage player;
- waitUntil {(damage player) != _dam};
- [] call life_fnc_hudUpdate;
- };
- };
- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- NOM DU FICHIER : fn_hudUpdate
- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- #include "..\..\script_macros.hpp"
- //---------------------------------
- //By Repentz
- //---------------------------------
- #define INFINITE 1e+1000
- #define IDC_LIFE_BAR_FOOD 2200
- #define IDC_LIFE_BAR_FOOD_RING 3200
- #define IDC_LIFE_BAR_WATER 2201
- #define IDC_LIFE_BAR_WATER_RING 3201
- #define IDC_LIFE_BAR_HEALTH 2202
- #define IDC_LIFE_BAR_HEALTH_RING 3202
- #define IDC_LIFE_BAR_Speaker 3007
- #define IDC_LIFE_BAR_SeatBelt 4203
- disableSerialization;
- if(isNull LIFEdisplay) then {[] call life_fnc_hudSetup;};
- //[LIFE_ID_PlayerTags,"onEachFrame"] call BIS_fnc_removeStackedEventHandler;
- LIFE_ID_PlayerTags = ["LIFE_PlayerTags","onEachFrame","life_fnc_playerTags"] call BIS_fnc_addStackedEventHandler;
- if(!isNil "life_seatbelt") then {
- if ( vehicle player != player ) then {
- if(life_seatbelt) then {
- LIFEctrl(IDC_LIFE_BAR_SeatBelt) ctrlSetText "VindicateAssets\images\textures\HUD\seatbeltOn.paa";
- } else {
- LIFEctrl(IDC_LIFE_BAR_SeatBelt) ctrlSetText "VindicateAssets\images\textures\HUD\seatbeltOff.paa";
- };
- } else {
- LIFEctrl(IDC_LIFE_BAR_SeatBelt) ctrlSetText "";
- };
- };
- if(!isNil "life_fadeSound") then
- {
- if(life_fadeSound) then
- {
- LIFEctrl(IDC_LIFE_BAR_Speaker) ctrlSetText "VindicateAssets\images\textures\HUD\earplugsY.paa";
- } else {
- LIFEctrl(IDC_LIFE_BAR_Speaker) ctrlSetText "VindicateAssets\images\textures\HUD\earplugsN.paa";
- };
- };
- if(!isNil "life_thirst") then
- {
- if (life_thirst <= 100) then
- {
- LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "VindicateAssets\images\textures\HUD\water0.paa";
- };
- if (life_thirst <= 90) then
- {
- LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "VindicateAssets\images\textures\HUD\water1.paa";
- };
- if (life_thirst <= 80) then
- {
- LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "VindicateAssets\images\textures\HUD\water2.paa";
- };
- if (life_thirst <= 70) then
- {
- LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "VindicateAssets\images\textures\HUD\water3.paa";
- };
- if (life_thirst <= 60) then
- {
- LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "VindicateAssets\images\textures\HUD\water4.paa";
- };
- if (life_thirst <= 50) then
- {
- LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "VindicateAssets\images\textures\HUD\water5.paa";
- };
- if (life_thirst <= 40) then
- {
- LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "VindicateAssets\images\textures\HUD\water6.paa";
- };
- if (life_thirst <= 30) then
- {
- LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "VindicateAssets\images\textures\HUD\water7.paa";
- };
- if (life_thirst <= 20) then
- {
- LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "VindicateAssets\images\textures\HUD\water8.paa";
- };
- if (life_thirst <= 10) then
- {
- LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "VindicateAssets\images\textures\HUD\water9.paa";
- };
- if (life_thirst <= 0) then
- {
- LIFEctrl(IDC_LIFE_BAR_WATER_RING) ctrlSetText "VindicateAssets\images\textures\HUD\water10.paa";
- };
- };
- if (damage player >= 0) then
- {
- LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "VindicateAssets\images\textures\HUD\health0.paa";
- };
- if (damage player >= 0.01) then
- {
- LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "VindicateAssets\images\textures\HUD\health1.paa";
- };
- if (damage player >= 0.02) then
- {
- LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "VindicateAssets\images\textures\HUD\health2.paa";
- };
- if (damage player >= 0.03) then
- {
- LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "VindicateAssets\images\textures\HUD\health3.paa";
- };
- if (damage player >= 0.07) then
- {
- LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "VindicateAssets\images\textures\HUD\health4.paa";
- };
- if (damage player >= 0.13) then
- {
- LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "VindicateAssets\images\textures\HUD\health5.paa";
- };
- if (damage player >= 0.2) then
- {
- LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "VindicateAssets\images\textures\HUD\health6.paa";
- };
- if (damage player >= 0.3) then
- {
- LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "VindicateAssets\images\textures\HUD\health7.paa";
- };
- if (damage player >= 0.4) then
- {
- LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "VindicateAssets\images\textures\HUD\health8.paa";
- };
- if (damage player >= 0.7) then
- {
- LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "VindicateAssets\images\textures\HUD\health9.paa";
- };
- if (damage player >= 1) then
- {
- LIFEctrl(IDC_LIFE_BAR_HEALTH_RING) ctrlSetText "VindicateAssets\images\textures\HUD\health10.paa";
- };
- if(!isNil "life_hunger") then
- {
- if (life_hunger <= 100) then
- {
- LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "VindicateAssets\images\textures\HUD\food0.paa";
- };
- if (life_hunger <= 90) then
- {
- LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "VindicateAssets\images\textures\HUD\food1.paa";
- };
- if (life_hunger <= 80) then
- {
- LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "VindicateAssets\images\textures\HUD\food2.paa";
- };
- if (life_hunger <= 70) then
- {
- LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "VindicateAssets\images\textures\HUD\food3.paa";
- };
- if (life_hunger <= 60) then
- {
- LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "VindicateAssets\images\textures\HUD\food4.paa";
- };
- if (life_hunger <= 50) then
- {
- LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "VindicateAssets\images\textures\HUD\food5.paa";
- };
- if (life_hunger <= 40) then
- {
- LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "VindicateAssets\images\textures\HUD\food6.paa";
- };
- if (life_hunger <= 30) then
- {
- LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "VindicateAssets\images\textures\HUD\food7.paa";
- };
- if (life_hunger <= 20) then
- {
- LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "VindicateAssets\images\textures\HUD\food8.paa";
- };
- if (life_hunger <= 10) then
- {
- LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "VindicateAssets\images\textures\HUD\food9.paa";
- };
- if (life_hunger <= 0) then
- {
- LIFEctrl(IDC_LIFE_BAR_FOOD_RING) ctrlSetText "VindicateAssets\images\textures\HUD\food1.paa";
- };
- };
Add Comment
Please, Sign In to add comment