Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate ACT_AIM to the activity actor system #40684

Merged
merged 10 commits into from
May 20, 2020
Merged

Migrate ACT_AIM to the activity actor system #40684

merged 10 commits into from
May 20, 2020

Conversation

olanti-p
Copy link
Contributor

@olanti-p olanti-p commented May 18, 2020

Summary

SUMMARY: Infrastructure "Migrated ACT_AIM to the activity actor system"

Purpose of change

Contributes to #40013
Fixes "Ignore this kind of distraction" not working for ACT_AIM
Fixes terrain view flickering if aiming on CURSES with shifted view
Fixes interrupting ACT_AIM while aiming RELOAD_AND_SHOOT weapons would leave those weapons loaded

Describe the solution

First commit is from #40683, other commits should be self-explanatory.

targeting_data existed due to limitations of the old activity system; it is gone now.

Due to conflicting default key, added a switch that would disable interruption of activity with player input (. is default key for aiming in target ui and . also offers to cancel current activity)

Testing

Aimed and fired (including loading an autosave made while aiming): RM88 battle rifle, composite bow, Assault barbs mutation and Finger-Mounted Laser bionic. Spawned a zombie technician and let it pull the gun out of my hands - activity is cancelled as intended.

Additional context

There is a debug message when unloading bows, looks like a case of #40125 or some other related bug

Allows performing cleanup when Character::cancel_activity() is called.
Stops terrain from flickering on CURSES while aiming with shifted view
Stops this query from popping up when holding '.' for "Aim" in target ui on CURSES or TILES with low fps
@olanti-p olanti-p changed the title Migrate ACT_AIM to the activity actor Migrate ACT_AIM to the activity actor system May 18, 2020
@curstwist curstwist added Code: Infrastructure / Style / Static Analysis Code internal infrastructure and style Mechanics: Aiming Aiming, especially aiming balance labels May 19, 2020
@ZhilkinSerg ZhilkinSerg merged commit 926f2f3 into CleverRaven:master May 20, 2020
@olanti-p olanti-p deleted the aim-act-act branch May 20, 2020 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code: Infrastructure / Style / Static Analysis Code internal infrastructure and style Mechanics: Aiming Aiming, especially aiming balance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants