OpenXcom Forum
Modding => Help => Topic started 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.
-
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.
-
Thanks, i will try the option 1.
-
Item spawn method? can you explain me more, please?
Thanks
-
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:
- 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.
-
After found this, i decided no to put in my mod ;D ;D ;D... but it works as learning.
:D why?
-
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)
-
: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.
-
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
-
Nice mod.
-
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.