Pages: [1]
  Print  
Author Topic: Equivalent of Quake 1's qc frametime in Quake 3  (Read 3494 times)
DieparBaby
Nub


Cakes 0
Posts: 6


« 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
Logged
ukash
Nub


Cakes 0
Posts: 7


« Reply #1 on: February 15, 2007, 06:06:15 pm »

cg.frameTime?
Logged
DieparBaby
Nub


Cakes 0
Posts: 6


« Reply #2 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.
Logged
Pages: [1]
  Print  
 
Jump to: