[minimod][v1.0.1] HitImpact - pieces of walls

For high-res texture/sprite projects, sprite-fix patches, music add-ons, music randomizers, and other graphic/sound-only projects.
Forum rules
The Projects forums are only for projects. If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.

Got a cool project idea but nothing else? Put it in the project ideas thread instead!

Projects for any Doom-based engine (especially 3DGE) are perfectly acceptable here too.

Please read the full rules for more details.
User avatar
m8f
 
 
Posts: 1518
Joined: Fri Dec 29, 2017 4:15 am
Preferred Pronouns: He/Him
Location: Siberia (UTC+7)

[minimod][v1.0.1] HitImpact - pieces of walls

Post by m8f »

Image

Download

HitImpact spawns textured particles when a surface is hit.

Features:
- works for hitscan and projectile attacks,
- works for all games and mods (in theory),
- works even when loaded with old saves.

Known issues:
- Performance. HitImpact tries to minimize the amount of particles created when a lot of hits happen in a short period of time, but performance drop is still inevitable.
- Silliness. Basically, an impact particle has a version of a surface texture, and for some textures this may look silly.
- Accuracy. Don't expect physical simulation level of precision. It's approximations and compromises salad.

There is room for improvement, help appreciated!

HitImpact is a part of DoomToolbox.
Last edited by m8f on Mon Jun 15, 2026 8:20 am, edited 3 times in total.
User avatar
Enjay
 
 
Posts: 27667
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland

Re: [minimod][v0.1.0] HitImpact - pieces of walls

Post by Enjay »

This is a really nice idea and seems to work pretty much as intended. I like the idea of matching the appearance of the particles to the wall by simply using the wall texture.

However, that does lead to the "silliness" mentioned in the OP. For example, when hitting the TEKGREN5 walls near the star of map01 you can see the little band of brightness for the light on all of the particles. I don't suppose there is some way of just selecting a small area from the middle of the hit texture to map onto the particle is there?
User avatar
m8f
 
 
Posts: 1518
Joined: Fri Dec 29, 2017 4:15 am
Preferred Pronouns: He/Him
Location: Siberia (UTC+7)

Re: [minimod][v0.1.0] HitImpact - pieces of walls

Post by m8f »

There is ZScript Canvas which may help with that, I haven't tried it yet. Simply selecting an area from the middle won't do, because what if there is a bright switch in the middle of a texture, and the player shoots in a corner of the wall? So, I'd have to determine precisely what part of texture is hit. Which seems to be doable for hitscan, Side structure has information about texture offsets and scale. With projectiles it would be more difficult, even now I'm cheating a bit with choosing where missiles hit walls.

Not sure if it's worth it. While I was testing this (including on a TEKGREN5), a "headcanon" formed in my head, that that wall contains small pieces of electronics inside it.

Edit: maybe I can select random pieces of texture to apply to particles. Then at least unfitting parts won't show up always.
User avatar
Enjay
 
 
Posts: 27667
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland

Re: [minimod][v0.1.0] HitImpact - pieces of walls

Post by Enjay »

m8f wrote: Thu May 14, 2026 9:16 am Edit: maybe I can select random pieces of texture to apply to particles. Then at least unfitting parts won't show up always.
If that's doable, I think it would be fine and more-or-less logical. Obviously, sometimes the hit wouldn't be near an obvious bright (or otherwise identifiable) feature that ended up on one of the particles but I think it would probably be OK and an improvement over the whole texture being the particle. Aside from anything else, it would make the particles less hi-res looking compared to the walls.
User avatar
m8f
 
 
Posts: 1518
Joined: Fri Dec 29, 2017 4:15 am
Preferred Pronouns: He/Him
Location: Siberia (UTC+7)

Re: [minimod][v1.0.0] HitImpact - pieces of walls

Post by m8f »

Random pieces look much better!

HitImpact updated to v1.0.0.

New:
- random parts of textures are used instead of full texture
- sector special color support
- 3D floor support
- explosion direction improved

Fixed:
- some walls not spawning particles

Remains:
- Silliness (though reduced)
User avatar
Enjay
 
 
Posts: 27667
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland

Re: [minimod][v1.0.0] HitImpact - pieces of walls

Post by Enjay »

m8f wrote: Sat May 16, 2026 5:57 am Random pieces look much better!
Yes, yes they do. A significant improvement. Nicely done.
cosmos10040
Posts: 211
Joined: Mon Dec 20, 2021 6:16 am
Graphics Processor: ATI/AMD (Modern GZDoom)

Re: [minimod][v1.0.0] HitImpact - pieces of walls

Post by cosmos10040 »

Look good but acts weird with laser mod, when the laser points at the floor or walls, ceiling, it creates debris and never ends. Not sure if the laser is the issue or hit impacts.
User avatar
m8f
 
 
Posts: 1518
Joined: Fri Dec 29, 2017 4:15 am
Preferred Pronouns: He/Him
Location: Siberia (UTC+7)

Re: [minimod][v1.0.0] HitImpact - pieces of walls

Post by m8f »

cosmos10040 wrote: Fri Jun 12, 2026 2:04 pm Look good but acts weird with laser mod, when the laser points at the floor or walls, ceiling, it creates debris and never ends. Not sure if the laser is the issue or hit impacts.
You didn't specify which laser mod, so I'm not sure about the fix. I fixed it for my Laser Sight mod. Please try the version from here. Does it fix it for you?
cosmos10040
Posts: 211
Joined: Mon Dec 20, 2021 6:16 am
Graphics Processor: ATI/AMD (Modern GZDoom)

Re: [minimod][v1.0.0] HitImpact - pieces of walls

Post by cosmos10040 »

Looks like it worked! Thanks.
User avatar
m8f
 
 
Posts: 1518
Joined: Fri Dec 29, 2017 4:15 am
Preferred Pronouns: He/Him
Location: Siberia (UTC+7)

Re: [minimod][v1.0.1] HitImpact - pieces of walls

Post by m8f »

HitImpact updated to v1.0.1.

Fixed:
- projectiles that explode when hitting sky no longer create debris.
- NoTrigger puffs no longer create debris.
User avatar
Lossvoise
Posts: 37
Joined: Tue May 28, 2024 8:15 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 11
Graphics Processor: ATI/AMD with Vulkan/Metal Support
Location: St. Petersburg, Russia

Re: [minimod][v1.0.1] HitImpact - pieces of walls

Post by Lossvoise »

I do love this small visual touch, thank you!

Return to “Graphic/Audio Patches”