Do inventory items not respect sprite offsets?

Forum rules
Please construct and post a simple demo whenever possible for all bug reports. Please provide links to everything.

If you can include a wad demonstrating the problem, please do so. Bug reports that include fully-constructed demos have a much better chance of being investigated in a timely manner than those that don't.

Please make a new topic for every bug. Don't combine multiple bugs into a single topic. Thanks!

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is ON
[img] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Do inventory items not respect sprite offsets?

Re: Do inventory items not respect sprite offsets?

by Sir Robin » Mon Nov 06, 2023 10:45 am

Is ther any flag to turn that off? Either per-item or game-wide?

Re: Do inventory items not respect sprite offsets?

by Graf Zahl » Mon Nov 06, 2023 10:08 am

That's the sprite offset adjustment at play. For pickups the rules are different because too many of them had bad offsets.

Do inventory items not respect sprite offsets?

by Sir Robin » Sun Nov 05, 2023 5:45 pm

for example, use this sprite from GZDOOM:

Code: Select all

sprite TESTA0, 26, 13
{
	offset 13,7
	patch TLGLA0, 0, 0
}
that sprite is 26x13, and the 13,7 offset says it should be sunk into the floor when used by an actor
so I try it on both an actor and an inventory class:

Code: Select all

class TEST1 : actor {states {spawn: TEST A -1; stop;}}
class TEST2 : inventory {states {spawn: TEST A -1; stop;}}
And this is what I see:

Thats TEST1 on the left and TEST2 on the right
I loaded radius debug to confirm it's not a positioning issue, but I still see it without that or anything else loaded

Top