Page 1 of 1

Unit Ranges

Posted: 05 Apr 2008, 01:41
by user
this thing does this:

Image

1. draws the los sphere. (light blue)
2. draws radar sphere. (green)
3. draws weapon range sphere, or cylinder, if using cylinder targeting. (red)
4. draws the hit sphere. (white)

it has a lot of chat commands to choose which spheres to draw, their render mode(lines, points, quads, polygons), and to draw for only selected units, or every unit in view.

it uses my new sphere drawing function, it allows choosing the render mode, number of subdivisions, and more.

it is good for testing stuff without having to hit 'b'.

i will release it soon.

Re: Unit Ranges

Posted: 05 Apr 2008, 01:48
by lurker
Don't forget that many units with cylindrical targeting will have a height-dependent range, making it actually a cone. Or was it a truncated cone? One of the two.

Re: Unit Ranges

Posted: 05 Apr 2008, 02:02
by user
i thought that cylinder targetting was like, a cylinder instead of sphere,
i mean, something like the range in y axis being higher than the others.

does weaponDefs heightMod has default values?, when drawing the sphere of some units, it looks like it has.

and why does losHeight and losRadius return very low values?

Re: Unit Ranges

Posted: 05 Apr 2008, 08:23
by KDR_11k
user wrote:and why does losHeight and losRadius return very low values?
They're in losmap texels. Don't ask me what size those are, might even vary from mod to mod.

Re: Unit Ranges

Posted: 05 Apr 2008, 09:08
by Argh
They do differ, and LosMipLevel and AirMipLevel do not == 1 and 2 respectively, in Sensors.tdf, they'll reflect the new values, IIRC.