OpenXcom Forum

Modding => Help => Topic started by: chickenx4 on March 07, 2025, 11:05:53 pm

Title: Handobs in my suppressed gun mod is not showing
Post by: chickenx4 on March 07, 2025, 11:05:53 pm
I'm trying to fix the handobs in the suppressed rifle and pistol mod, though problem is, the hand sprite isn't working, I've provided a file. I'm trying to fix it.

Also the pistol I found out isn't right, while the handSprite is 12, in some angles it shows a laser rifle.
Title: Re: Handobs in my suppressed gun mod is not showing
Post by: CrazedHarpooner on March 08, 2025, 12:16:48 am
Tested for a bit, you're missing these values under HANDOB.PCK
Code: [Select]
    height: 40
    width: 256
    subX: 32
    subY: 40
I did notice that the png's are 48 pixel high, so not sure if it'll have an unwanted effect if they don't match the values indicated or OXC will just trim the excess on read. Also, you should change the initial index of the pistol as it's partially overlapping with the laser rifle and heavy laser, the guys had pistols sticking out their backs while they were holding those laser weapons. Should be 96 (update the item handsprite too).
Title: Re: Handobs in my suppressed gun mod is not showing
Post by: chickenx4 on March 08, 2025, 03:41:15 pm
I've did changed pistol to 96, though the suppressor isn't shown, same with rifle.
Title: Re: Handobs in my suppressed gun mod is not showing
Post by: CrazedHarpooner on March 08, 2025, 04:19:47 pm
I see them, they can be hard to notice in some facings or while standing on certain terrains.

Code: [Select]
  - type: HANDOB.PCK
    height: 40
    width: 256
    subX: 32
    subY: 40
    files:
      0: Resources/HANDOB_SRifle.png
      96: Resources/HANDOB_SPistol.png
Title: Re: Handobs in my suppressed gun mod is not showing
Post by: chickenx4 on March 08, 2025, 08:44:30 pm
It works, thanks for the help.