Skip to content

Refract cloak#693

Merged
AdamTadeusz merged 12 commits intoNeotokyoRebuild:masterfrom
AdamTadeusz:069_betterCloak
Oct 12, 2024
Merged

Refract cloak#693
AdamTadeusz merged 12 commits intoNeotokyoRebuild:masterfrom
AdamTadeusz:069_betterCloak

Conversation

@AdamTadeusz
Copy link
Copy Markdown
Contributor

@AdamTadeusz AdamTadeusz commented Oct 11, 2024

Description

----> New Material in NeotokyoRebuild/neoAssets#9 Improves cloak visuals <-----
Also hardcoded values in the PR assume the above new material is used.

This PR makes the original refract cloak effect work properly, as well as change the behavior of when player and weapon shadows and models themselves are drawn, to achieve almost the same effect as in the original. Some values like cloak strength increase with distance, rate of strength increase, cloak strength when moving vs standing still and cloak tint still need to be adjusted to get Parity. Also non-active weapons attached to players in this PR are significantly less visible compared to their og counterparts. Need to figure out whether the original behavior was a bug or whether it should be mimicked

Also thank you to @VantoNortim for figuring out how to cloak player weapons drawn with InternalDraw.

Link to his PR #665 . #665 as well as #673 are probably not compatible, I've moved around some of the logic to minimise unnecessary drawing of models and also how they behave with the vision modes. I would close those PRs if people are happy with this one, and am happy to consider @VantoNortim as a co-author of #693 instead

Toolchain

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

Linked Issues

@AdamTadeusz AdamTadeusz marked this pull request as draft October 11, 2024 11:09
@AdamTadeusz AdamTadeusz added Changes in neoAssets This PR depends on changes in the neoAssets repository. The relevant PR should be in the description Gameplay Stuff that isn't gamemode or weapon specific, such as spectating, audio, configs. labels Oct 11, 2024
@AdamTadeusz AdamTadeusz marked this pull request as ready for review October 11, 2024 11:21
@AdamTadeusz AdamTadeusz requested a review from a team October 11, 2024 11:21
@Rainyan Rainyan self-requested a review October 11, 2024 16:45
brysondev
brysondev previously approved these changes Oct 12, 2024
Rainyan
Rainyan previously approved these changes Oct 12, 2024
Copy link
Copy Markdown
Member

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

LGTM, left some notes but I'd be happy to merge this

Comment thread mp/src/game/client/neo/c_neo_player.cpp Outdated
Comment thread mp/src/game/shared/neo/weapons/weapon_neobasecombatweapon.cpp Outdated
Comment thread mp/src/game/client/neo/c_neo_player.cpp Outdated
@AdamTadeusz AdamTadeusz dismissed stale reviews from Rainyan and brysondev via 71b24db October 12, 2024 14:30
brysondev
brysondev previously approved these changes Oct 12, 2024
@AdamTadeusz AdamTadeusz requested a review from Rainyan October 12, 2024 14:40
Comment thread mp/src/game/client/neo/c_neo_player.cpp
@AdamTadeusz AdamTadeusz merged commit 89465db into NeotokyoRebuild:master Oct 12, 2024
@AdamTadeusz AdamTadeusz deleted the 069_betterCloak branch January 24, 2025 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Changes in neoAssets This PR depends on changes in the neoAssets repository. The relevant PR should be in the description Gameplay Stuff that isn't gamemode or weapon specific, such as spectating, audio, configs.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cloaked people cloaked in thermals First person cloak effect should match OG NT.

3 participants