Module dpmod: Change committed

havoc at icculus.org havoc at icculus.org
Sat Sep 28 02:23:12 EDT 2002


Commiter   : havoc
CVSROOT    : /cvs/cvsroot/twilight
Module     : dpmod
Commit time: 2002-09-28 06:23:12 UTC

Log message:

add back a little air control, need it for jumping up steps to work right (e1m1 secret at start for example)

Modified files:
     qc/playermovement.qc

------=MIME.1e471b241c9a9b8addf2a2c04c9a9ef9
Content-Type: text/plain; name="dpmod.20020928.062312.havoc.diff"
Content-Disposition: attachment; filename="dpmod.20020928.062312.havoc.diff"
Content-Transfer-Encoding: 8bit

Index: dpmod/qc/playermovement.qc
diff -u dpmod/qc/playermovement.qc:1.2 dpmod/qc/playermovement.qc:1.3
--- dpmod/qc/playermovement.qc:1.2	Fri Sep 20 01:32:05 2002
+++ dpmod/qc/playermovement.qc	Sat Sep 28 02:23:01 2002
@@ -129,7 +129,10 @@
 	else
 	{
 		// airborn
-		return;
+		makevectors(self.v_angle_y * '0 1 0');
+		wishvel = v_forward * self.movement_x + v_right * self.movement_y;
+		if (vlen(wishvel) > 10)
+			wishvel = normalize(wishvel) * 10;
 	}
 
 	// acceleration


More information about the twilight-commits mailing list