In this Discussion

Adding new weapons?

Well, information about adding a new weapon is next to null in the wiki so I started hunting in the ded files that comes in doomsday and found some "requirements" for it, being a "Thing" block to spawn the pickup sprite

However, there is a warning in the very start of objects.ded saying that "order of definitions is important". My question is, what does define the order of every state? is it the order they are placed in the text? And what does link them to be interpreted as a "weapon", since there are no "brackets" saying "hey look, this is the chaingun and it's separated from others with our 'end' command at the very end of all states!"?

Comments

If you replace the original objects.ded file, you must make sure the original state and thing defs are listed in your new ded and listed in exactly the same order they were in the original file, though you can edit their content in any way you wish. Any new states and thing defs you add to it must be listed after.

If you are not replacing the original objects.ded file and instead loading a new ded over the top of the original, you can ignore that message. This way is of course far far better.

Doomsday currently has no support for adding new weapons; only replacing existing ones. Have a look in values.ded for the defs that define the various staes for each weapon.