TGITS-Solutions / Cataclysm-DDA

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

Ranged rework: shooting from cover #9

Open TrainTurningPoint opened 5 years ago

TrainTurningPoint commented 5 years ago

Continuation of the issue #8. Use the updated peeking mechanic as a foundation for the ranged combat cover system.z

Solution
Allow player to shoot vehicle turrets into former blind spots, assuming a turret has a clear LoS on the spot. Allow player to throw items into former blind spots (replaces blind throw removed in related issue) with reduced accuracy. Allow player to fire weapons into former blind spots with reduced accuracy and/or zero stability - represents firing blindly from cover. Allow player to aim and increase stability as normal when targeting a former blind spot, but make him visible to creatures from the former blind area, and partially vulnerable (can be hit, but target size is reduced for the purpose of accuracy calculation) for ranged fire as well. Probable way to implement - move player to a nearby tile which has a clear LoS on the target, or create some kind of a dummy object which is considered a target by creatures and transfers the damage back to PC. Add warning labels in targeting UI displayed when player aims at a former blind spot, and especially when he aims at that spot and becomes vulnerable - that he will have reduced accuracy and that he will be vulnerable to ranged fire correspondingly