djcev.com

//

Git Repos / fte_dogmode / commit a011b58

Commit: a011b58e574d39b9f30f11dff01c2f8451893407
Parent: 656b40151f36e26fc4f715957e75cc0af7a0ec7c
Author: Cameron Vanderzanden, 2023-10-13 20:15
Committer: Cameron Vanderzanden, 2023-10-13 20:15

Commit Message

Seperate accel and decel values for air control

Change List

?File Add Del
M qc/pmove.qc +10 -3

Diff qc/pmove.qc

diff --git a/qc/pmove.qc b/qc/pmove.qc
index 888b2db..6e1a8cf 100644
--- a/qc/pmove.qc
+++ b/qc/pmove.qc
@@ -4,7 +4,8 @@

#define PM_AIRACCEL 8 // 10 in Q1; now 8
#define PM_AIRACCELQ3 0.8 // 1.0 in Q3; now 0.8
-#define PM_AIRACCELFWD 1.1 // 1 feels close to Q3 / CPM
+#define PM_AIRACCELFWD 1.5 // 1 feels close to Q3 / CPM
+#define PM_AIRACCELBACK 5 // Air stop speed in Q3?
#define PM_BOOSTACCEL 12 // 12 is fast, 10 is enough
#define PM_BOOSTFRICTION 4 // Q1 friction (4) is plenty low
#define PM_FRICTION 8 // 4 for Q1, 6 for Q3, 8 for CPM
@@ -473,6 +474,7 @@ int(float dogravity, float onesided) phys_q1flymove =

// wallclip / wall skim timer check
if ( // (self.primal_speed > PM_MAXSPEED) &&
+ (self.velocity != '0 0 0') &&
(self.jump_time) &&
(!(self.flags & FL_WATERJUMP)) &&
(self.teleport_time <= (time - 0.1)) &&
@@ -1068,8 +1070,13 @@ int() phys_walkaccelerate =
// +direction style air control otherwise -- CEV
else
{
- phys_aircontrol (wishdir, wishspeed,
- PM_AIRACCELFWD);
+ if (tempf >= 135)
+ // we're slowing down / stopping
+ phys_aircontrol (wishdir, wishspeed,
+ PM_AIRACCELBACK);
+ else
+ phys_aircontrol (wishdir, wishspeed,
+ PM_AIRACCELFWD);
}
}
}

Return to the top of this page or return to the overview of this repo.