CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
10.26k stars 4.12k forks source link

Claymore style explosives #28766

Open kevingranade opened 5 years ago

kevingranade commented 5 years ago

Expected behavior

Claymore style explosives would project fragments in a designated area and cause minimal damage elsewhere.

Actual behavior

These explosives dont exist.

Details

These kinds of explosives are particularly useful tactically as they can cause a huge number of casualties in a designated area with minimal risk to the user. This will require minimal code changes as long as the arc of projectiles fall on 45deg increments.

Shodan14 commented 5 years ago

Could this code be later turned around for shaped charges for blowing holes into walls etc.?

Zombiemanpig commented 5 years ago

Could this be added to ammo too? I want to mod in claymore arrows.

kevingranade commented 5 years ago

If you want a different feature, open an issue about it.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Please do not \'bump\' or comment on this issue unless you are actively working on it. Stale issues, and stale issues that are closed are still considered.

Cenness commented 3 years ago

I stumbled upon this issue recently - https://github.com/CleverRaven/Cataclysm-DDA/issues/50504 - couldn't it be used to implement directed explosions?

kevingranade commented 2 months ago

No, explosions use raytracing code to decide what tiles are potentially hit by fragments, the spell system uses a cheaper and easier to work with line drawing or flood fill thing that's a lot more approximate. I'd actually turn it around and say that the directional area spells should switch to using the raytracing system.