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

Bullet mass #444

Closed
cxong opened this issue Jul 21, 2016 · 1 comment
Closed

Bullet mass #444

cxong opened this issue Jul 21, 2016 · 1 comment
Assignees

Comments

@cxong
Copy link
Owner

cxong commented Jul 21, 2016

Add a mass property to bullets. This will only affect pushback.

Currently pushback is calculated as power * velocity. With mass, this is modified as mass * velocity. For backwards compatibility, mass should be the same as power if not specified.

Usually having pushback affected by power makes sense as the player "feels" how much damage a bullet deals. However decoupling power from pushback means:

  • We can have low-pushback weapons where it makes sense, like the rapid-firing but low damage pulse rifle, or flame weapons
  • We can have high-pushback weapons, like repulsion weapons, or explosion effects
  • The way friction works means that the pushback actually seems wrong for explosions. The C-Dogs explosion "clouds" deal small amounts of damage but over time, which results in very little pushback. Realistic explosions should do a large amount of damage over a short amount of time, with large pushback but low damage for targets further from the epicentre.
@cxong cxong added this to the Wishlist milestone Jul 21, 2016
@cxong cxong modified the milestones: 0.6.3, Wishlist Sep 29, 2016
@cxong cxong self-assigned this Sep 29, 2016
@cxong cxong closed this as completed in d87525e Sep 30, 2016
@cxong
Copy link
Owner Author

cxong commented Oct 14, 2016

Need to update the wiki too, maybe add a negative mass example weapon in techdemo

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

No branches or pull requests

1 participant