Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • 0
NaturalTvventy

DECORATE - Another shotgun

Question

I'd like to create a new shotgun pickup that behaves exactly the same as the normal shotgun. I'd basically like a reskin of the shotgun, while allowing for the original shotgun in the WAD as well. I've done this, and it almost works:

Actor Shotgun2 : Shotgun
{
States
{
Spawn:
    SHOT B -1 //new sprite
    Stop
}
}

The only issue that arises is during pickup. If I pick up one version of the shotgun, and then the next, my weapon lowers to switch to the shotgun, even though the shotgun is already picked up. It will do this even if the shotgun is currently in hand. Any ideas? Thanks.

Share this post


Link to post

1 answer to this question

Recommended Posts

  • 1

From wildweasel over at ZDoom:

 

Quote

If you only want there to be one shotgun, but have another one that's a different pickup sprite, you should make your new shotgun inherit from WeaponGiver: https://zdoom.org/wiki/Classes:WeaponGiver Otherwise the game will interpret this as having two different shotguns.

 

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
×