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.