Author Topic: OXCE (OpenXcom Extended) main thread  (Read 458050 times)

Online Meridian

  • Global Moderator
  • Commander
  • ***
  • Posts: 8626
    • View Profile
Re: OXCE (OpenXcom Extended) main thread
« Reply #1365 on: April 22, 2024, 02:54:30 pm »
I have already implemented this (I used two functions, the spawn of a civilian faction on the xcom base and the spawn command in the ufos and facilities files which allows you to spawn any unit or item at any point in the location), my base is also protected by scientists, engineers and other working personnel, all those who did not have time to evacuate from the base (I created them in the form of a faction of civilians, created spawn points for them, gave them individual weapons to each type of unit in their hands (scientists with one weapon, engineers with others), now there are brave defenders at the base without body armor).

No offense, but I don't see how you could implement it.

My guess is that you just spawned some random units, regardless of how many scientists/engineers there are in the base.

In which case, you completely missed my point.

Offline _Raven_

  • Sergeant
  • **
  • Posts: 26
    • View Profile
Re: OXCE (OpenXcom Extended) main thread
« Reply #1366 on: April 22, 2024, 03:55:00 pm »
Yes, I just added a few scientific units to the base using the spawn command (regardless of how many there are on the base), the rest of the scientists were evacuated, only a few people remained (this gives the base some kind of completeness, closes the emptiness).

I can, in principle, make sure that 50 scientists appear in the laboratory (not the number of them on the base at the moment, but the maximum number that can be accommodated in this module), but in this case there will be a lot of people on the base, it’s better already implement it like I did, just make a spawn for 10 civilian units that are dressed like scientists.

I don’t think that it is generally necessary to implement this completely (as many as there are on the base, there are as many of them when defending the base), it is enough to implement it as I did (they constantly spawn in a static number, for example 10 scientists, the rest were evacuated).

Maybe this is not a full implementation of such a function, but just a superficial spawn function, but nevertheless it looks good (scientists spawn even if they are not at all on the base, so that this does not happen, I tied the spawn of these units to one module of the base, if there is no a laboratory has been built, which means that when the base is attacked, scientists will not spawn).
« Last Edit: April 22, 2024, 03:58:28 pm by _Raven_ »