Repository navigation
Add a combat helmet and plate carrier as worn armor - #379
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
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