Skip to content

Fix knife shadow - #2058

Merged
Rainyan merged 2 commits into
NeotokyoRebuild:masterfrom
Rainyan:bug/knife-shadow
Aug 9, 2026
Merged

Fix knife shadow#2058
Rainyan merged 2 commits into
NeotokyoRebuild:masterfrom
Rainyan:bug/knife-shadow

Conversation

@Rainyan

@Rainyan Rainyan commented Aug 8, 2026

Copy link
Copy Markdown
Member

Description

git cherry-pick DG's knife shadow fix from 44e757b

Toolchain

  • Windows MSVC VS2022

Linked Issues

@Rainyan
Rainyan requested a review from a team August 8, 2026 17:11
AdamTadeusz
AdamTadeusz previously approved these changes Aug 8, 2026

@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.

Do we want to put a comment somewhere that this is a hack? Setting the shadow visibility of each knife should not be done each frame

also avoid spamming effect changes with GetEffects check
@Rainyan

Rainyan commented Aug 8, 2026

Copy link
Copy Markdown
Member Author

Do we want to put a comment somewhere that this is a hack? Setting the shadow visibility of each knife should not be done each frame

addressed in 01ee7f1

@AdamTadeusz
AdamTadeusz requested a review from a team August 9, 2026 10:40
Comment thread src/game/shared/neo/weapons/weapon_knife.cpp
@DESTROYGIRL

Copy link
Copy Markdown
Contributor

In the future maybe we should look at clearing the model instead of controlling if its drawn or not

@Rainyan
Rainyan merged commit 01b9005 into NeotokyoRebuild:master Aug 9, 2026
7 checks passed
@Rainyan
Rainyan deleted the bug/knife-shadow branch August 9, 2026 11:21
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.

The shadow for the knife appears under players even when the knife isnt visible

3 participants