Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
Guest rockman062980

Changing "Par" numbers

Recommended Posts

Guest rockman062980

At the end of the original doom you are given the time it took you to beat the level and the par number which tells you you should be able to at least beat the level in that amount of time.

Is there any way to change this? My guess is that the only way to do it would be to actually have the source code. It would be nice though if there was an editing utility that could make it easy for you.

Anyone have any suggestions as to how to change the "Par" number?

Share this post


Link to post

If you are working with zdoom, using

par <partime in seconds>

In the section for that level in your MAPINFO lump will give you a new par time. Leaving out a par time from a wad that has a MAPINFO entry means no par is shown, just the time to complete the level, which is also useful.

Share this post


Link to post
Guest Fanatic

You can't change par times in normal DOOM/DOOM2. The par time is unfortunately calculated based on the distance between the player start point the the exit switch/line, not the real time it takes to get to the two points.

You can change it in most source ports, like ZDOOM (noted here already) and in EDGE in LEVELS.DDF.

Share this post


Link to post

Um what? The par times in Doom and Doom 2 were created by one of the id employees. There's no sort of automatic computation involved.

Share this post


Link to post
Guest Fanatic

I heard wrong long ago then. That's what I get for believing everything I read on the internet. :)

So I looked and found them in g_game.c:

// DOOM Par Times
int pars[4][10] =
{
{0},
{0,30,75,120,90,165,180,180,30,165},
{0,90,90,90,120,90,360,240,30,170},
{0,90,45,90,150,90,90,165,30,135}
};

// DOOM II Par Times
int cpars[32] =
{
30,90,120,120,90,150,120,120,270,90, // 1-10
210,150,150,150,210,150,420,150,210,150, // 11-20
240,150,180,150,150,300,330,420,300,180, // 21-30
120,30 // 31-32
}

Groovy.

So to answer the original question, use a source port where it's configurable in a text file of some sort, or edit the above in the original source and recompile.

Share this post


Link to post
Guest
This topic is now closed to further replies.
Sign in to follow this  
×