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

muzzle light, toc flash and grenade angular impulse #1007

Merged

Conversation

AdamTadeusz
Copy link
Contributor

Description

In the case of the grenade angular impulses we were previously using the values Rain calculated in-game. Using cl_pdump the angular velocity of the grenade projectile is 0 in all directions so I'm guessing Rain observed the angular position of the projectiles over time and calculated them that way. The reason these are probably wrong I'm guessing is because the order in which the position in the x y and z direction is displayed is not the same as the order in which the impulse in the three directions is passed in in the grenade projectile creation function. Here are the values for a grenade projectile in the original

image

Once the base sdk angular impulse values are substituted in in rebuild, the angular position of the projectiles looks a lot more similar (notice the zeroed out middle column). This is despite the 0 value being the last of the three values passed for the angular impulse

image

@AdamTadeusz AdamTadeusz requested a review from a team March 15, 2025 11:25
@AdamTadeusz AdamTadeusz merged commit dcc8efc into NeotokyoRebuild:master Mar 16, 2025
7 checks passed
@AdamTadeusz AdamTadeusz deleted the 179_GrenadeAndLightTweaks branch March 16, 2025 13:31
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.

3 participants