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

tweak(onesync): Change f164 to weaponHash for explosionEvent #1768

Closed
wants to merge 1 commit into from

Conversation

niekschoemaker
Copy link
Contributor

@niekschoemaker niekschoemaker commented Dec 31, 2022

Not sure if this is wanted for backwards compatibility sake, but does make code a lot more readable.

Had a log of a lot of explosionEvents happening, and for the ones I could find (mostly fire hydrants, vehicles and gas canisters) this value was always WEAPON_EXPLOSION

@AvarianKnight
Copy link
Contributor

You should keep the old parameter for backwards compatibility but add new ones with the proper names, you can see an old pr for reference

@@ -4356,7 +4356,7 @@ struct CExplosionEvent
bool f190;
bool f191;

uint32_t f164;
uint32_t weaponHash;
Copy link
Contributor

Choose a reason for hiding this comment

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

See @AvarianKnight's comment above.

@blattersturm blattersturm added the manual-review PRs that need manual review and work before merging. label Mar 20, 2023
@thorium-cfx thorium-cfx added the triage Needs a preliminary assessment to determine the urgency and required action label Nov 3, 2023
@FabianTerhorst FabianTerhorst self-assigned this Aug 16, 2024
@prikolium-cfx
Copy link
Contributor

Closed as stale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
manual-review PRs that need manual review and work before merging. triage Needs a preliminary assessment to determine the urgency and required action
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants