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

Player velocity is not added to thrown grenade velocity #36

Closed
MuffinTastic opened this issue Jan 14, 2018 · 1 comment
Closed

Player velocity is not added to thrown grenade velocity #36

MuffinTastic opened this issue Jan 14, 2018 · 1 comment
Labels

Comments

@MuffinTastic
Copy link

in the AoS classic and OpenSpades clients, grenade velocity is player orientation + player velocity.

for instance, this line (i think?)

g.vx = (g.fuse_length==0.0F)?0.0F:players[local_player_id].orientation.x;

should be something like
g.vx = (g.fuse_length==0.0F)?0.0F:(players[local_player_id].orientation.x+players[local_player_id].physics.velocity.x);

@xtreme8000
Copy link
Owner

I really wanted to merge your PR, but I did not know how to resolve those conflicts. I will give credit after adding this myself. (Code location is correct)
Also I think it's probably needed to add the shooters velocity to the tracers aswell.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants