[an error occurred while processing this directive]
Changing "Par" numbers - http://www.doomworld.com Forums


Original message

rockman062980

mattymaticas@hotmail.com
66.44.16.19

"Changing "Par" numbers" , posted Tue 13 Mar 12:24user profileedit/delete messagepost reply


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?

 


Replies:

Fanatic

marcpullen@mindspring.com
209.86.140.247

"Re(1):Changing" , posted Wed 14 Mar 06:47user profileedit/delete messagepost reply


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.

-Marc
http://www.doomworld.com/fanatic

 

 

Linguica
Doomworld webmaster



linguica@doomworld.com
831722
169.232.69.57

"Re(2):Changing" , posted Wed 14 Mar 16:41user profileedit/delete messagepost reply


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.

 

 

Fanatic

marcpullen@mindspring.com
209.86.155.230

"Re(3):Changing" , posted Wed 14 Mar 17:14user profileedit/delete messagepost reply


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.

-Marc
http://www.doomworld.com/fanatic

 

Enjay

Enjay001@hotmail.com
213.122.169.99

"Re(1):Changing" , posted Tue 13 Mar 13:35user profileedit/delete messagepost reply


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.

Meek