OpenArena Message Boards

OpenArena Contributions => Development => Topic started by: DieparBaby on February 15, 2007, 03:59:09 pm



Title: Equivalent of Quake 1's qc frametime in Quake 3
Post by: DieparBaby on February 15, 2007, 03:59:09 pm
Hello:

In Quake 1's qc file, defs.qc, there is a global float near the top called "frametime".  I was wondering if anyone knew what Quake 3's equivalent was.  There are a number of frametime variables in the Quake 3 code and I want to use the correct one.

Sincere thanks,
Andrew "DieparBaby" Wheatley


Title: Re: Equivalent of Quake 1's qc frametime in Quake 3
Post by: ukash on February 15, 2007, 06:06:15 pm
cg.frameTime?


Title: Re: Equivalent of Quake 1's qc frametime in Quake 3
Post by: DieparBaby on February 16, 2007, 01:13:06 pm
Ok here's what I think.  In QuakeC, 'frametime' is only used once.  At the end of the WaterMove() method of client.qc, it is used to modify the player jump velocity when the player is in the water (I think).

So I took a look at PM_WaterJumpMove() in game/bg_pmove.c and it does have a frametime variable, called pml.frametime, where pml is a global pml_t structure found in game/bg_local.h and declare at the beginning of game/bg_pmove.c (it's an extern in bg_local.h).

I'm still not sure if it's the thing I'm looking for but I'll give it a shot and let you know.