Skip to content

Rework of damage decals for projectile impacts - #382

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

Ally-for-Hire merged 4 commits into
ACE-Project-Team:devfrom
KemGus:feature/damage-decals

Conversation

@KemGus

@KemGus KemGus commented Nov 8, 2026 •

Copy link
Copy Markdown
Member

Description:

  • Replaced stock impact.concrete and the engine tricky bullet decal with per ammo type decals: 16 types * 4 seed variants.
    Types: AP, APCR, APFSDS, APHE, HE, HEAT, ricochet + few materials like wood and glass with their own variations (like pen/non pen)
  • It works out to be caliber accurate, so apfsds hole = dart diameter.
  • Now each ammo declares Round.decals, if not defined it defaulst to AP decal. Much more cleaner than what it used to be. APFSDS is a bit more complex - it takes in the actual armor thickness to show the fins penetrated or broke off. Known limitation - it doesn't switch to non fins mod after fins were destroyed.

Other fixes I had to do:

  • Missile fake crate. It created at launch instead of detonation.
  • HEAT family ricochets passed the gun instead of the crate, which also now fixes not tested issue with effects not being properly sized as well as sounds, but after fix no regression confirmed.
  • Removed the old acf2 decal trick so no more concrete hit materials for those.

Weight: 5.36 MB for the whole package (64 × ~85.5 KB DXT5 textures + VMTs). The 4 variants cost 3 extra textures per type but prevent visible repetition.

Known limitations

  • Wood/glass decals only on map surfaces — props report as metal (pre-existing ACE limitation, not introduced here).
ace_decals_all

Used AI for most of the work

Replace the stock concrete decals and the engine-bullet decal trick with 16 ACE decal types (4 variants each), picked per ammo type, outcome and surface. Missiles create their fake crate at launch so hit effects see the real ammo type, and APFSDS picks fin or rod marks from the penetrated armour.
Decal code is client-only, so it lives in cl_ace_decals.lua instead of sh_ace_functions.lua. Each round type declares Round.decals, like ACF-3's per-ammo decal registration; rounds without one use the AP defaults.
APFSDS and APDS crates now network SCalMult, so the dart hole matches the round's sub-caliber setting. Crates without it keep the old size.
VertexLitGeneric ignores brush lightmaps, so decals on the map looked dark and lost their detail. World and brush hits now use a LightmappedGeneric copy of the same texture; props keep the shipped material.
@Ally-for-Hire
Ally-for-Hire merged commit 5386718 into ACE-Project-Team:dev Nov 8, 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