Page 1 of 1

Changing the way groundlevel is reported

Posted: 17 Dec 2006, 15:31
by rattle
At the moment groundlevel turns zero as soon as the footprint of a unit is underwater. I'd like that changed so groundlevel reports a negative value instead when a unit is underwater. To maintain compatibility it would be the best if it could be enabled in the "modinfo.tdf".

OR

A new get varialbe reporting the groundlevel in the way I described above.


Why's that useful?
Imagine an amphibious unit which does NOT walk or drive underwater on the ground but instead it dives. At the moment it would "transform" into the diving stance as soon as the footprint is underwater. That means it would do so even on shores or in small ponds, hence you need to know the actual water depht. It would make smoth more than happy! :-)

Posted: 17 Dec 2006, 16:01
by PauloMorfeo
If we could get the depth at which we are, we could make a anfibious unit fire missiles from underwater.

In TLL, there is a Turtle like unit that is anti nuke but doesn't fires underwater. Like that, i could probably make a deploy where we would see a missile beeing deployed up to the water line and, only then, would it fire the true missile (after the firing point is out of the water), looking like it fired inside the water.
(unles the deployement only gets activated if we manually order an attack...)

Posted: 17 Dec 2006, 16:52
by AF
@paulo: look at the URC nuke sub in EE

Posted: 18 Dec 2006, 04:12
by j5mello
af the sub works because it never changes at what depth its at. The method Paulo mentioned (i.e. moving the firing point up out of the water so that the weapon works) is still being used. The reason that doesn't work for amphib units is that they (you/script/god/whoever) don't know how deep the unit is and as such can't move the firepoint the correct distance. This change allows you to have amphib units that do that as well as... well i can't really say... anyway this would be helpful for a number of reasons so i say:

+1