Skip to content

Add a combat helmet and plate carrier as worn armor - #379

Merged
Ally-for-Hire merged 2 commits into
ACE-Project-Team:devfrom
KemGus:feature/wearables
Nov 4, 2026
Merged

Ally-for-Hire merged 2 commits into
ACE-Project-Team:devfrom
KemGus:feature/wearables

Conversation

@KemGus

@KemGus KemGus commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

Description: this pr covers new entities and logic for them - vest(plate carrier) and helmet.
So I took an inspiration from jmod, found some issues with it at first, reiterated (like actually fitting visual model on the non citizen model is a big thing). Learnt a bit how to use blender, however I may have introduced some wrong files, so please let me know.

What's so cool about it:

  • compared to other solutions, this one manages to actually calculate protected area with no randomizer, where if you actually hit the vest and not some side or armpit then it stops the bullet.
  • each bullet carries its energy and each material will have its absorbtion, so even if bullet is stopped it is not guaranteed that you wont take damage.
  • supposedly works with zcity like damage system. one thing I didnt try is whether bone breaks because of energy.

Used AI to help getting this done faster: logic, verification and functions done by me, other stuff I directed ai at it to do as I wish (genie mode) without "make no mistakes". Clearly is the most complex one, surprisingly (not really cuz it took about a month to get it done), works very well

Worn armor layers are virtual ACE plates ({ Material, Armour, Normal,
Coverage, OnHit }) resolved per layer by ACE.ResolveArmorLayer on top of
ACE.CalcDamage, so body armor gets material effectiveness, LOS angle
modifier, overmatch and shatter for free. Adds hidden Aramid material,
passes HitPos/Dir through the damage chain for position-based coverage,
ricochets off the armor surface normal, and applies the damaged-prop
rule for worn thickness. Seat drivers resolve through the same path.

Hits that real body armor stopped or weakened deal nothing below
ace_bodyarmor_min_damage (default 4 HP); HL2 suit armor is exempt.

Includes a LuaJIT self-test for layer resolution and the damage floor.
Helmet and plate carrier models bonemerged onto any ValveBiped
playermodel, fitted by stretching the covered bones to the wearer's
build. Each worn piece adds layers to the ACE_GetBodyArmor hook as ACE
plates of a material and thickness, resolved at the angle the bullet
meets the armor surface. Coverage is checked against the plate outlines
and helmet rim from the bullet's path when the hit position is known,
and rolled otherwise.

Wearables absorb the energy of the rounds they stop and slow, thin as
they wear by the damaged-plate rule, and break off when they run out.
Skins, a color tint and the vest's magazine bodygroups carry over from
the pickup to the worn model. The admin test command is
ace_wear helmet | vest | all | none.
@KemGus
KemGus marked this pull request as ready for review November 2, 2026 11:49
@Ally-for-Hire
Ally-for-Hire merged commit fcf5b57 into ACE-Project-Team:dev Nov 4, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants