Skip to content

Fix knife incorrect initial secondary attack#741

Merged
Rainyan merged 1 commit into
NeotokyoRebuild:masterfrom
Rainyan:bug/knife
Oct 20, 2024
Merged

Fix knife incorrect initial secondary attack#741
Rainyan merged 1 commit into
NeotokyoRebuild:masterfrom
Rainyan:bug/knife

Conversation

@Rainyan

@Rainyan Rainyan commented Oct 16, 2024

Copy link
Copy Markdown
Member

Description

Fix a problem where the knife swing could be incorrectly triggered once, using the +attack2 input.

This is a supplementary fix to #708 since I forgot to address the knife stuff in the earlier PR #714 that closed the issue.

We had some buggy scaffolding in place for supporting a speculative future secondary attack feature for the knife, but in the spirit of YAGNI I've decided to delete it for now to simplify the code.

To reproduce

See #708 (only the knife case is applicable here, grenades should be already fixed).

Toolchain

  • Linux GCC Distro Native [Mint 21.3 + GCC 11.4.0]

Linked Issues

Fix a problem where the knife swing could be incorrectly triggered once
using the `+attack2` input.

This is a supplementary fix to NeotokyoRebuild#708 since I forgot to address the knife
stuff in the earlier PR NeotokyoRebuild#714 that closed it.

We had some buggy scaffolding in place for a speculative future
secondary attack for the knife, but in the spirit of YAGNI I've decided
to delete it for now to simplify the code.
@Rainyan
Rainyan requested a review from a team October 16, 2024 16:12
@nullsystem nullsystem added this to the v10.0-prealpha milestone Oct 19, 2024
@Rainyan
Rainyan merged commit e6d186b into NeotokyoRebuild:master Oct 20, 2024
@Rainyan
Rainyan deleted the bug/knife branch October 20, 2024 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Pressing alt fire once when having a (smoke) grenade or knife in hand causes player to perform an action once

4 participants