Jump to content
  • 0

How to rename weapons?


Gianluco

Question

I've changed the Chaingun's sprites with the Machine gun ones from the beta, and I want to name it, well, machine gun. How do I do it?

Share this post


Link to post

3 answers to this question

Recommended Posts

  • 0

If you're intending this for Vanilla Doom or close to it, you'd use DehackED.

If you're intending this for something limit-removing, then Decorate code should work.

 

Put this code in a text file named DECORATE:

 

ACTOR Machinegun : Chaingun replaces Chaingun
{
   Inventory.PickupMessage "You got the machine gun"
   Obituary "%o was mowed down by %k's machine gun."
}

 

then drop the file in a pk3(SLADE(a wad editting program) can do this), save, and drag the pk3 onto your doom executable.

Share this post


Link to post
  • 0
On 3/29/2022 at 5:44 PM, horselessheadsman said:

If you're intending this for Vanilla Doom or close to it, you'd use DehackED.

If you're intending this for something limit-removing, then Decorate code should work.

 

Put this code in a text file named DECORATE:

 

ACTOR Machinegun : Chaingun replaces Chaingun
{
   Inventory.PickupMessage "You got the machine gun"
   Obituary "%o was mowed down by %k's machine gun."
}

 

then drop the file in a pk3(SLADE(a wad editting program) can do this), save, and drag the pk3 onto your doom executable.

Ok, it works, but the name that pops-up when switching weapons in ZDoom is still Chaingun, why?

Share this post


Link to post
  • 0

Try adding the Tag property too, like

 

ACTOR Machinegun : Chaingun replaces Chaingun
{
   Inventory.PickupMessage "You got the machine gun"
   Obituary "%o was mowed down by %k's machine gun."
   Tag "Machinegun"
}

 

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