Repository navigation
Rework of damage decals for projectile impacts - #382
Merged
Merged
Conversation
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.
50 tasks
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:
Types: AP, APCR, APFSDS, APHE, HE, HEAT, ricochet + few materials like wood and glass with their own variations (like pen/non pen)
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:
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
Used AI for most of the work