OpenXcom Forum

Modding => Help => Topic started by: cevaralien on July 17, 2020, 09:01:25 pm

Title: Plasma beam recoverable from UFO
Post by: cevaralien on July 17, 2020, 09:01:25 pm
Hi, nice to meet all.

I'm making a mod, but  i have a issue with a feature. I want to do plasma beam recoverable, because in my mod, no alien items could be manufactured.

I try to assign a specialItem number, but i saw that these numbers are assigned to another items, like ufo power source. After that, i learn that these items are tied to maps items.

The other option that i was thinking is to "hide" a item in the UFO similar to the elerium, but i don't know yet how to do this.

Does needed to open the maps to put these "hide" item on UFO?

Sorry for my english, this is not my natural language.
Title: Re: Plasma beam recoverable from UFO
Post by: wcho035 on July 18, 2020, 01:22:41 pm
There are two ways of doing this.

1) You spawn an item in the ufo map, using the item spawn method, check 40k mod. You spawn an item on the ufo and salvage it after the mission. Item can be research and re-manufacture into a plasma cannon.

2) Harder way. You know MCD, PCK and photoshop editing and how to edit the sprite sheet belonging to a terrain from a ufo map.
You have to add a plasma weapon sprite that can later added in mapview2 on a ufo. Assign a special item number to the plasma weapon, only then you can salvage it, after ufo recovery. Pending on the special item number you gave it. Can be any number after 20.
Title: Re: Plasma beam recoverable from UFO
Post by: cevaralien on July 19, 2020, 04:41:00 pm
Thanks, i will try the option 1.
Title: Re: Plasma beam recoverable from UFO
Post by: cevaralien on July 19, 2020, 09:00:46 pm
Item spawn method? can you explain me more, please?

Thanks
Title: Re: Plasma beam recoverable from UFO
Post by: cevaralien on August 23, 2020, 07:01:28 pm
After some reseach, i've done it. For people interested in Plasma Cannon recoverable, you only need to put the item on the UFO at some coordinate. See lines remarked:

Quote
  - type: STR_INFILTRATOR
    modSprite: Infiltrator
    size: STR_SMALL
    damageMax: 300
    speedMax: 4300
    power: 30
    range: 42
    score: 125
    reload: 32
    breakOffTime: 340
    battlescapeTerrainData:
      name: UFO_I1
      mapDataSets:
        - BLANKS
        - U_EXT02
        - U_WALL02
        - U_BITS
      mapBlocks:
        - name: UFO_I1
          width: 20
          length: 20
           items:
           STR_PLASMA_CANNON:
              - [9, 15, 0]
              - [9, 3, 0]

The coordinates depends on the place where you want to put the object. I used the program MapViewer to design and see the coordinates of vanilla UFOs, so, i found the places where i want the items.

These items are similar to another item recoverable, for example, heavy plasmas or alien grenades, so, you can do sprites to make them part of the scenary.

After found this, i decided no to put in my mod  ;D ;D ;D... but it works as learning.
Title: Re: Plasma beam recoverable from UFO
Post by: Docent on August 24, 2020, 02:03:48 pm
After found this, i decided no to put in my mod  ;D ;D ;D... but it works as learning.

 :D why?
Title: Re: Plasma beam recoverable from UFO
Post by: The Reaver of Darkness on August 24, 2020, 04:45:49 pm
I've made "jelly beans" that correspond to UFO components: plasma array, plasma emitter, shield emitter. Let me know if you want a copy.

(https://i.imgur.com/vGhZ4XH.png)
Title: Re: Plasma beam recoverable from UFO
Post by: cevaralien on August 25, 2020, 03:00:23 am
:D why?

Because my craft could begun to be owerpowered, and the plasma cannon would be available plentiful after some crash recovering or UFO assault.
Title: Re: Plasma beam recoverable from UFO
Post by: cevaralien on September 26, 2020, 05:35:29 pm
I've made "jelly beans" that correspond to UFO components: plasma array, plasma emitter, shield emitter. Let me know if you want a copy.

(https://i.imgur.com/vGhZ4XH.png)

This looks very good. I'm thinking about recoverable plasma cannons, but i want to do them disposable. Maybe i could use your copy, please. Thanks
Title: Re: Plasma beam recoverable from UFO
Post by: thePaleone on September 27, 2020, 03:57:43 am
Nice mod.
Title: Re: Plasma beam recoverable from UFO
Post by: The Reaver of Darkness on September 27, 2020, 01:55:12 pm
Sure thing, here it is.

This mod contains the plasma arrays and emitters, as well as a change to craft plasma beam and fusion ball which make them use these materials.