CleverRaven / CleverRaven/Cataclysm-DDA
line of fire works differently for monsters
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 13.2k
- Forks
- 4.6k
- Avg merge
- 2d 1h
- Merged PRs (30d)
- 205
Description
Describe the bug
if the feral prepper enters any of the squares containing a red X it will be able to shoot the player but if the player tries to shoot back then you just hit the wall


Steps to reproduce
find a room somewhere, spawn a feral prepper outside of lof/los, make noise to have it investigate, get shot,
Expected behavior
i expect being able to shoot the feral if its able to shoot the player
Screenshots
No response
Versions and configuration
- OS: Windows
- OS Version: 10.0.18362.1256 (1903)
- Game Version: 1cdaee9 [64-bit]
- Graphics Version: Tiles
- Game Language: System language []
- Mods loaded: [
Dark Days Ahead [dda],
Disable NPC Needs [no_npc_food],
No Fungal Growth [no_fungal_growth],
Bionic Professions [package_bionic_professions]
]
Additional context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the feral prepper scenario described in the issue: place it outside the player's line of fire and line of sight, make noise, and compare each side's ability to shoot through the marked squares. Trace the line-of-fire behavior for monsters and players, then verify that both sides agree on whether the shot is possible.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- game-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100