The Nate Posted October 15, 2017 I have created a custom weapon, but the items I created for it have their sprites fall through the ground. The items themselves are still there, but the sprites just fall through the ground. No one else seems to have had this problem, and I checked on the ZDoom wiki to see if I put any coding errors. Any help? Spoiler actor fuel : ammo { inventory.pickupmessage "Picked up some fuel." inventory.amount 10 inventory.maxamount 300 inventory.icon "AAMOA0" ammo.backpackamount 150 ammo.backpackmaxamount 600 states { spawn : FUEL A -1 loop } } actor fuelpack : fuel { inventory.pickupmessage "Picked up a pack of fuel." inventory.amount 100 states { spawn : BFUL A -1 stop } } ACTOR DoomImpBall2 : DoomImpBall { Damage 10 } actor sjvflamethrower : weapon 20024 { inventory.pickupmessage "You got the Flamethrower!" weapon.ammotype "fuel" weapon.ammouse 1 weapon.slotnumber 5 weapon.ammogive 50 attacksound "weapons/flame" states { ready: THRO A 1 a_weaponready select: THRO A 1 a_raise loop deselect: THRO A 1 a_lower loop spawn: THRO D -1 stop fire: THRO B 2 A_Gunflash THRO C 2 A_Firecustommissile("DoomImpBall2") } } https://www.dropbox.com/s/mdkrdux9vhh3j0i/flamethrowerproto3.pk3?dl=0 This is the link to the file, as of this writing. 0 Share this post Link to post
Ichor Posted October 15, 2017 You need to adjust that sprite offsets. For instance, adjust the fuel sprite offset vertical by 16 and horizontal by 19, and it should work. 1 Share this post Link to post
Ichor Posted October 15, 2017 That wasthe problem though. I just fixed the offsets and it all works now. https://www.dropbox.com/s/7d7cwifrgv6vlj2/flamethrowerproto3.pk3?dl=0 0 Share this post Link to post
The Nate Posted October 15, 2017 (edited) Oh, when you said change offsets, I thought you meant the offset command in DECORATE. Now I feel guilty because I will eventually take credit for someone elses fix. 0 Share this post Link to post
Empyre Posted October 17, 2017 On 10/15/2017 at 6:51 PM, Sgt Jack V said: Oh, when you said change offsets, I thought you meant the offset command in DECORATE. Now I feel guilty because I will eventually take credit for someone elses fix. Credit Ichor in the txt file and in the MAPINFO lump (an internal copy of the txt file). 0 Share this post Link to post