Author Topic: [DONE][Suggestion] ability to spawn items from projectiles (e.g. flare launcher)  (Read 3263 times)

Offline Osobist

  • Sergeant
  • **
  • Posts: 36
    • View Profile
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.
« Last Edit: April 23, 2023, 01:07:21 pm by Meridian »

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9094
    • View Profile
I will look at it.

(no promise yet)

Offline Osobist

  • Sergeant
  • **
  • Posts: 36
    • View Profile
Thanks in advance anyway!

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9094
    • View Profile
Done.

Example:

Code: [Select]
items:
  - type: STR_RIFLE_CLIP
    spawnItem: STR_ELECTRO_FLARE
    spawnItemChance: 100
« Last Edit: April 23, 2023, 01:22:10 pm by Meridian »

Offline Nord

  • Commander
  • *****
  • Posts: 1746
  • The Gate is open.
    • View Profile
So much possibilities... thanks.

Offline mutantlord

  • Colonel
  • ****
  • Posts: 136
    • View Profile
So much possibilities... thanks.

Can this feature support spawning primed item? Eg Proximity grenades or mines that are primed.

Offline mutantlord

  • Colonel
  • ****
  • Posts: 136
    • View Profile
Hi any update to my question?

Offline Yankes

  • Global Moderator
  • Commander
  • *****
  • Posts: 3350
    • View Profile
No, there is no option to do it, but you can hack it using scripts

Offline mutantlord

  • Colonel
  • ****
  • Posts: 136
    • View Profile
Thanks Yankes