aliens

Author Topic: [SUGGESTION] USO size accuracy modifier  (Read 2263 times)

Offline Alpha Centauri Bear

  • Colonel
  • ****
  • Posts: 466
    • View Profile
[SUGGESTION] USO size accuracy modifier
« on: October 16, 2022, 05:56:37 pm »
Hi, Meridian and all.
I am sorry if this question was asked before. I didn't find anything in OCXE forum regarding that.

Vanilla sub armament USO size modifier formula uses USO size index in denominator, which causes extremely big accuracy jump for large to extra large USOs (2.00 / 1.25 = 1.6 times). This effectively causes two issues.
  • Extra large USO becomes noticeable easier to fight so the Battleship (not Dreadnaught) becomes a toughest target.
  • A lot of armaments with > 0.5 accuracy become capped and actually loose their advantage comparing to less accurate ones.

Both of above problems theoretically can be fixed by modifying USOs and armaments parameters but why bother? I don't see this modifier adding any serious variation in game mechanics. All of this can be easily incorporated into USOs capacity. I.e. if it takes 0.8 accuracy penalty to hit extra small USO then we can just make them 1/0.8 times tougher which will result in exactly same battle outcome.

Another important consideration is that this modifier is not documented anywhere in the game deceiving users not aware of it and building false impression on larger USOs being actually tougher based on their damage capacity.

With the above in mind please consider my proposition.
  • Remove this effect altogether. It does not seem to add anything significant mechanics or UX wise.
  • If not removing, then making the effect linear and not that pronounced. Something like 0.8, 0.9, 1.0, 1.1, 1.2.
  • If not any of the above, then exposing all these coefficients to mods so they can change them.

Thank you!

Offline Alpha Centauri Bear

  • Colonel
  • ****
  • Posts: 466
    • View Profile
Re: [SUGGESTION] USO size accuracy modifier
« Reply #1 on: October 18, 2022, 03:38:15 pm »
Should it be even in extended section? Maybe I should move it to OXC?

Offline Yankes

  • Commander
  • *****
  • Posts: 3207
    • View Profile
Re: [SUGGESTION] USO size accuracy modifier
« Reply #2 on: October 18, 2022, 04:36:21 pm »
Depending on scope, some changes could be done in OXC but if is very complex and detailed then only chance to be included is to target OXCE.

For proposal itself, removing any functionality is no-go for OXC or OXCE, there could be option to allow more custom calculations (like using y-scripts or more parameters in rule sets).
I could even consider adding like this but for now I have lot other things on TODO and not enough "working time" to take new requests.

Offline Alpha Centauri Bear

  • Colonel
  • ****
  • Posts: 466
    • View Profile
Re: [SUGGESTION] USO size accuracy modifier
« Reply #3 on: October 18, 2022, 07:26:44 pm »
Got it. Thank you for response.

Offline Alpha Centauri Bear

  • Colonel
  • ****
  • Posts: 466
    • View Profile
Re: [SUGGESTION] USO size accuracy modifier
« Reply #4 on: October 20, 2022, 06:04:20 pm »
With the above in mind, would it be easy to add optional parameter to alien UFO for the purpose of accuracy modifier? By default it will compute it as in vanilla but can be overridden by mod.

Offline Yankes

  • Commander
  • *****
  • Posts: 3207
    • View Profile
Re: [SUGGESTION] USO size accuracy modifier
« Reply #5 on: October 20, 2022, 06:43:08 pm »
Yes, some thing could be possible and probably in scope of OXCE, but you should precisely define show it should work and how it should be used before we (me and Meridian) could consider adding to OXCE.

Another thing is check what other modders thinks about how this feature should work.

Offline Alpha Centauri Bear

  • Colonel
  • ****
  • Posts: 466
    • View Profile
Re: [SUGGESTION] USO size accuracy modifier
« Reply #6 on: October 20, 2022, 08:27:41 pm »
Yes, some thing could be possible and probably in scope of OXCE, but you should precisely define show it should work and how it should be used before we (me and Meridian) could consider adding to OXCE.

Will do.

Another thing is check what other modders thinks about how this feature should work.

Isn't this the place to post a suggestion? Where else I can poll modders feedback on OCXE proposed changes?

Offline Yankes

  • Commander
  • *****
  • Posts: 3207
    • View Profile
Re: [SUGGESTION] USO size accuracy modifier
« Reply #7 on: October 20, 2022, 09:56:21 pm »
Yes, this is place for suggestion, and discussion, but always is good actively seek other modders feedback, simply more people backing given proposal then is bigger chance it will be implemented.

Offline Finnik

  • Colonel
  • ****
  • Posts: 492
  • Finnik#0257
    • View Profile
Re: [SUGGESTION] USO size accuracy modifier
« Reply #8 on: October 21, 2022, 06:59:17 pm »
IMO, it would be good to have dogfight hooks in YS at some point, I can imagine some scripts using it. Looks like handling dogfight fits YS concept. If you would ever develop it, consider also pushing string to dogfight state output line. AFAIK all new OXCE dogfight features do some updates to it in order to let the player know what is happening.

Offline Yankes

  • Commander
  • *****
  • Posts: 3207
    • View Profile
Re: [SUGGESTION] USO size accuracy modifier
« Reply #9 on: October 21, 2022, 09:49:00 pm »
IMO, it would be good to have dogfight hooks in YS at some point, I can imagine some scripts using it. Looks like handling dogfight fits YS concept. If you would ever develop it, consider also pushing string to dogfight state output line. AFAIK all new OXCE dogfight features do some updates to it in order to let the player know what is happening.
I would like too but looking on my current speed it will be done in next decade :>
Code wise adding scripts is easy, hard part is what exactly should be added.

Offline Alpha Centauri Bear

  • Colonel
  • ****
  • Posts: 466
    • View Profile
Re: [SUGGESTION] USO size accuracy modifier
« Reply #10 on: October 21, 2022, 10:02:10 pm »
If you are referring topic original question then I was suggesting to add one parameter to UFO that would specify custom armament accuracy modifier. If not specified then vanilla default.

Offline Finnik

  • Colonel
  • ****
  • Posts: 492
  • Finnik#0257
    • View Profile
Re: [SUGGESTION] USO size accuracy modifier
« Reply #11 on: October 22, 2022, 12:36:37 pm »
Code wise adding scripts is easy, hard part is what exactly should be added.

I can imagine 2 hooks - on state init and on projectile hit, with pointers to vector of crafts, pointer to the ufo and their rule stats, health, distance to ufo, geoscape game and tags. Also, would be cool to have the pointer to projectile. State init is a good place to setup custom tags, while projectile hit would be nice to customize return of hit or miss, damage value and output string.

I would like too but looking on my current speed it will be done in next decade :>

Just adding on top of that pile, I guess ^ _ ^
« Last Edit: October 22, 2022, 12:38:46 pm by Finnik »

Offline TBeholder

  • Sergeant
  • **
  • Posts: 40
    • View Profile
Re: [SUGGESTION] USO size accuracy modifier
« Reply #12 on: December 30, 2022, 08:11:09 pm »
You could tweak evasion (avoidBonus) for fine-tuning. It does all works linearly, much as it pains me to see probabilities added and subtracted like this.
Here you can see the code.
As to the differences in weapon performance, armor is damage reduction, so it weakens low-damage weapons relatively more.

Offline MaxMahem

  • Captain
  • ***
  • Posts: 60
    • View Profile
Re: [SUGGESTION] USO size accuracy modifier
« Reply #13 on: March 11, 2023, 06:16:33 pm »
I'm open to doing this, it seems like an easy patch, though is this really desirable? Seems like any hit chance you want can already be achieved by setting the avoidBonus to whatever value you want. Less intuitive, perhaps, but you can get the same effect in the end. Less work than adding another variable to the rule files and changing a bunch of int based logic to float.