Author Topic: [Solved] Expanding UFO tracking lost logic  (Read 2190 times)

Offline Finnik

  • Commander
  • *****
  • Posts: 508
  • Finnik#0257
    • View Profile
[Solved] Expanding UFO tracking lost logic
« on: April 28, 2022, 09:49:48 pm »
I've got an idea and I think it can be used in some OXCE mods.
Currently, we have logic that if UFO gets out of radar range, you lose its tracking. But in some mods, like XCF, for example, we have radars with global range (that is balanced with very small detection chance), so basically, we can't lose tracking. In addition, not tracking chance is scriptable, so we can create interesting features around it.
I think losing tracking and searching for UFO with crafts is a fun mechanic, so I'd suggest some logic for UFO in `time30minutes`, that would give UFO chance to break tracking if chance for its detection is very low. OFC, we can define that "very low" as an integer value in mod, that would be also a feature toggle.
« Last Edit: February 12, 2023, 03:17:21 pm by Meridian »

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9136
    • View Profile
Re: [SUGGESTION] Expanding UFO tracking lost logic
« Reply #1 on: April 28, 2022, 09:57:04 pm »
isn't that scriptable already?

Offline Finnik

  • Commander
  • *****
  • Posts: 508
  • Finnik#0257
    • View Profile
Re: [SUGGESTION] Expanding UFO tracking lost logic
« Reply #2 on: April 29, 2022, 01:32:45 am »
Hm, I thought I can only change tracking chance to some value. Reducing it to 0 (that would cause tracking lost) on some YS logic would make it invisible to further detection...

Offline Yankes

  • Global Moderator
  • Commander
  • *****
  • Posts: 3374
    • View Profile
Re: [SUGGESTION] Expanding UFO tracking lost logic
« Reply #3 on: April 29, 2022, 10:59:23 am »
This script is called for every tick, by default if ufo is know and there is > 0 detection them initial value for further detection chance is 100, if you set it to zero then tracking will be lost, if you set 50 then it will have 50% chance to lost tracking. What result was in previous tick do on affect next tick aside of initial value of detection chance.

Offline Finnik

  • Commander
  • *****
  • Posts: 508
  • Finnik#0257
    • View Profile
Re: [SUGGESTION] Expanding UFO tracking lost logic
« Reply #4 on: April 29, 2022, 05:13:37 pm »
Sure, I will have to save it in a new UFO tag.

Ok, let's see if I can develop such a script =)