It seems hovercraft sustain damage as set by "waterdamage" no matter where they are.
Video :
http://www.epicedit.com/waterdamage.avi
I'm going to dive into code, but I have a hunch that SJ knows just where to look

-Buggi
Moderator: Moderators
Code: Select all
if(uh->waterDamage && (physicalState==CSolidObject::Floating || (physicalState==CSolidObject::OnGround && pos.y<=-3 && readmap->halfHeightmap[int((pos.z/(SQUARE_SIZE*2))*gs->hmapx+(pos.x/(SQUARE_SIZE*2)))]<-1))){
DoDamage(DamageArray()*uh->waterDamage,0,ZeroVector);
}
Code: Select all
if(uh->waterDamage && ((physicalState==CSolidObject::Floating || physicalState==CSolidObject::OnGround) && pos.y<=-3 && readmap->halfHeightmap[int((pos.z/(SQUARE_SIZE*2))*gs->hmapx+(pos.x/(SQUARE_SIZE*2)))]<-1))){
DoDamage(DamageArray()*uh->waterDamage,0,ZeroVector);
}