aliens

Author Topic: Hit and bullet sprite numbers and the corresponding files  (Read 4768 times)

Offline Ran

  • Colonel
  • ****
  • Posts: 196
    • View Profile
Hit and bullet sprite numbers and the corresponding files
« on: May 17, 2014, 06:28:00 am »
Sorry, I know I asked before, but I still don't get it. ???

How are the numbers for hit- and bullet sprites in the items section related to the corresponding numbers for the extra files?
For bullet sprites they are very different and I don't see how the game chooses the right ones. Hit sprites are mostly the same, but that works in some cases and doesn't in others.
Currently I have the case that neither bullets nor hits are visible in several mods I am working on.

Also - is it possible to have different bullet sprites for the same weapon as you use different ammo?
As I see it bullet sprites are attached to weapons rather to ammo.
« Last Edit: May 17, 2014, 06:47:50 am by Ran »

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: Hit and bullet sprite numbers and the corresponding files
« Reply #1 on: May 17, 2014, 08:15:47 pm »
https://openxcom.org/forum/index.php?topic=1901.msg17909#msg17909

bullet hits refer to individual entries in smoke.pck
melee hits refer to individual entries in hit.pck

no, bullet sprite can be defined by ammo too.

edit: looking at the last thread you posted on this subject, i'm guessing the problem you're facing is with the palettes. consider the battlescape palette as a fixed constant, and do your artwork based on that, not vice versa ;)
« Last Edit: May 17, 2014, 08:31:10 pm by Warboy1982 »