Changing the way groundlevel is reported

Changing the way groundlevel is reported

Requests for features in the spring code.

Moderator: Moderators

Post Reply
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Changing the way groundlevel is reported

Post 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! :-)
User avatar
PauloMorfeo
Posts: 2004
Joined: 15 Dec 2004, 20:53

Post 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...)
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

@paulo: look at the URC nuke sub in EE
j5mello
Posts: 1189
Joined: 26 Aug 2005, 05:40

Post 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
Post Reply

Return to “Feature Requests”