OpenXcom Forum

OpenXcom Forks => OXCE Support => OpenXcom Extended (OXCE) => OXCE Support Y-scripts => Topic started by: Finnik on April 28, 2022, 09:49:48 pm

Title: [Solved] Expanding UFO tracking lost logic
Post by: Finnik 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.
Title: Re: [SUGGESTION] Expanding UFO tracking lost logic
Post by: Meridian on April 28, 2022, 09:57:04 pm
isn't that scriptable already?
Title: Re: [SUGGESTION] Expanding UFO tracking lost logic
Post by: Finnik 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...
Title: Re: [SUGGESTION] Expanding UFO tracking lost logic
Post by: Yankes 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.
Title: Re: [SUGGESTION] Expanding UFO tracking lost logic
Post by: Finnik 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 =)