Skip to content

Conversation

@AdamTadeusz
Copy link
Contributor

@AdamTadeusz AdamTadeusz commented Dec 15, 2024

Description

Weapons that weren't active weren't getting data updates and so ShadowCastType() wasn't being run for them. This pr switches how we control whether shadows are drawn for weapons specifically to instead use the effect EF_NOSHADOW. I've tested bots toggling cloak on and off manually, bots running out of cloak, bots dropping weapons while cloaked, bots dying while cloaked and the shadow behavior for all of these seems correct.

One situation I can think of that I haven't tested where this might break would be a cloaked player who enabled cloak while not in pvs running into view of the player.

Toolchain

  • Windows MSVC VS2022
  • Linux GCC Distro Native [Specify distro + GCC version]
  • Linux GCC 10 Sniper 3.0

Linked Issues

@AdamTadeusz AdamTadeusz requested a review from a team December 15, 2024 17:35
Rainyan
Rainyan previously approved these changes Dec 15, 2024
@Rainyan Rainyan requested a review from a team December 15, 2024 18:34
Rainyan
Rainyan previously approved these changes Dec 15, 2024
@Rainyan Rainyan requested a review from a team December 15, 2024 22:27
brysondev
brysondev previously approved these changes Dec 15, 2024
Copy link
Contributor

@brysondev brysondev left a comment

Choose a reason for hiding this comment

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

lgtm, just wondering why the method is public

@AdamTadeusz
Copy link
Contributor Author

lgtm, just wondering why the method is public

I was going to initially use it in neo_gamerules but it turns out that's not necessary, ill fix that

@AdamTadeusz AdamTadeusz dismissed stale reviews from brysondev and Rainyan via 8d75856 December 16, 2024 10:40
@AdamTadeusz AdamTadeusz merged commit f3f6567 into NeotokyoRebuild:master Dec 17, 2024
7 checks passed
@AdamTadeusz AdamTadeusz deleted the 116_removeShadowsFromNonActiveWeaponsWhenCloaked branch December 17, 2024 14:25
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.

Attachments of cloaked players cast shadows

3 participants