Jump to content
  • 0

How to make automatic pistol starts and backpacks give you all weapons using DECORATE?


2's a party but 3 is a cro

Question

I am extremely new to doom modding, in fact I started today. I wanted to make a mod that made it so every time you start a new level you start at 100 health and armor, but only have the pistol. In return the demons drop weapons and ammo to compensate. I know how to make the demons drop ammo and weapons, but I don't know how to make it so every time you start a new map its back to square 1. I also wanted to make it so backpacks give you all the weapons because then it wouldn't be totally useless with the whole losing it when you end the level aspect. I have been using decorate and I wanted to know if you can achieve what i mentioned with it, and how

Share this post


Link to post

5 answers to this question

Recommended Posts

  • 2

To enforce pistol starts, you can use ResetHealth and ResetInventory in MAPINFO map definition, but then you also have to provide map definitions for all maps, which isn't very suitable for a mod that's supposed to be usable with any mapset. Another way is to use an ACS library with a script that calls ClearInventory upon every map start, which I recommend. There might be a DECORATE-only solution, but it'd be hacky and more complicated than the ACS one.

 

To make a backpack that gives you weapons, create a CustomInventory item that gives you both a normal backpack and the weapons.

Edited by scifista42

Share this post


Link to post
  • 1

[as far as I know] You can't do it with Decorate ONLY. At least, you must to use the ZScript (which is kinda different from classic Decorate), and that means you need to understand ACS Scripting, just because all "pistol start" mods are uses simple ACS script.

 

Read more here

 

BTW, you can use this mod.

Edited by DeXiaZ

Share this post


Link to post
  • 1

This has been done many times, though to my knowledge through ACS (and now zscript) instead of decorate. A literal search of "pistol start mod" will also turn up many results.

 

Here is my favorite implementation of the idea:

 

Edited by Fonze

Share this post


Link to post
  • 0
On 9/19/2018 at 8:31 AM, scifista42 said:

To enforce pistol starts, you can use ResetHealth and ResetInventory in MAPINFO map definition, but then you also have to provide map definitions for all maps, which isn't very suitable for a mod that's supposed to be usable with any mapset. Another way is to use an ACS library with a script that calls ClearInventory upon every map start, which I recommend. There might be a DECORATE-only solution, but it'd be hacky and more complicated than the ACS one.

 

To make a backpack that gives you weapons, create a CustomInventory item that gives you both a normal backpack and the weapons.

Alright thanks, I will try this out.

Share this post


Link to post
  • 0
On 9/19/2018 at 8:30 AM, Fonze said:

This has been done many times, though to my knowledge through ACS (and now zscript) instead of decorate. A literal search of "pistol start mod" will also turn up many results.

 

Here is my favorite implementation of the idea:

 

I was originally going to use that but the download link is dead.

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