Jump to content

Recommended Posts

LHM Glasses

I thought I would share some of the mod I am currently working on. It has gone through several iterations since I started working on it, from a simple screen tinting based on the glasses worn to overlays for combat/diving goggles to the possibility of explosions cracking glasses.

Version 2.3

Requires: CBA 3

news_download_a3_3.png

@lhm.png

Install Instructions:

- Unzip

- Place with your other mods

- Move the folders/files within the userconfig folder within @LHM to the userconfig folder in the root of Arma 3

- Add @LHM to your mod line using your favourite launcher (or the manual way)

Current features:

  • Provides a visual screen tinting based on the glasses/goggles being worn, also effects the brightness of the sun as glasses should.
  • Provides a visual overlay for goggles (Combat Goggles/Diving Goggles)
  • Provides an improved goggles/glasses experience, where the item worn has the potential to break from explosions.
  • Dirt from explosions linger on glasses with the ability to clean them.
  • Dust from firing a weapon while prone appears on screen for a short period of time
  • Rain appears on glasses/goggles
  • Cleaning glasses animation
  • Ability to clean glasses via keys (shift + t by default) see notes.
  • Rotor wash effects



Current Known Issues:

Notes:

  • Move the userconfig folder to the root of your Arma 3 install
  • Shift + T anywhere to wipe glasses changeable via Configure Addon in controls (thanks CBA)

Changelog:

V2.3

  • New rain effect (thanks TPW for making me aware of the refract particle)
  • CBA keybinding for wipe glasses
  • Support for new facewear introduced by BIS
  • Fixes for non-glasses still getting glasses effect
  • Minor code improvements all over, but does mean things like VAS should work correctly
  • New signed key specifically for 2.3 and LHM Glasses

V2.2.1

  • Reduced and adjusted various glasses colour
  • Fixed dust appearing on screen for seemingly no reason
  • Adjusted the handler for when to remove the effects when killed
  • Made changes to how dusty surfaces are calculated should work across the board now.
  • Dust in eyes has degrees of effects

V2.2.0:

  • Reduced overlay for combat goggles
  • Reduced overlay for diving goggles
  • Added 2 degrees of dust
  • Added rotor wash
  • Reduced rain overlays
  • Added Glasses_ prefix to all functions, now: LHM_fnc_Glasses_XXX
  • Added new config entry LHM_EyeProtection, used in CfgGlasses and CfgWeapons for headwear (only used for rotor wash currently)
  • Fixed weird on/off glasses issue when in boats

V2.1.0:

  • Improved combat goggles overlay
  • Improved cracked overlay (combat goggles and glasses)
  • Slight code improvements
  • Adjusted effects of firing prone without glasses
  • New dust texture

V2.0.2:

  • Fixed diving goggles not working correctly (due to new diving goggle classnames)
  • New function, LHM_fnc_isDivingGoggles. Example: if ((goggles player) call LHM_fnc_isDivingGoggles) exitWith {hint "Diving Goggles"};
  • Removed Gear Menu interaction as it seemed to cause crashes and instability.

V2.0.1:

  • Changed dust image
  • Added effects for not wearing glasses and firing prong (dust)
  • Added effects for have cracked glasses/not wearing glasses near explosion
  • Slight change to glasses PP effect
  • Removed dust effect at night (due to oddity with regards to colour of dust on screen and darkest else where)

V2.0:

  • Removed ZAM Interaction
  • Renamed to LHM Glasses
  • Moved over to a mostly event driven system
  • Moved over to a custom menu in the gear menu for cleaning glasses (ctrl + left-click to bring up menu)
  • ctrl + T anywhere to wipe glasses (see notes above)
  • \LHM\Glasses prefix
  • Very basic animation for cleaning glasses.
  • Dust appearing on glasses when firing from prone.

V1.1.0:

  • Support for new glasses of A3 final
  • Fixed rain on diving goggles when under water
  • Made dark glasses darker
  • Improved the combat goggles overlay
  • Removed goggles overlay when entering a vehicle's weapon's scope. Or driving a non 3D interior vehicle.
  • Fixed rain on goggles indoors
  • Fixed eyes not clearing on respawn
  • Eyes correctly get fixed across network
  • Moved rain checks into main loop

V1.0.2:

  • Small code improvements
  • Interaction keys now have defaults if Custom Action keys haven't been set
  • Self Interaction key defaults to App Menu
  • Interaction key defaults to Left Windows

V1.0.1:

  • Fixed rain effecting glasses when in a vehicle

V1.0:

  • Initial release
  • Rain effects glasses
  • Explosions Effect Glasses
  • Diving goggles/combat goggles have custom overlay

Images

Thanks goes out to:

  • The.D for the Combat Goggles overlay (non-cracked) and dust overlay.
  • AGM for bug reports and allowing me to integrate with them
  • TPW, whom without I would not have known about the refract particle for the much improved rain
  • All who have offered their support

Edited by LordHeart
Updated for 2.3

Share this post


Link to post
Share on other sites

very nice. good luck with further development. :)

Diving goggles need to be smoothend up a bit! and I'm not really sure about the combat goggles overlay.. I've never worn any so don't know if that's really the way you experience it.

Share this post


Link to post
Share on other sites

Indeed, diving goggles haven't gotten the same amount of love that the combat goggles have gotten. Something that needs to be fixed before releasing.

Share this post


Link to post
Share on other sites

I like it ... but it just doesn't look right in 3rd person. I would recommend removing the goggle overlay in 3rd person.

Share this post


Link to post
Share on other sites

Looking good LH.

I especially like the new overlays you added for dirt and cracks. Keep it up!

Share this post


Link to post
Share on other sites
I like it ... but it just doesn't look right in 3rd person. I would recommend removing the goggle overlay in 3rd person.

I play with a group where 3rd person is usually disabled, so not much focus has been put into ensuring that 3rd person looks correct. I will certainly look into making the goggles overlay hidden when in 3rd person while still maintaining the effect of wearing goggles for the explosion handling.

Share this post


Link to post
Share on other sites

^^ aye that would prolly be best. Same way that gammadust has done his tinted glasses stuff.

Share this post


Link to post
Share on other sites

Turns out it wasn't too difficult to get it working or rather not working with 3rd person. Eye damaged effect still occurs and all things that happen in third person get applied to first person when switched.

Share this post


Link to post
Share on other sites
the overlay makes it look like you're holding the goggles 2 inches in front of you.

Nah, it's good. Personally, the one thing I thought about seeing this was

. Now I will be able to feel like Dustin Hoffman ;)

Share this post


Link to post
Share on other sites

Did some work on the Diving Goggles overlay, looks a lot smoother now.

I have a question though, has anyone come across this error when packing a mod and how does one solve it? I've had it a couple times and mostly fixed it by luck.

Creating texture headers file...

6 texture headers saved to file "p:\zam_glasses\texHeaders.bin"

w:\C_branch\Poseidon\Arrowhead\El\FileServer\fileServer.cpp(2513) : Assertion failed 'req->RefCounter()==1'

New Diving Goggles:

Normal

Cracked

Edited by LordHeart
Added new diving goggles pictures

Share this post


Link to post
Share on other sites

With rain back in I decided to start adding in rain effects. Currently there is only one texture but I hope to have a couple to simulate glasses/goggles getting progressively more wet. Rain Image

Share this post


Link to post
Share on other sites

I hereby present version 1.0 of ZAM Glasses.

Please let me know of any bugs, I'll continue work on this, improving the overlays, adding in various things that I have considered.

Share this post


Link to post
Share on other sites
Guest

Release frontpaged on the Armaholic homepage.

================================================== =

We have also "connected" these pages to your account on Armaholic.

This means in the future you will be able to maintain these pages yourself if you wish to do so. Once this new feature is ready we will contact you about it and explain how things work and what options you have.

When you have any questions already feel free to PM or email me!

Edited by Guest
mirror updated

Share this post


Link to post
Share on other sites

When I assign the Custom Action 3 and 4 and try to use them, nothing happens. Do I need to do something else or just assign and that's it?

Share this post


Link to post
Share on other sites

The menu checks at the beginning of a mission for the keys, so if you were in a mission when you set the keys they wouldn't have been setup. However, if you restart the mission it should work. I am working on a solution that will set default keys if Custom Action 3 and 4 aren't set.

Share this post


Link to post
Share on other sites

New version: 1.0.2

Changelog:

  • Interaction keys now have defaults if custom action keys not set
  • Tiny code improvements

Self Interaction defaults to App Menu key

Interaction defaults to Left Windows key

Share this post


Link to post
Share on other sites

Been working on improving the combat goggles overlay as well as including configs for all the new glasses in release.

New combat goggles overlay

Been working on a couple bug fixes with regards to eye damage as well as rain on diving goggles when diving.

One issue that has been discovered and is currently under investigation on how to fix nicely is that the goggles overlay covers 2D scopes, if anyone know how to check if the current scope is a 2D scope I'd be very happy to know how. If I can't get a nice solution for this, goggle overlay will simply be removed when going into any scope view.

Share this post


Link to post
Share on other sites

So after quite a longer time period than I had hoped for. I now have version 1.1 ready.

Changelog

  • Support for new glasses of A3 final
  • Fixed rain on diving goggles when under water
  • Made dark glasses darker
  • Improved the combat goggles overlay
  • Removed goggles overlay when entering a vehicle's weapon's scope. Or driving a non 3D interior vehicle.
  • Fixed rain on goggles indoors
  • Fixed eyes not clearing on respawn
  • Eyes correctly get fixed across network
  • Moved rain checks into main loop

I have also signed the PBOs but have not checked if it works correctly, if someone could confirm this for me I'd appreciate it.

Edited by LordHeart

Share this post


Link to post
Share on other sites
Guest

Release frontpaged on the Armaholic homepage.

=================================================

We have also "connected" these pages to your account on Armaholic.

This means in the future you will be able to maintain these pages yourself if you wish to do so. Once this new feature is ready we will contact you about it and explain how things work and what options you have.

When you have any questions already feel free to PM or email me!

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×