Jump to content

Custom items fall through ground


The Nate

Recommended Posts

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.

Share this post


Link to post

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.

Share this post


Link to post

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.

Edited by Sgt Jack V

Share this post


Link to post

 

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).

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...