Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
The Nate

Custom items fall through ground

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.

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×