
Cuztomizable Starting Equipment
Moderator: GZDoom Developers
-
- Posts: 677
- Joined: Sun Feb 27, 2005 4:32 pm
- Location: Revere, MA
Cuztomizable Starting Equipment
Is this at all possibe. I know this has been asked before, and this really needs to change. At the moment, the only way to change the starting inventory, is by DeHacked or ACS. But what if someone makes a weapon mod just in decorate? If this is at all possible, this needs to be added to the inofficial version. just a thought 

-
- Posts: 11255
- Joined: Mon Oct 06, 2003 3:41 pm
- Discord: https://discord.gg/Whts7Bj
- Location: United Kingdom
-
- Posts: 1235
- Joined: Fri Jan 07, 2005 7:29 pm
- Location: #DMClub
-
- Posts: 677
- Joined: Sun Feb 27, 2005 4:32 pm
- Location: Revere, MA
-
- Lead GZDoom+Raze Developer
- Posts: 47986
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
-
- Posts: 399
- Joined: Sun Jan 11, 2004 1:46 pm
- Location: Superior, WI
-
- Lead GZDoom+Raze Developer
- Posts: 47986
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Yes, it can be done in an ENTER script. But that doesn't account for warping between maps etc. I think what we need here is a new type of script (ENTERGAME or something) that has to be put in a library and is executed every time a game is started. At least such an approach wouldn't necessitate adding more complicated options. Everything else I can think of is too messy to be worth considering and this makes nice use of ZDoom's existing features.
-
- Posts: 11255
- Joined: Mon Oct 06, 2003 3:41 pm
- Discord: https://discord.gg/Whts7Bj
- Location: United Kingdom
-
- Lead GZDoom+Raze Developer
- Posts: 47986
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
-
- Posts: 11255
- Joined: Mon Oct 06, 2003 3:41 pm
- Discord: https://discord.gg/Whts7Bj
- Location: United Kingdom
-
- Lead GZDoom+Raze Developer
- Posts: 47986
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
-
- Posts: 11255
- Joined: Mon Oct 06, 2003 3:41 pm
- Discord: https://discord.gg/Whts7Bj
- Location: United Kingdom
-
- Posts: 17
- Joined: Tue Jun 21, 2005 2:09 am
I am new to zdoom editing
I am pretty new to editing, how would you modify the inventory at the start so that the player starts with no guns at all just the fist?
-
- Posts: 976
- Joined: Thu May 12, 2005 5:04 pm
- Location: SporkServ #11 (Coop) >> Scythe 2 <<
It requires a script. I must admit I'm no master at scripting, but this should work(Originally from Doom 3 Weapons Mod):
Code: Select all
#include "zcommon.acs"
script 998 ENTER
{
TakeInventory("Pistol", 999);
GiveInventory("Fists", 1);
SetWeapon("Fists");
}
script 999 RESPAWN
{
TakeInventory("Pistol", 999);
GiveInventory("Fists", 1);
SetWeapon("Fists");
}
-
- Posts: 789
- Joined: Mon May 03, 2004 7:08 am
- Location: At college!
Okay. I'll cry uncle and ask.
I'm trying to make a wad that awards you experience points for kills, like, kill a zombieman, get X points. I'll tie your experience levels to your weapons, so as you get XP, you get better weapons, and the ones you do have power up. I also want this to be a wad you could load up with any wad and just be able to use.
It was easy to make a duplicite zombieman that executes a script giving you XP when you die.
But now I can't figure out how to make sure that said scripts are available.
Is there any way to make a lump that will make scripts that can be activated from any map? Is there any way to do this so it can be done from any wad?
I'm trying to make a wad that awards you experience points for kills, like, kill a zombieman, get X points. I'll tie your experience levels to your weapons, so as you get XP, you get better weapons, and the ones you do have power up. I also want this to be a wad you could load up with any wad and just be able to use.
It was easy to make a duplicite zombieman that executes a script giving you XP when you die.
But now I can't figure out how to make sure that said scripts are available.
Is there any way to make a lump that will make scripts that can be activated from any map? Is there any way to do this so it can be done from any wad?