Jump to content

TrueAllegiant

Members
  • Content Count

    18
  • Joined

  • Last visited

Community Reputation

0 Neutral

1 Follower

About TrueAllegiant

  • Rank
    Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. FN_HudUpdate.sqf https://pastebin.com/kMAVqtmg FN_Hudstetup https://pastebin.com/Q7XrJzFM
  2. Yeah I used the version you gave me but its not updates damage food or water
  3. It's not updating when hit and thirst and that
  4. Can anyone help sort this problem please? FN_hudUpdate #include "..\..\script_macros.hpp" #define IDC_LIFE_BAR_FOOD 2200 #define IDC_LIFE_BAR_WATER 2201 #define IDC_LIFE_BAR_HEALTH 2202 #define IDC_LIFE_FOOD_TEXT 1000 #define IDC_LIFE_WATER_TEXT 1001 #define IDC_LIFE_HEALTH_TEXT 1002 #define LIFEdisplay (GVAR_UINS ["playerHUD",displayNull]) #define LIFEctrl(ctrl) ((GVAR_UINS ["playerHUD",displayNull]) displayCtrl ctrl) /* File: fn_hudUpdate.sqf Author: Dillon "Itsyuka" Modine-Thuen Description: Updates the HUD when it needs to. */ disableSerialization; if(isNull LIFEdisplay) then {[] call life_fnc_hudSetup;}; LIFEctrl(IDC_LIFE_BAR_FOOD) progressSetPosition (1 / (100 / life_hunger)); LIFEctrl(IDC_LIFE_BAR_WATER) progressSetPosition (1 / (100 / life_thirst)); LIFEctrl(IDC_LIFE_BAR_HEALTH) progressSetPosition (1 - (damage player)); LIFEctrl(IDC_LIFE_FOOD_TEXT) ctrlsetText format["%1", life_hunger]; LIFEctrl(IDC_LIFE_WATER_TEXT) ctrlsetText format["%1", life_thirst]; LIFEctrl(IDC_LIFE_HEALTH_TEXT) ctrlsetText format["%1", round((1 - (damage player)) * 100)]; FN_hudSetup #include "..\..\script_macros.hpp" /* File: fn_hudSetup.sqf Author: Bryan "Tonic" Boardwine Description: Setups the hud for the player? */ private["_alpha","_version","_p","_pg"]; disableSerialization; _alpha = CONTROL(46,1001); _version = CONTROL(46,1000); 2 cutRsc ["playerHUD","PLAIN"]; _version ctrlSetText format["BETA: 0.%1.%2",(productVersion select 2),(productVersion select 3)]; [] call life_fnc_hudUpdate; [] spawn { private["_dam"]; while {true} do { _dam = damage player; waitUntil {(damage player) != _dam}; [] call life_fnc_hudUpdate; }; }; hud_stats.hpp #define INFINITE 1e+1000 #define IDC_LIFE_BAR_FOOD 2200 #define IDC_LIFE_BAR_WATER 2201 #define IDC_LIFE_BAR_HEALTH 2202 #define IDC_LIFE_PICTURE_FOOD 1200 #define IDC_LIFE_PICTURE_WATER 1201 #define IDC_LIFE_PICTURE_HEALTH 1202 #define IDC_LIFE_FOOD_TEXT 1000 #define IDC_LIFE_WATER_TEXT 1001 #define IDC_LIFE_HEALTH_TEXT 1002 /* Name: Dillon "Itsyuka" Modine-Thuen File: ui.hpp */ class playerHUD { idd = -1; duration = INFINITE; movingEnable = 0; fadein = 0; fadeout = 0; name = "playerHUD"; onLoad = "uiNamespace setVariable ['playerHUD',_this select 0]"; objects[] = {}; controls[] = { LIFE_UI_BACK, LIFE_BAR_FOOD, LIFE_BAR_WATER, LIFE_BAR_HEALTH, LIFE_PICTURE_FOOD, LIFE_PICTURE_WATER, LIFE_PICTURE_HEALTH, LIFE_FOOD_TEXT, LIFE_WATER_TEXT, LIFE_HEALTH_TEXT }; /* Background */ class LIFE_UI_BACK: Life_RscBackground { colorBackground[] = {0,0,0,0.5}; x = 0.917656 * safezoneW + safezoneX; y = 0.819 * safezoneH + safezoneY; w = 0.0825 * safezoneW; h = 0.11 * safezoneH; }; /* Progress Bars */ class LIFE_BAR_FOOD: Life_RscProgress { idc = IDC_LIFE_BAR_FOOD; x = 0.938281 * safezoneW + safezoneX; y = 0.83 * safezoneH + safezoneY; w = 0.061875 * safezoneW; h = 0.022 * safezoneH; }; class LIFE_BAR_WATER: Life_RscProgress { idc = IDC_LIFE_BAR_WATER; x = 0.938281 * safezoneW + safezoneX; y = 0.863 * safezoneH + safezoneY; w = 0.061875 * safezoneW; h = 0.022 * safezoneH; }; class LIFE_BAR_HEALTH: Life_RscProgress { idc = 2202; x = 0.938281 * safezoneW + safezoneX; y = 0.896 * safezoneH + safezoneY; w = 0.061875 * safezoneW; h = 0.022 * safezoneH; }; /* Text */ class LIFE_FOOD_TEXT: Life_RscText { idc = IDC_LIFE_FOOD_TEXT; text = ""; x = 0.958906 * safezoneW + safezoneX; y = 0.8344 * safezoneH + safezoneY; w = 0.020625 * safezoneW; h = 0.011 * safezoneH; }; class LIFE_WATER_TEXT: Life_RscText { idc = IDC_LIFE_WATER_TEXT; text = ""; x = 0.958905 * safezoneW + safezoneX; y = 0.8674 * safezoneH + safezoneY; w = 0.020625 * safezoneW; h = 0.011 * safezoneH; }; class LIFE_HEALTH_TEXT: Life_RscText { idc = IDC_LIFE_HEALTH_TEXT; text = ""; x = 0.958906 * safezoneW + safezoneX; y = 0.9004 * safezoneH + safezoneY; w = 0.020625 * safezoneW; h = 0.011 * safezoneH; }; /* Icons */ class LIFE_PICTURE_FOOD: life_RscPicture { idc = IDC_LIFE_PICTURE_FOOD; text = "icons\food.paa"; x = 0.922813 * safezoneW + safezoneX; y = 0.83 * safezoneH + safezoneY; w = 0.03; h = 0.04; }; class LIFE_PICTURE_WATER: life_RscPicture { idc = IDC_LIFE_PICTURE_WATER; text = "icons\water.paa"; x = 0.922813 * safezoneW + safezoneX; y = 0.863 * safezoneH + safezoneY; w = 0.03; h = 0.04; }; class LIFE_PICTURE_HEALTH: life_RscPicture { idc = IDC_LIFE_PICTURE_HEALTH; text = "icons\health.paa"; x = 0.922813 * safezoneW + safezoneX; y = 0.896 * safezoneH + safezoneY; w = 0.03; h = 0.04; }; }; https://imgur.com/hLU16tC
  5. for the house u need to put money in bank and unlocking cars i have no idea
  6. There seems to be a issue with the 5.0 unlocking cars and houses. I've been scrolling though and I can't see any problems with the Mission file at all.
  7. It's not making taze sound when i taze someone?
  8. It's Not saying that Player got down by cop anyone know how to add this?
×
×
  • Create New...