CleverRaven / CleverRaven/Cataclysm-DDA

Targeting enemies on different z-levels doesn't seem right.

Open
#29,945 5 comments 0 reactions 0 assignees View on GitHub
<Bug> Ranged Z-levels
Dominant language
C++
Stars
13.1k
Forks
4.6k
Avg merge
2d 1h
Merged PRs (30d)
200

Description

**Describe the bug**
Sometimes my aim doesn't start where my character is, but seems drawn to a certain area and I can't shoot further than tiles adjacent to my character. Two different bows in perfect and near-perfect condition with the same behaviour. Aiming with a mouse seems to work in the same circumstances and with the same target.

**To Reproduce**
Steps to reproduce the behavior:
1. Load the save.
2. Try to aim and shoot, walk around a bit,
3. Sometimes aim doesn't work.

**Expected behavior**
I expect my arrows to move in the general direction of my aim and not fall around my character.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Versions and configuration(please complete the following information):**
- OS: Debian stable
- Game Version: 0.D-2247-g97d7e5b888
- Graphics version: curses
- Mods loaded: [
"dda",
"no_npc_food",
"filthy_morale",
"novitamins",
"craftgp",
"safeautodoc",
"brightnights",
"generic_guns",
"makeshift",
"More_Survival_Tools",
"crazy_cataclysm"
]

**Additional context**
Add any other context about the problem here.
E.g. A link to a savegame that allows the issue to be reproduced.
World folder: https://drive.google.com/open?id=1vkixPhmkiVCesc0SW7vBBKQSt-LhQh9K
![Screenshot_20190426_145803](https://user-images.githubusercontent.com/27099292/56800822-61825e80-6835-11e9-8f8d-a37925352b84.png)
![Screenshot_20190426_145840](https://user-images.githubusercontent.com/27099292/56800823-61825e80-6835-11e9-8244-5159d5a39252.png)
![Screenshot_20190426_145858](https://user-images.githubusercontent.com/27099292/56800825-62b38b80-6835-11e9-976f-4f7f21f688ba.png)
Aiming with a mouse:
![Screenshot_20190426_145920](https://user-images.githubusercontent.com/27099292/56800831-66dfa900-6835-11e9-8a60-841985552438.png)

Contributor guide

Open the contributing guide

Research direction

Start by loading the linked world save in the curses graphics version and reproduce the intermittent keyboard-aiming failure across z-levels, comparing it with mouse aiming. Inspect the aiming and projectile behavior involved in the reported case; done means arrows travel in the intended direction and are not limited to tiles adjacent to the character.

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
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.