OpenXcom Forum
Modding => Help => Topic started by: pjlasl on January 15, 2022, 05:54:47 pm
-
I am trying to learn how to use the specialweapons property.
I have added a couple different ones and they show up in the ufopaedia, but I am not sure how to access them in the battlescape.
Can someone help?
-
"Special Weapons" are just another way to access a weapon that isn't placing a gun in a soldier's hand. To get them to appear, you need:
- To define the weapon as a specialWeapon on either an armor or on a unit for HWPs
- To add specialIconSprite or specialUseEmptyHand on the weapon's item definition
-
With your explanation I figured out how to put it together!
Items:
specialUseEmptyHand: true
specialIconSprite: 2 # 0,1 used by SPICONS.DAT
extraSprites:
- type: SPICONS.DAT
width: 32
height: 24
files:
2: Resources/Spicons1.gif