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

Hover & Gravity #167

Open
pistols12 opened this issue Aug 1, 2016 · 2 comments
Open

Hover & Gravity #167

pistols12 opened this issue Aug 1, 2016 · 2 comments

Comments

@pistols12
Copy link

Hello all,

Soo Gravity used to work on my crafts and now it does not, I also have never been able to set a hover limit about ground properly. Whenever I set hover limit to 1-2 the min and max y, and try it, they can just literally fly to the max y, the hover limitation to 1-2 blocks above ground never works.

What am I doing Wrong?

I am taking the original craft files (car etc) using those as a base craft, and then building from there, so I myself never typed out Gravity: true but it's in there from the original files provided by bacca. Anyone have some thing to note that I may not be doing?

@pistols12
Copy link
Author

It's sure hard to get a working Ram Craft when you cannot climb a hill, and they can float over water or float in general

@mwkaicz
Copy link
Contributor

mwkaicz commented Aug 12, 2016

Hi, again in wrong thread! :) Please use https://github.com/msummers123/Movecraft-3/issues/ next time.

I think that there is no way how to prevent hovercraft goes under some height over terrain (except of set minHeightLimit on flat map) .

There is few properties that you can use for hovercrafts:
maxHeightAboveGround - for biggest crafts in bigger heights above ground ... it's checked only from middle block of the craft
hoverLimit - it's used for limitation hovering in small heights ... it's more precise than maxHeightAboveGround, it validates each block, don't set more than hoverLimit: 5 (0 means no hovering, but still can claim 1 block step.
canHover - allows hovering (without this has hoverLimit no effect)
useGravity - causes that craft goes 1 block down each move if there is free space under craft
canHoverOverWater - allows hovering over water. If it's false, craft can still hover over water, but only part of the craft, not complete craft.

Some examples from our kitchen:

name: car
canFly: false
canHover: true
hoverLimit: 0
harvestBlocks:
- WHEAT
- LONG_GRASS
useGravity: true
canHoverOverWater: false
...

name: rocket-air-air ... copying terrain height during flight
maxSize: 5
minSize: 3
canCruise: true
canFly: false
minHeightLimit: 0
maxHeightLimit: 255
collisionExplosion: 4.0
cruiseOnPilot: true
smokeOnSink: 1
speed: 10.0
canHover: true
hoverLimit: 1 #... can go over small wall (2 blocks height) but explode when rams bigger wall ( > 2 blocks)
moveEntities: false
useGravity: true
...

name: torpedo
maxSize: 5
minSize: 3
canCruise: true
cruiseSkipBlocks: 0
cruiseOnPilot: true
blockedByWater: false
canFly: false
minHeightLimit: 1
maxHeightLimit: 62 #... can't go under water, if it's released from ship or aircraft
collisionExplosion: 4.0
useGravity: true
speed: 10.0
tryNudge: false
sinkPercent: 99.0
moveEntities: false
...

make a note, that hoverLimit function is little buggy and needs to be rewrited ... in some cases, big hovercraft can goes through small obstacles (exactly obstacle jump throught edge of the craft inside the craft)

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

2 participants