Skip to content

More ADS fixes#1696

Merged
Agiel merged 1 commit intoNeotokyoRebuild:masterfrom
Agiel:scope_fix_take2
Feb 17, 2026
Merged

More ADS fixes#1696
Agiel merged 1 commit intoNeotokyoRebuild:masterfrom
Agiel:scope_fix_take2

Conversation

@Agiel
Copy link
Contributor

@Agiel Agiel commented Feb 16, 2026

Description

  • Fix scoped weapons disappearing when switched to while holding aim
  • Allow hold to aim during freeze time.

I'm unsure about this because it's kinda reverting #1424. However, having ShouldDraw return false when the gun is first deployed seems to cause the viewmodel to not be added to the leaf system, and flipping the return value after that has no effect because UpdateVisibility is only called if the value is different between PreDataUpdate and PostDataUpdate, which it isn't.

My hope is that setting EF_NODRAW in ItemPostFrame will be more reliable than GetViewModelFOV, but let me know if you think there's a better place for it.

Toolchain

  • Linux GCC Distro Native - CachyOS - gcc version 15.2.1 20260209

Linked Issues

* Fix scoped weapons disappearing when switched to while holding aim
* Allow hold to aim during freeze time.
@Agiel Agiel requested a review from a team February 16, 2026 20:04
Copy link
Collaborator

@Rainyan Rainyan left a comment

Choose a reason for hiding this comment

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

edit: I should probably read the opening post properly before commenting...

LGTM, but since this is essentially reverting #1424 which was implemented because #1424 (comment) I do wonder if we run the risk of re-introducing bug #1367 that PR was targeting.

That being said, I couldn't reliably reproduce #1367 anyway so I'm not opposed to merging this and seeing what happens in playtest.

@Rainyan Rainyan requested a review from a team February 16, 2026 22:55
@Agiel Agiel merged commit b3ba6ab into NeotokyoRebuild:master Feb 17, 2026
7 checks passed
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.

Scoped weapons still disappear

3 participants