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

How can I remove objects with DECORATE?

Question

Can I replace items with "nothing"? I'm working on a weapon replacement mod and I'm not going to replace all of the weapons, which will leave some original Doom weapons that are not supposed to be used. I know how to prevent the player from picking them up, but still, they shouldn't be there.

Share this post


Link to post

6 answers to this question

Recommended Posts

  • 1

In DECORATE, make a replacement for the weapon that does nothing, like this:

ACTOR NoShotgun replaces Shotgun
{
  States
  {
  Spawn:
    TNT1 A 1
    Stop
  }
}

It doesn't have to be called NoShotgun. You can name it whatever you want, like Nothing1 for example.

Edited by Empyre : fixed missing bracket at beginning or actor definition

Share this post


Link to post
  • 0
1 hour ago, Empyre said:

In DECORATE, make a replacement for the weapon that does nothing, like this:

 


ACTOR NoShotgun replaces Shotgun
  States
  {
  Spawn:
    TNT1 A 1
    Stop
  }
}

 

It doesn't have to be called NoShotgun. You can name it whatever you want, like Nothing1 for example.

Thanks! BTW, what does TNT1 mean? I've seen that several times. Does it mean that it doesn't use a sprite?

Share this post


Link to post
  • 0

TNT1 (always frame A) is the sprite name that you use when you don't want to show anything at all.

 

Please note that I corrected an error in my first post, a missing bracket.

Share this post


Link to post
  • 0
1 hour ago, Empyre said:

TNT1 (always frame A) is the sprite name that you use when you don't want to show anything at all.

 

Please note that I corrected an error in my first post, a missing bracket.

Oh, ok.

 

And I realized about the missing bracket before you corrected it :P I know about the basic structure of this.

Share this post


Link to post
  • 0

I don't know what you do or do not know, so I decided that it would be better to risk telling you something that you already know than risk not telling you something that you need to know. No insult to your intelligence was intended.

Share this post


Link to post
  • 0
15 hours ago, Empyre said:

I don't know what you do or do not know, so I decided that it would be better to risk telling you something that you already know than risk not telling you something that you need to know. No insult to your intelligence was intended.

Don't worry, I understand :)

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
×