mirror of
https://git.code.sf.net/p/quake/prozac-qfcc
synced 2025-01-19 08:01:31 +00:00
Removed lastframe_time because frametime does what I want (I hope).
This commit is contained in:
parent
512ce1bc1b
commit
cbbb790bb6
3 changed files with 3 additions and 6 deletions
|
@ -3135,7 +3135,7 @@ void() PlayerPostThink =
|
|||
}
|
||||
else
|
||||
#ifdef WALL_HURT
|
||||
if (vlen(self.movedir) - vlen(self.velocity) > 5500 * (time - self.lastframe_time))
|
||||
if (vlen(self.movedir) - vlen(self.velocity) > 5500 * frametime)
|
||||
{
|
||||
self.deathtype = "wall";
|
||||
T_Damage (self, NIL, NIL, ((vlen(self.movedir) - vlen(self.velocity)) - 550) / 10);
|
||||
|
@ -3182,8 +3182,6 @@ void() PlayerPostThink =
|
|||
|
||||
self.cheat_check = time + 5;
|
||||
}
|
||||
|
||||
self.lastframe_time = time;
|
||||
};
|
||||
|
||||
|
||||
|
|
1
defs.qc
1
defs.qc
|
@ -282,7 +282,6 @@ float deathmatch;
|
|||
|
||||
.float search_time; //WK Used for hover boots. :/
|
||||
.float attack_state; //WK Not usable?
|
||||
.float lastframe_time;
|
||||
|
||||
//
|
||||
// player only fields
|
||||
|
|
|
@ -4048,7 +4048,7 @@ void() W_WeaponFrame =
|
|||
|
||||
if (!(self.tfstate & TFSTATE_AIMING)) {
|
||||
if (self.height > 29 && self.height < 90) {
|
||||
self.height = self.height + 80 * (time - self.lastframe_time);
|
||||
self.height = self.height + 80 * frametime;
|
||||
if (self.height > 90)
|
||||
self.height = 90;
|
||||
|
||||
|
@ -4103,7 +4103,7 @@ void() W_WeaponFrame =
|
|||
}
|
||||
|
||||
if (self.current_weapon == WEAP_AUTO_RIFLE) // BUG BUG BUG! GIVES ADVANTAGE TO HIGH FPSERS
|
||||
self.heat -= 1000 * (time - self.lastframe_time);
|
||||
self.heat -= 1000 * frametime;
|
||||
// check for attack
|
||||
if (self.button0 && !(self.fire_held_down)) {
|
||||
if ((self.current_menu == MENU_CLASSHELP) || (self.current_menu == MENU_CLASSHELP2)) {
|
||||
|
|
Loading…
Reference in a new issue