Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CoC/Anomaly] Optional grenade launcher switch animation usage. #1768

Merged
merged 3 commits into from
Feb 5, 2025

Conversation

Neloreck
Copy link
Contributor

@Neloreck Neloreck commented Jan 12, 2025

Just changing how animation is handled for grenade launcher toggling.

In case of missing animation just toggle switch. It is normal for some weapons with GL where switching mode does not require adjusting weapon / placing hand on another position. Found this one when was playing with integration of anomaly weapons and noticed some missing anm_switch_g anm_switch animation fields.

Main question as for now is logging -> probably prettier variant without method overloading can be implemented?

Changes

  • Just changing how animation is handled for grenade launcher toggling, allow cases without animation
  • Still respect variant with two animations (SoC support?) and add comment for it
  • Add param to prevent not_found log messages when doing animation checks / playing SoC animation variant (currently it produces 2 messages if animation is not found, I believe it is always 1 message for SoC)

Links

https://github.com/xrLil-Batya/xray-monolith/blob/d404b95d92947e83b283d912111fe0957fb5fbb6/src/xrGame/WeaponMagazinedWGrenade.cpp#L839

#1763

#1373

@Neloreck Neloreck force-pushed the dev-coc-optional-gl-animation branch from dbc6921 to b7b0604 Compare January 14, 2025 18:21
@Neloreck Neloreck requested a review from Xottab-DUTY January 14, 2025 18:24
@Neloreck Neloreck force-pushed the dev-coc-optional-gl-animation branch from c37f49a to 03990f1 Compare January 19, 2025 01:46
@Xottab-DUTY Xottab-DUTY merged commit 936cfd1 into OpenXRay:dev Feb 5, 2025
33 of 34 checks passed
@Xottab-DUTY
Copy link
Member

Thanks!

@Xottab-DUTY Xottab-DUTY added Enhancement Modmaker Experience Modmaker experience with OpenXRay Call of Chernobyl This can affect Call of Chernobyl compatibility, or related to it. labels Feb 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Call of Chernobyl This can affect Call of Chernobyl compatibility, or related to it. Enhancement Modmaker Experience Modmaker experience with OpenXRay
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants