Survivalist: Invisible Strain

Survivalist: Invisible Strain

80 ratings
SIS Glasses Absorb Damage
   
Award
Favorite
Favorited
Unfavorite
Tags: IsMod
File Size
Posted
1.780 MB
10 Jun, 2024 @ 11:53am
1 Change Note ( view )

Subscribe to download
SIS Glasses Absorb Damage

Description
Helper module, doesn't add any new equipment. Please read the full description before subscribing.

What is this?
This mod allows clothing with the Glasses ClothingType to absorb damage, making them act as an additional layer of head armor.

It's made to help modders should they decide to add glasses (or masks) that have to provide protection to its wearer. For example, if someone added a sort of Welding mask or a ballistic mask, then it could absorb damage just as any other armor with the added bonus of being able to wear a helmet on your head.

How to
To set it up, modders just need to set the Equipment xml file of their glasses armor as follows. "TypeName" tag set to "Armor", set the "ClothingType" tag to "Glasses", and add the "DamageAbsorption" tag indicating the absortion of the clothing. Finally, add this mod as a dependency.

There's an example file in the mod folder.

Settings
The settings file can be found in the mod folder at "Settings_GlassesAbsorbDamage.xml".
  • HelmetsProtectGlasses. Whether helmets protect glasses that are armors (any clothing with Glasses as its ClothingType with the TypeName set tonArmor). This makes it so the helmet absorbs damage first, so that it lowers the impact on the glasses. (default true)

Compatibility
Shouldn't have any incompatibilities. Report any issues in the comments section!

Credits
Erikem, Luo2430, and Bob!