OpenXcom Forum

Modding => OpenXcom Extended => OXCE Suggestions DONE => Topic started by: Osobist on October 18, 2022, 08:23:27 am

Title: [DONE][Suggestion] ability to spawn items from projectiles (e.g. flare launcher)
Post by: Osobist on October 18, 2022, 08:23:27 am
Suggesstion: add spawnItem to items: in OXCE.

I had an idea to add flare-rounds for grenade launcher to light up dark places. But I can't place items via shots.

Sometimes it's not convenient to use actual flares because of small throw distance. Also it's useful when you want to places mines around the map. Perhaps there is other uses might be.

Of course I could spawn the unit that emits the light but the problem is that aliens can attack the flare instead of player's units which seems incorrect. More than that - the spawned flare can detect enemies as unit if they come close enough. It's okay for remote cameras but not for flares.
Title: Re: [Suggestion] ability to spawn items from projectiles (e.g. flare launcher)
Post by: Meridian on October 18, 2022, 05:08:53 pm
I will look at it.

(no promise yet)
Title: Re: [Suggestion] ability to spawn items from projectiles (e.g. flare launcher)
Post by: Osobist on October 18, 2022, 06:58:10 pm
Thanks in advance anyway!
Title: Re: [DONE][Suggestion] ability to spawn items from projectiles (e.g. flare launcher)
Post by: Meridian on April 23, 2023, 01:13:16 pm
Done.

Example:

Code: [Select]
items:
  - type: STR_RIFLE_CLIP
    spawnItem: STR_ELECTRO_FLARE
    spawnItemChance: 100
Title: Re: [DONE][Suggestion] ability to spawn items from projectiles (e.g. flare launcher)
Post by: Nord on April 23, 2023, 09:35:03 pm
So much possibilities... thanks.
Title: Re: [DONE][Suggestion] ability to spawn items from projectiles (e.g. flare launcher)
Post by: mutantlord on April 27, 2023, 04:02:00 pm
So much possibilities... thanks.

Can this feature support spawning primed item? Eg Proximity grenades or mines that are primed.
Title: Re: [DONE][Suggestion] ability to spawn items from projectiles (e.g. flare launcher)
Post by: mutantlord on April 29, 2023, 06:57:33 pm
Hi any update to my question?
Title: Re: [DONE][Suggestion] ability to spawn items from projectiles (e.g. flare launcher)
Post by: Yankes on April 29, 2023, 08:55:07 pm
No, there is no option to do it, but you can hack it using scripts
Title: Re: [DONE][Suggestion] ability to spawn items from projectiles (e.g. flare launcher)
Post by: mutantlord on April 30, 2023, 11:06:21 am
Thanks Yankes