Author Topic: Radar Adjustments  (Read 2785 times)

0 Members and 1 Guest are viewing this topic.

Offline headdie

  • i don't use punctuation lol
  • 212
  • Lawful Neutral with a Chaotic outook
    • Skype
    • Twitter
    • Headdie on Deviant Art
I was just reading through the My take on the 2D radar thread and had an idea, can we have the ability to set radar ranges depending on direction.  for example a modder can set the ship's forward 60 degree cone to 100% of the radar range limit if set, the next 60 degrees to 70% and the remainder to 30%.
Minister of Interstellar Affairs Sol Union - Retired
quote General Battuta - "FRED is canon!"
Contact me at [email protected]
My Release Thread, Old Release Thread, Celestial Objects Thread, My rubbish attempts at art

 

Offline z64555

  • 210
  • Self-proclaimed controls expert
    • Steam
If I can find time this week, I'd like to take a look at it. I'm thinking it would be possible with some nested if arguments, but I don't know the details as far as adding new tbl options.
Secure the Source, Contain the Code, Protect the Project
chief1983

------------
funtapaz: Hunchon University biologists prove mankind is evolving to new, higher form of life, known as Homopithecus Juche.
z64555: s/J/Do
BotenAlfred: <funtapaz> Hunchon University biologists prove mankind is evolving to new, higher form of life, known as Homopithecus Douche.

 

Offline headdie

  • i don't use punctuation lol
  • 212
  • Lawful Neutral with a Chaotic outook
    • Skype
    • Twitter
    • Headdie on Deviant Art
Cool, thanks alot
Minister of Interstellar Affairs Sol Union - Retired
quote General Battuta - "FRED is canon!"
Contact me at [email protected]
My Release Thread, Old Release Thread, Celestial Objects Thread, My rubbish attempts at art

 

Offline Dragon

  • Citation needed
  • 212
  • The sky is the limit.
I think that's doable in FRED. Mathematics for that (heck, even dynamic decrease with subsystem health) are quite simple. If you're using SEXP to set radar maximum range, you could very easily tie that range to subsystem damage.

 

Offline headdie

  • i don't use punctuation lol
  • 212
  • Lawful Neutral with a Chaotic outook
    • Skype
    • Twitter
    • Headdie on Deviant Art
I think that's doable in FRED. Mathematics for that (heck, even dynamic decrease with subsystem health) are quite simple. If you're using SEXP to set radar maximum range, you could very easily tie that range to subsystem damage.
I think you misunderstand, what i am asking for is a variation dependent on the angle in relation to the craft

[attachment deleted by a basterd]
Minister of Interstellar Affairs Sol Union - Retired
quote General Battuta - "FRED is canon!"
Contact me at [email protected]
My Release Thread, Old Release Thread, Celestial Objects Thread, My rubbish attempts at art

 

Offline Dragon

  • Citation needed
  • 212
  • The sky is the limit.
Ah, that. OK. I must have misread your post.  :)

 

Offline z64555

  • 210
  • Self-proclaimed controls expert
    • Steam
I think the overall effect is that you'll be able to see objects only within a polar rose petal. This image shows what a "polar rose" is, and it has three petals... we're interested in getting just one petal.


The current radar settings have it so that the lobes (or petals) look like a rotation of a pie slice. (spherical bottom and conical sides)

It turns out that radiation patterns of real directional antennas (including radar) are very similar.
Secure the Source, Contain the Code, Protect the Project
chief1983

------------
funtapaz: Hunchon University biologists prove mankind is evolving to new, higher form of life, known as Homopithecus Juche.
z64555: s/J/Do
BotenAlfred: <funtapaz> Hunchon University biologists prove mankind is evolving to new, higher form of life, known as Homopithecus Douche.

 

Offline z64555

  • 210
  • Self-proclaimed controls expert
    • Steam
Hey headdie, I've figured out a method that should work very well for modders, which will allow you to define the shape of the radar pattern in a tbl. Modder's would basically define the relative ranges for any number of FOV's, and the function will linearly interpolate between FOV definitions so you could get some cool curves.

Only problem is... I haven't figured out where to put the code for it... yet.  :nervous:
Secure the Source, Contain the Code, Protect the Project
chief1983

------------
funtapaz: Hunchon University biologists prove mankind is evolving to new, higher form of life, known as Homopithecus Juche.
z64555: s/J/Do
BotenAlfred: <funtapaz> Hunchon University biologists prove mankind is evolving to new, higher form of life, known as Homopithecus Douche.

 

Offline headdie

  • i don't use punctuation lol
  • 212
  • Lawful Neutral with a Chaotic outook
    • Skype
    • Twitter
    • Headdie on Deviant Art
That's half way there at least, which is a hell of a lot further along than it was at so serious respect there
Minister of Interstellar Affairs Sol Union - Retired
quote General Battuta - "FRED is canon!"
Contact me at [email protected]
My Release Thread, Old Release Thread, Celestial Objects Thread, My rubbish attempts at art

  

Offline z64555

  • 210
  • Self-proclaimed controls expert
    • Steam
I've tracked down a few possible suspects, and they look like they're a couple of original functions from when  :v-old: had messed with it.

My main concern is that the new code might mess with the secondaries when they're pursuing a target...

What I want to do is apply the code only to the pilot's radar (both the player and the ai's). I don't know if the secondaries use the ship's radar when locking on, but if so, I think that it would be perfectly acceptable. However it would be a problem if they used their own radar.

In other words, I'm going to have to sift through the code some more. (Thank goodness for graphvis and doxygen!)
Secure the Source, Contain the Code, Protect the Project
chief1983

------------
funtapaz: Hunchon University biologists prove mankind is evolving to new, higher form of life, known as Homopithecus Juche.
z64555: s/J/Do
BotenAlfred: <funtapaz> Hunchon University biologists prove mankind is evolving to new, higher form of life, known as Homopithecus Douche.