# Small How-To-Integrate Guide
## extraSprites
- The Repo/Script can be found
here- for each spriteSheet you need to extend the PCK with the smaller sheets containing the death Animations. The gib sheets can be 256x48 for 8 frames. Other dimensions are probably also possible.
extraSprites:
- type: XCOM_SOLDIER_0_GOG.PCK
subX: 32
subY: 40
width: 256
height: 1400
files:
0: Resources/Vanilla/XCOM_0.PNG
320: Resources/Vanilla/XCOM_0_normal.PNG
328: Resources/Vanilla/XCOM_0_gibs.PNG
336: Resources/Brain_322/human_to_ash.png
344: Resources/Brain_322/human_to_goo.png
We will need the Indices 320, 328, 336, 344 later. The indices start at 320 as the biggest TFTD sheet has 304 frames and 320 seems to be a good number. There is a difference of 8 to make sure that one gib sheet isn't drawn into another one. If you want to add more kinds of deaths, you just add another line with an additional +8.
Also we probably want to set up a corpse, so FLOOR.PCK and BIGOBS.PCK need to be set up accordingly
extraSprites:
- type: FLOOROB.PCK
files:
200: Resources/floorob_gibs.png
201: Resources/Brain_322/floorob_Ash.png
202: Resources/Brain_322/floorob_Goo.png
- type: BIGOBS.PCK
files:
200: Resources/floorob_gibs.png
201: Resources/Brain_322/floorob_Ash.png
202: Resources/Brain_322/floorob_Goo.png
We will remember 200, 201 and 202. Similar to the spritesheets additional sprites can be added here.
## armors
Then we will need to modify the armor
extended:
tags:
RuleArmor:
NORMAL_SPRITESHEET: int
GIB_SPRITESHEET: int
BURNED_SPRITESHEET: int
GOO_SPRITESHEET: int
armors:
- &STR_GOG_ARMOR
type: STR_NONE_UC
spriteSheet: XCOM_SOLDIER_0_GOG.PCK
deathFrames: 8 # if you want to use more than the default 3
tags:
NORMAL_SPRITESHEET: 320 # Resources/Vanilla/XCOM_0_normal.PNG
GIB_SPRITESHEET: 328 # Resources/Vanilla/XCOM_0_gibs.PNG
BURNED_SPRITESHEET: 336 # Resources/Brain_322/human_to_ash.png
GOO_SPRITESHEET: 344 # Resources/Brain_322/human_to_goo.png
The values for the tags are the numbers we set up in extraSprites for the sprite sheet. A normal death spritesheet should be tacked on if you want to use a higher value than 3 for deathFrames.
## corpses
Similar to the armor we need to set a few tags for the corpses.
extended:
tags:
RuleItem:
GIB_BIGOB: int
GIB_FLOOROB: int
BURNED_BIGOB: int
BURNED_FLOOROB: int
GOO_BIGOB: int
GOO_FLOOROB: int
items:
- &STR_HUMAN_CORPSE
type: STR_CORPSE
tags:
GIB_BIGOB: 200 # Resources/floorob_gibs.png
GIB_FLOOROB: 200 # Resources/floorob_gibs.png
BURNED_BIGOB: 201 # Resources/Brain_322/floorob_Ash.png
BURNED_FLOOROB: 201 # Resources/Brain_322/floorob_Ash.png
GOO_BIGOB: 202 # Resources/Brain_322/floorob_Goo.png
GOO_FLOOROB: 202 # Resources/Brain_322/floorob_Goo.png