Skip to content

Fix grenade bugs#714

Merged
Rainyan merged 1 commit into
NeotokyoRebuild:masterfrom
Rainyan:bug/grenades
Oct 13, 2024
Merged

Fix grenade bugs#714
Rainyan merged 1 commit into
NeotokyoRebuild:masterfrom
Rainyan:bug/grenades

Conversation

@Rainyan

@Rainyan Rainyan commented Oct 13, 2024

Copy link
Copy Markdown
Member

Description

Fix problems with throwable items like grenades.

This PR disables priming throwables with the +attack2/"alt fire" button, as that seemed to be happening by mistake.

This also removes the experimental underhanding/lobbing of grenades feature. This was never really properly implemented, and was just remnants from tests years ago. It's not parity, and if we wanted this kind of system in the future, it should probably go through a proper design doc process to be added.

Finally, this fixes the inability to throw grenades/throwables whilst sprinting - parity behaviour is to allow throwing of nades regardless of sprint state.

Toolchain

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

Linked Issues

@Rainyan
Rainyan requested review from a team and removed request for a team October 13, 2024 14:30
@nullsystem nullsystem added this to the v9.1-prealpha milestone Oct 13, 2024
brysondev
brysondev previously approved these changes Oct 13, 2024

@brysondev brysondev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one question but lgtm

Comment thread mp/src/game/shared/neo/weapons/weapon_neobasecombatweapon.cpp Outdated
Fix NeotokyoRebuild#708
Fix NeotokyoRebuild#713

Fix problems with throwable items like grenades.

This PR disables priming throwables with the +attack2/"alt fire" button, as that seemed to be happening by mistake.

This also removes the experimental underhanding/lobbing of grenades feature. This was never really properly implemented, and was just remnants from tests years ago. It's not parity, and if we wanted this kind of system in the future, it should probably go through a proper design doc process to be added.

Finally, this fixes the inability to throw grenades/throwables whilst sprinting - parity behaviour is to allow throwing of nades regardless of sprint state.
@Rainyan
Rainyan requested a review from a team October 13, 2024 15:33

@AdamTadeusz AdamTadeusz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be worth opening an issue about grenade throw velocity depending on angle at which it's thrown if we're not pursuing the secondary throw

Edit I guess that would fall under the grenades should behave like og grenades issue

@Rainyan
Rainyan merged commit 4b4b993 into NeotokyoRebuild:master Oct 13, 2024
@Rainyan
Rainyan deleted the bug/grenades branch October 13, 2024 16:08
Rainyan added a commit to Rainyan/rebuild that referenced this pull request Oct 16, 2024
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 added a commit that referenced this pull request Oct 20, 2024
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 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

4 participants