Reaper Grimm
Register | User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > WADs & Mods > ZDoom Pistol Start Options
 
Author
All times are GMT. The time now is 23:22. Post New Thread    Post A Reply
scroton
Green Marine


Posts: 48
Registered: 08-13


Made this for a couple of guys on a site I frequent who were dissatisfied with zdoom's handling of autosaves and pistol starts (zdoom allows for disabling of autosaving, but not autoloading, so the only way to have immediate pistol start of levels on death is to delete ALL saves for a particular wad and then not save again, since any saves, even for earlier levels, will be loaded preferentially) and thought I'd share it here.

From the readme in the zip (also included as an "about" file in the WAD itself):

Pistol_Start_Options.wad is a singleplayer (g)zdoom-only mod which allows various pistol start options for players. It is compatible with all difficulty levels, all maps using vanilla weapons, all supported mods listed below, and should be compatible with the majority of mods using non-vanilla weapons too. It works with or without (g)zdoom's autosave enabled.

Available options via CVars are:

always_pistolstart -- setting this to "true" or 1 forces pistol starts on all levels

death_pistolstart -- setting this to "true" or 1 allows the player to keep items and weapons between levels, but if they die forces a pistol restart of the level they died on. Don't press any key after dying or this effect will be canceled and you will autoload a previous save. Default time between dying and restarting the level from a pistol start is 2 seconds.

death_pistoltime -- this is the wait time in seconds after dying before you restart the level or map-set/episode from a pistol start. Does nothing if neither death_pistolstart nor death_firstmap is enabled. Defaults to 2. The toggle function cycles through 0-5 but you can set it in console to any integer 0 or higher.

death_firstmap -- setting this to "true" or 1 causes the player to pistol start the first level in an episode or map set upon death. If you're playing a map set with a MAP## naming scheme it will boot you back to MAP01. If you're playing a map set with a E#M# naming scheme it will boot you back to the first map in the episode you're in, so long as the episode is 1, 2, 3 or 4. If you're playing a map set that uses none of the aforementioned naming schemes, it will boot you back to the first map you played, which will usually be the first map in a map set or episode (unless you started zdoom with warp parameters or used idclev.) Loading saves won't affect this; you will be taken to the map that you first played in that saved game rather than the level you loaded the save from.

random_level_order -- setting this to "true" or 1 causes the player to be warped to a random level at the start of each level. This works with all iwad maps and all pwad mapsets using either E#M# or MAP## naming format that have the full 36 or 32 levels. Whether the player is given a pistol start reset is up to their cvar settings.

not_supported -- set this to "true" or 1 if you're playing with a weapons mod or any mod that changes the actor names of the doom weaponry or modifies what the player starts with and is NOT listed below. You will see double screenwipes when starting from a pistol start; unfortunately this is required for compatibility.

Suppported Mods:
(All versions are current versions as of 3-22-2014)
(If one of these is being played, not_supported should be set to FALSE or 0)

Project MSX (v0.2a)
Samsara (v0.30 & v0.31)
The Russian Overkill (v2.2)
Brutal Doom (V19)
Brutal Doom Sperglord Edition (V19, 11/20/13 update)
DoomRL Arsenal (Beta 6 HF13)
Accessories to Murder (12-24-13 update)
FKER (v1.31)
Doomtra (v08f)
The Space Pirate (V.0.1.2e)
ProjectILE (v0.07)
Burl Tumd (8/11/13 update)
DoomCW (v1.5.1, Release)
GMOTA (V0.9)
NAZIS! (V2.11 hotfix, 6/1/2012)
Fractal Doom

All of these CVars also have Toggle keys that can be bound to a key. All are by default unbound. You can also just look at them in the controls configuration if you forget what they are and want to change them in the console without exiting the game to look them up.

There is also a key which displays the options (0-2) for disableautosave and displays the current disableautosave setting. This is unbound by default. Disableautosave must be changed in the console and can't by toggled by keypress.

There is also a function which immediately forces pistol start of the current level, this too can be bound to a key and is by default unbound.

Finally, there is a function which immediately warps the player to a random level, this too can be bound to a key and is by default unbound. Whether the player is given a pistol start reset is up to their cvar settings.

Uncompiled ACS is included in the file, so feel free to look it over and/or use it for whatever project you want

Download:
http://www.mediafire.com/download/q...art_options.wad

Last edited by scroton on 05-24-14 at 03:31

Old Post 03-13-14 01:31 #
scroton is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
BaronOfStuff
Senior Member


Posts: 1279
Registered: 06-08


IDCLEVxx

:/

Old Post 03-13-14 12:47 #
BaronOfStuff is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Xaser
Forum Staple


Posts: 2627
Registered: 07-03


Boy, it sure is a good thing nobody's suggested any hacky workarounds that don't actually help the OP ye--

BaronOfStuff said:
IDCLEVxx

...Oh.


But in seriousness, this is indeed an outstanding ZDoom feature-gap that ought to be addressed at some point. As a for-the-record, ZDoom's behavior is there so that hubs work properly, but a cvar that disables autoload for non-hubs is still a welcome (and long-overdue) thing. Good to see a temporary better-workaround, at least.

I need to get motivation to code again. :P

Old Post 03-13-14 14:25 #
Xaser is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Salt-Man Z
Junior Member


Posts: 192
Registered: 08-13


Fantastic! By default I play in continuous mode, but I've always longed for the ability to force pistol start for certain WADs (the Congestion/Claustrophobia series, for example.)

I had to look up CVARs in the ZDoom Wiki, but it looks like this sort of thing is what I'm looking for, right?
code:
gzdoom.exe -iwad doom2.wad -file 1024.zip pistol_start_options.wad +always_pistolstart 1

Old Post 03-13-14 16:38 #
Salt-Man Z is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Shadow Hog
Forum Regular


Posts: 722
Registered: 07-09


I've been kind of curious about maybe making a mapset with a "lives" feature, where dying would act like "clearing" the stage, only you get sent back to the current map with one less life (or, perhaps, you'd just respawn MP-style with one less life, I dunno). If lives were zero, you'd get punted off to some "GAME OVER" level, or maybe the first map of the current episode.

Obviously save-scumming could work around this, just as it did in Wolfenstein 3D, but there's not really a whole lot that can be done about that.

Old Post 03-13-14 16:43 #
Shadow Hog is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
scroton
Green Marine


Posts: 48
Registered: 08-13



BaronOfStuff said:
IDCLEVxx

:/



Yeah, that works too and is what they/I were doing before. The only thing is that it gets to be a pain having to type that at every level and every time you load a game after a while. Also if you have a non-boom or non-vanilla map with wonky level names and order it can take a second to figure out which level number you are actually on.


Xaser said:
I need to get motivation to code again. :P [/B]


DO EEET


Salt-Man Z said:
Fantastic! By default I play in continuous mode, but I've always longed for the ability to force pistol start for certain WADs (the Congestion/Claustrophobia series, for example.)

I had to look up CVARs in the ZDoom Wiki, but it looks like this sort of thing is what I'm looking for, right?
code:
gzdoom.exe -iwad doom2.wad -file 1024.zip pistol_start_options.wad +always_pistolstart 1



Glad this will be getting used! And yeah, that will work perfectly. You can also enter "always_pistolstart 1" in the console in-game and it will do the same thing, including archiving the cvar for later play, and will take effect immediately.


Shadow Hog said:
I've been kind of curious about maybe making a mapset with a "lives" feature, where dying would act like "clearing" the stage, only you get sent back to the current map with one less life (or, perhaps, you'd just respawn MP-style with one less life, I dunno). If lives were zero, you'd get punted off to some "GAME OVER" level, or maybe the first map of the current episode.


Sounds fun and arcadey. You probably know what you're doing, but if you want to use/look at the acs in this feel free, the uncompiled code is there in the file.

Old Post 03-13-14 19:22 #
scroton is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
scroton
Green Marine


Posts: 48
Registered: 08-13


I updated pistol start options with native support for some mods; that is, they will be handled in game like vanilla is currently and not require double screen wipes to accomplish pistol starts/pistol starts on death. I also changed not_vanilla to not_supported since it's more accurate. Shouldn't require you to remove the not_vanilla cvar from your ini, but if you're having issues try that.

Suppported Mods:
(All versions are current versions as of 3-22-2014)
(If one of these is being played, not_supported should be set to FALSE or 0)

Project MSX (v0.2a)
Samsara (v0.30 & v0.31)
The Russian Overkill (v2.2)
Brutal Doom (V19)
Brutal Doom Sperglord Edition (V19, 11/20/13 update)
DoomRL Arsenal (Beta 6 HF13)
Accessories to Murder (12-24-13 update)
FKER (v1.31)
Doomtra (v08f)
The Space Pirate (V.0.1.1 Alpha)
ProjectILE (v0.07)
Burl Tumd (8/11/13 update)
DoomCW (v1.5.1, Release)
GMOTA (V0.9)
NAZIS! (V2.11 hotfix, 6/1/2012)
Fractal Doom

NOTE: You CAN use Pistol Start Options with mods not listed above, they'll just have two screenwipes instead of one.

If you want a particular mod supported let me know and I can add it in the next version whenever I updated it again.

OP has been updated accordingly. Download link is the same.

Old Post 03-23-14 02:10 #
scroton is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Megamur
Senior Member


Posts: 1400
Registered: 02-11



Shadow Hog said:
I've been kind of curious about maybe making a mapset with a "lives" feature, where dying would act like "clearing" the stage, only you get sent back to the current map with one less life (or, perhaps, you'd just respawn MP-style with one less life, I dunno). If lives were zero, you'd get punted off to some "GAME OVER" level, or maybe the first map of the current episode.

Obviously save-scumming could work around this, just as it did in Wolfenstein 3D, but there's not really a whole lot that can be done about that.


I think it would be great if there was a singleplayer survival mod like this, with either standard "booted back to the start" deaths, or instant respawns (with options to lose all equipment upon death, lose half of all your ammo, lose only your currently-equipped weapon, or lose nothing except one life). Make it compatible with ScoreDoom and then we've got something really fun happening. :)

Old Post 03-23-14 02:32 #
Megamur is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
scroton
Green Marine


Posts: 48
Registered: 08-13


Added requested feature of having the option of having it pistol start you back at the start of the episode or mapset you're currently playing upon death.

Set the CVar death_firstmap to 1 or true to use this option. This option takes precedence over death_pistolstart, so if you have both set you will end up pistol starting the earlier map rather than the map you died on.

If you're playing a map set with a MAP## naming scheme it will boot you back to MAP01. If you're playing a map set with a E#M# naming scheme it will boot you back to the first map in the episode you're in, so long as the episode is 1, 2, 3 or 4.

If you're playing a map set that uses none of the aforementioned naming schemes, it will boot you back to the first map you played, which will usually be the first map in a map set or episode (unless you started zdoom with warp parameters or used idclev.) Loading saves won't affect this; you will be taken to the map that you first played in that saved game rather than the level you loaded the save from.

OP has been updated accordingly. Download link is the same.

As always the uncompiled ACS is included in the file, so feel free to look it over and/or use it for whatever project you want

Old Post 03-31-14 05:50 #
scroton is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
scroton
Green Marine


Posts: 48
Registered: 08-13


Went ahead and integrated Map_Randomizer.wad into Pistol Start Options, as well as updating it to the new Space Pirate (V.0.1.2e)

Rather than a separate file, level randomization is now handled through a new cvar:

random_level_order -- setting this to "true" or 1 causes the player to be warped to a random level at the start of each level. This works with all iwad maps and all pwad mapsets using either E#M# or MAP## naming format that have the full 36 or 32 levels. Whether the player is given a pistol start reset is up to their cvar settings.

There is also a new function which immediately warps the player to a random level, this can be bound to a key and is by default unbound. Whether the player is given a pistol start reset is up to their cvar settings.

OP has been updated accordingly. Download link is the same.

As always the uncompiled ACS is included in the file, so feel free to look it over and/or use it for whatever project you want

Old Post 05-24-14 03:31 #
scroton is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Darch
Member


Posts: 293
Registered: 11-11


If I remember well, Romero says in an interview that after the concept of lives was abandoned in Doom, restarting the map from pistol start was enough punishment for dying. So that's why the maps are designed to be playable from pistol start, I suppose. Nice to have this concept back.

Old Post 05-24-14 04:57 #
Darch is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 23:22. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > WADs & Mods > ZDoom Pistol Start Options

Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are OFF
[IMG] code is ON
 

< Contact Us - Doomworld >

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.