-
Notifications
You must be signed in to change notification settings - Fork 3
Armored Hediffs
SmArtKar edited this page Feb 8, 2023
·
4 revisions
HediffCompProperties_Armored can be used to add armor values to a certain bodypart. Unlike direct stat modification that implants like armorskin use, this would only protect against damage dealt to the hediff's bodypart (and it's children, unless toggled off). Hediff severity can also be used as durability, reducing or increasing it after absorbing damage, similarly to how apparel works. DamageDefArmor function similarly to StatModifier, not requiring <li>
public class HediffCompProperties_Armored : HediffCompProperties
{
// List of additional body part groups that are protected aside from the hediff's bodypart
public List<BodyPartGroupDef> additionalGroups;
// If the hediff should not only protect the parent part, but also all child parts
public bool protectChildren = true;
// If block should be considered metallic for VFX purposes
public bool metallicBlock = false;
// What type of durability should the hediff use
public HediffDurability durabilityMode = HediffDurability.None;
// Coefficent for the settings above. Uses percentages for severity, 0.25 would result in 400 damage required to destroy the hediff.
public float durabilityCoeff = 0.25f;
// List of armor stats
public List<StatModifier> armorStats = new List<StatModifier>();
// List of armor per damageDefs
public List<DamageDefArmor> defArmors = new List<DamageDefArmor>();
}
public enum HediffDurability
{
None,
LowerSeverity, //Lowers hediff severity, uses durabilityCoeff
IncreaseSeverity //Increases hediff severity, uses durabilityCoeff
}- Stats
- Gene Templates
- Pawn Group Utility
- Under Group Combat Pressure Think Node
- Min Prey Body Size
- Modular Things
- Gene Locked Recipes and Buildings
- Additional Gene Drops
- Angle Based Shotguns
- Following ("Running") Beams
- Pawn Turret Extensions
- Damage Modification
- Advanced Tools
- Shockwave Attacks
- Miniguns
- Elite Shot
- AOE Hediff Explosion Projectiles
- Frag Grenades
- Cooldown Graphics
- Scatter Things Ability
- Abilities on Equipment
- Burst Projectile Abilities
- Reloadable Abilities
- Shockwave Ability
- Projectile Comps
- Projectile Impact Effects
- Projectile Trails
- Bouncy Projectiles
- Spawner Projectiles
- Roof Collapse Projectiles
- Scattershot Projectiles
- Custom Body Graphic For Apparel
- Multi Layered Apparel Graphics
- Advanced Equipment Shields
- Equipment with Prerequisites
- Advanced Armor
- Gene-based Apparel Textures
- Gene Locked Equipment
- Additional Apparel Graphics Comps
- Hediff Giver Extension
- Bomb Hediff Comp
- Remove On Severity Comp
- Renderable Hediffs
- Shield Hediffs
- Armored Hediffs
- Disableable Hediffs
- Modular Hediffs
- Hediffs with Prerequisites
- Singular Hediff Abilities
- Hediff On Damage
- Additional Hediff Graphics Comps
- Caching
- IArmored
- IDamageResponse
- IRenderable
- IStageOverride
- IStatModifier
- IProjectile
- IPreventEquip
- IHediffGraphicGiver and IEquippableGraphicGiver
- IDamageModifier
- IColorSelector
- IBodyModifier