Epoch ship has improper waterline value

Epoch ship has improper waterline value

Classic game design, maintained to please you...

Moderator: Content Developer

Post Reply
slogic
AI Developer
Posts: 626
Joined: 17 Mar 2008, 19:03

Epoch ship has improper waterline value

Post by slogic »

In aseadragon.fbi waterline = 5, while according to movedef min water depth is 15. Fortunately engine clever updates "waterline" value.
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Epoch ship has improper waterline value

Post by Beherith »

Isnt waterline how deep the ship sinks into water, while mindepth is the shallowest water it can cross?
slogic
AI Developer
Posts: 626
Joined: 17 Mar 2008, 19:03

Re: Epoch ship has improper waterline value

Post by slogic »

I thought "waterline" is connected with "floater" so unit does not sink.

Hm, then how can you explain why engine updates waterline from 5 to 15?
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Epoch ship has improper waterline value

Post by knorke »

not sure, found this

Code: Select all

if (ud->floater) {
// restrict our depth to our waterline
unit->pos.y = std::max(-ud->waterline, ground->GetHeightReal(unit->pos.x, unit->pos.z));
} else {
unit->pos.y = ground->GetHeightReal(unit->pos.x, unit->pos.z);
}
https://github.com/spring/spring/blob/m ... Loader.cpp
Post Reply

Return to “Balanced Annihilation”