Jump to content
  • 0

How can I remove objects with DECORATE?


KVELLER

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.

Edited by KVELLER

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

Join the conversation

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

Guest
Answer this question...

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