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

Integrate Planez #37

Open
A5H73Y opened this issue Sep 19, 2020 · 0 comments
Open

Integrate Planez #37

A5H73Y opened this issue Sep 19, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@A5H73Y
Copy link
Owner

A5H73Y commented Sep 19, 2020

Rather than maintain two separate projects with an incredibly similar code base, the Planez functionality will be added to the Carz plugin using a configuration option. Example of implementation:
"Planez.Enabled" defaulted to false.
Once enabled, will add an extra question during the createtype conversation of "Is this a Plane?"; This will become an attribute of the Car.
If this attribute is true while driving, the flight ability is enabled and will kick in when the vehicle has reached its maximum speed (so you can't take off straight away).

Things to consider:

  • Need to include the check to disable fall damage while in a plane
  • Gradually decrease the speed as the player looks higher up, and accelerates while looking down. The speed modifiers could be used to achieve this.
  • Possibly have a Drivable interface which has it's own method of how to move the Vehicle (Car & Plane)
  • Config needs a rewrite to cater for each vehicle type to have different attributes (fuel etc.)
  • Maybe we split this down the middle and have a "/carz createcar" and "/carz createplane" so it makes more sense.
  • Avoid the word "Car" and make it generic "Vehicle" or "Carz Vehicle".
@A5H73Y A5H73Y added the enhancement New feature or request label Sep 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant