Arma 3
51 ratings
Half Life 2: User Interface
   
Award
Favorite
Favorited
Unfavorite
Data Type: Mod
Mod Type: Mechanics, Sound
File Size
Posted
Updated
153.662 KB
Mar 4, 2019 @ 7:15am
May 9, 2019 @ 11:43am
5 Change Notes ( view )

Subscribe to download
Half Life 2: User Interface

Description
Half Life 2: User Interface
The half life 2 user interface with Health, Suit, Ammo and Magazines.
This is a fully working system. As soon as you start a mission it will run.
There is also a suit recharger script which you can add to an object (see functions below).
For those who want more control there are a couple of functions you can use.

Functions

HalfLife_fnc_updateUserInterface;
Update a part of the user interface. "HEALTH","SUIT","AMMO" or "MAGAZINE".
Example: "HEALTH" call HalfLife_fnc_updateUserInterface;

HalfLife_fnc_showUserInterface;
Show user interface
Example: call HalfLife_fnc_showUserInterface;

HalfLife_fnc_hideUserInterface;
Hide user interface
Example: call HalfLife_fnc_hideUserInterface;

HalfLife_fnc_setSuit;
Set the suit armor. 0 - 100.
Example: 100 call HalfLife_fnc_setSuit;

HalfLife_fnc_addSuitRecharger;
Add a ui to an object which let the player recharge the suit.
Example: in an objects init: this call HalfLife_fnc_addSuitRecharger;

HalfLife_fnc_setSuitAbsorbRate;
The damage the suit will absorb: default 0.01 ( 1 percentage of the damage taken.)
Example: 0.05 call HalfLife_fnc_setSuitAbsorbRate;

HalfLife_fnc_enableUserInterface;
Enable user interface.
Example: call HalfLife_fnc_enableUserInterface;

HalfLife_fnc_disableUserInterface;
Disable user interface.
Example: call HalfLife_fnc_disableUserInterface;

HalfLife_fnc_getUserInterfaceLayer;
Returns the layer number of the user interface.
Example: call HalfLife_fnc_getUserInterfaceLayer;

HalfLife_fnc_setUserInterfaceLayer;
Set a layer number for the user interface.
Example: call HalfLife_fnc_setUserInterfaceLayer;

Popular Discussions View All (1)
2
May 9, 2019 @ 11:18am
PINNED: Bugs
Alkanet_smörgåstårta
20 Comments
**R@dek-cr@zy czech** Oct 25, 2022 @ 2:58pm 
Hello. This mod is awesome. I am currently making Half life campaign . I have tons of mission creating experience from OFP but I was never good at custom scripting. Is there a way how to use your commands (scripts) to add some suit armor to current value (eg: If I want to add a combine battery pickup and want it to give me +20 suit armor). I can set the values for suits but I want something that can add some values to existing current suit value.
Mr.Wanaskiwin "Navarone" Aug 4, 2021 @ 11:41am 
i mean it should be it is client side the only things that wont really occur is suit recharge unless the mission was designed around it
Alkanet_smörgåstårta  [author] Aug 4, 2021 @ 10:53am 
@[AQM] Vediano
I think so. Long time i made this.
Vediano Aug 3, 2021 @ 8:47am 
it's mp compatible?
Commander Kibbins Apr 8, 2020 @ 3:14pm 
@Alkanet(smörgåstårta) Ah, alright then. Thank you for getting back to me. Again, great mod. I'm surprised more people don't use it.
Alkanet_smörgåstårta  [author] Apr 8, 2020 @ 5:20am 
@Commander_Kibbins
Unfortunately i stopped working on my arma workshops. But people are free to change this mod to fit there needs. I can even allow them to upload an ace version if they just give credit for the original mod.
Commander Kibbins Apr 7, 2020 @ 7:29pm 
Hey, random question but is there anyway that this mod could get a compatibility with ACE3? This is an amazing mod that I've worked out many uses for. I just wanted to know if an official ACE version was possible at all.
Alkanet_smörgåstårta  [author] Jul 14, 2019 @ 3:18pm 
@
Mr. Wanaskiwin
yes, the ui is clientside so you run in on the player.
Mr.Wanaskiwin "Navarone" Jul 14, 2019 @ 2:26pm 
Ah i see thx

and i just add it to the player right? thats how i was originally doing that.
Alkanet_smörgåstårta  [author] Jul 14, 2019 @ 1:41pm 
@Mr. Wanaskiwin
it should be:
0.05 call HalfLife_fnc_setSuitAbsorbRate;