aliens

Author Topic: Solar's wishlist  (Read 494173 times)

Offline krautbernd

  • Commander
  • *****
  • Posts: 1108
    • View Profile
Re: [WIP] [Suggestion] Solar's wishlist
« Reply #450 on: October 18, 2019, 04:10:45 pm »
All new attributes are subject to change during actual implementation, depending on compatibility with other features and potential extension of cyberdisc/bio-drone self-destruct triggers, power and type.
Might this include the possibility of 'disarming' units that are set to self-destruct, in case stunned units wake up again?

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9094
    • View Profile
Re: [WIP] [Suggestion] Solar's wishlist
« Reply #451 on: October 18, 2019, 04:32:57 pm »
Might this include the possibility of 'disarming' units that are set to self-destruct, in case stunned units wake up again?

Disarm which units?

(The self-destructed ones will be insta-killed and won't be able to rise from the dead.)

Offline krautbernd

  • Commander
  • *****
  • Posts: 1108
    • View Profile
Re: [WIP] [Suggestion] Solar's wishlist
« Reply #452 on: October 18, 2019, 04:40:42 pm »
Disarm which units?

(The self-destructed ones will be insta-killed and won't be able to rise from the dead.)
Stunnning units that are set to self-destruct on death attack. Would it be possible to remove/disable the self-destruct flag if the unit is successfully stunned and falls unconscious? Example would be a suicide bomber unit that is (supposed) to wear an explosive vest. Would it be possible to either retrieve the 'vest' (if the function is bound to an item that can be dropped) or disable the self-destruct alltogether?
« Last Edit: October 18, 2019, 05:07:19 pm by krautbernd »

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9094
    • View Profile
Re: [WIP] [Suggestion] Solar's wishlist
« Reply #453 on: October 18, 2019, 04:50:36 pm »
Stunnning units that are set to self-destruct on death. Would it be possible to remove/disable the self-destruct flag if the unit is successfully stunned and falls unconscious? Example would be a suicide bomber unit that is (supposed) to wear an explosive vest. Would it be possible to either retrieve the 'vest' (if the function is bound to an item that can be dropped) or disable the self-destruct alltogether?

I don't understand, please don't mix "self-destruct on death" (existing feature) with "self-destruct on attack" (new feature).

Units that self-destruct on death (cyberdisc):
- are disarmed when stunned or killed... just like every other unit in the game
- don't have to self-destruct... just like vanilla cyberdiscs or bio-drones for example... when killed by stun, melee, HE, etc.

Units that self-destruct on attack (suicide bomber):
- are disarmed when stunned or killed... just like every other unit in the game
- don't self-destruct if you kill or stun them... they only self-destruct if they are the attacker

Offline krautbernd

  • Commander
  • *****
  • Posts: 1108
    • View Profile
Re: [WIP] [Suggestion] Solar's wishlist
« Reply #454 on: October 18, 2019, 05:03:44 pm »
Just noticed I actually wrote self-destruct on death. I meant self-destruct on attack. Sorry for the mix-up.

My question concerns what happens to those units when they wake up. I've never encountered a cyberdisc getting back up after being stunned, but supposedly they would still self-destruct if killed (since the existing self-destruct mechanic is bound to the corpse afaik).

Normal units drop their weapons (if they aren't part of their armor definitions) if they fall unconscious, which includes grenades etc. - would a suicide bomber that is stunned and wakes up still be able to explode or would it be possible to set item(s) that govern the "self-destruct on attack" ability (if the ability is implemented this way) to be droppable?
« Last Edit: October 18, 2019, 05:07:48 pm by krautbernd »

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9094
    • View Profile
Re: [WIP] [Suggestion] Solar's wishlist
« Reply #455 on: October 18, 2019, 05:46:42 pm »
My question concerns what happens to those units when they wake up. I've never encountered a cyberdisc getting back up after being stunned, but supposedly they would still self-destruct if killed (since the existing self-destruct mechanic is bound to the corpse afaik).

2x2 units (cyberdisc) cannot wake up, ever.
1x1 units (bio-drone) can wake up, same way as normal units. If you stunned or killed a bio-drone that woke up, it would work exactly the same as if you were doing it to him for the first time. Or in other words, the fact it was stunned before has no impact on anything.

Normal units drop their weapons (if they aren't part of their armor definitions) if they fall unconscious, which includes grenades etc. - would a suicide bomber that is stunned and wakes up still be able to explode or would it be possible to set item(s) that govern the "self-destruct on attack" ability (if the ability is implemented this way) to be droppable?

I don't plan to implement any items (droppable or fixed) to perform unit self-destruct.
The unit itself will explode, not any item it is carrying.

Offline krautbernd

  • Commander
  • *****
  • Posts: 1108
    • View Profile
Re: [WIP] [Suggestion] Solar's wishlist
« Reply #456 on: October 18, 2019, 06:14:35 pm »
2x2 units (cyberdisc) cannot wake up, ever.
1x1 units (bio-drone) can wake up, same way as normal units. If you stunned or killed a bio-drone that woke up, it would work exactly the same as if you were doing it to him for the first time. Or in other words, the fact it was stunned before has no impact on anything.

I don't plan to implement any items (droppable or fixed) to perform unit self-destruct.
The unit itself will explode, not any item it is carrying.
I think I misunderstood the "dummy-item" part you mentioned. I guess my question then would be if the self-destruct flag can be dynamic, with an option to set it to false if the unit falls unconscious.

Offline zee_ra

  • Colonel
  • ****
  • Posts: 213
    • View Profile
Re: [WIP] [Suggestion] Solar's wishlist
« Reply #457 on: September 05, 2022, 01:57:40 pm »
DEV update:

Changing default values technically requires either:
1. not changing them at all, store both modded value and modded default value and decide real-time, which one to use... which is inefficient, prone to errors and cannot be generalized... it's used on a few places, but it's an extreme PITA and cannot be used on larger scale
2. creating a completely new secondary mod system that is processed before the current mod system... just to have the default values prepared before any of the primary mod stuff is processed... that's a huge amount of work, for very questionable benefit

You can basically consider this request as rejected.

A workaround/compromise I can offer is to create a few templates and use

What is the current state of the capability to create new definitions in a mod by inheritance?  Let's consider the following example to illustrate what I mean.  Some mod X depends on mod ORIG, and an item X.weapon_nd should be largely the same as the ORIG.weapon_nd, but perhaps with a new ammo type available.  How could I proceed to implement something like this?

In general, I see no particular trouble with hard-coding module version dependencies, and generating new text for the whole definition of an item (in the example above, a copy of ORIG.weapon_nd with the definition for new ammo spliced-in) in the mod X, using whatever template engine, based on the text that was already present in the mod ORIG.  The strict versioning dependency allow me to ensure that the specific versions of X refer to the exact text in ORIG.  While this is the most general approach, that works with all games that have modding and versioning capability, I would like to inquire if there exists a different mechanism to accomplish the same in OXCE, without the reliance on the external templating engine?

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9094
    • View Profile
Re: [WIP] [Suggestion] Solar's wishlist
« Reply #458 on: September 05, 2022, 02:13:55 pm »
There is no such thing in OXC/E at the moment.

Offline zee_ra

  • Colonel
  • ****
  • Posts: 213
    • View Profile
Re: [WIP] [Suggestion] Solar's wishlist
« Reply #459 on: September 05, 2022, 04:20:32 pm »
There is no such thing in OXC/E at the moment.

Ok.  Thank you for sharing that.

I wonder, if there's a way to ensure the strict version dependence on the parent mod?  It's something that I could pull off e.g. in HoI 4, and the rest is handled by static (i.e. mod release) generation, from templates, based on the contents of both templates and of the parent mod.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9094
    • View Profile
Re: [WIP] [Suggestion] Solar's wishlist
« Reply #460 on: September 05, 2022, 04:43:00 pm »
No, modders are very bad at keeping their version numbers clean.

More often than not, they forget to increase the version number in metadata.yml when releasing a new mod version.

--

If you could live with a "minimum version dependence" (instead of "specific version dependence") on a parent mod (e.g. version 3.5.1 or higher), Yankes is working on that right now and it will be available in the OXC nightlies and next OXCE release within a few weeks.