home *** CD-ROM | disk | FTP | other *** search
- diff -u ./client.qc ./client.qc
- --- ./client.qc Wed Jul 24 23:51:22 1996
- +++ ./client.qc Thu Jan 8 09:40:15 1981
- @@ -810,6 +810,42 @@
- if (self.health < 0)
- return;
-
- + if ((self.waterlevel == 0) && !(self.flags & FL_ONGROUND) && (self.velocity_z < 0))
- + { // Not in water, not on ground, and going down
- + self.fall_velocity_y = self.fall_velocity_y + 2 + (self.fall_velocity_y / 10); // Pitch
- + if (self.angles_x >= 0) // Yaw
- + self.fall_velocity_x = self.fall_velocity_x + 2 + (self.fall_velocity_x / 10);
- + else
- + {
- + if (self.angles_x <= 0)
- + self.fall_velocity_x = self.fall_velocity_x - 2 + (self.fall_velocity_x / 10);
- + else // must be zero
- + {
- + if (random () < 0.5)
- + self.fall_velocity_x = self.fall_velocity_z + 2 + (self.fall_velocity_x / 50);
- + else
- + self.fall_velocity_x = self.fall_velocity_x - 2 + (self.fall_velocity_x / 50);
- + }
- + }
- + if (self.angles_z >= 0) // Roll
- + self.fall_velocity_z = self.fall_velocity_z + 2 + (self.fall_velocity_z / 10);
- + else
- + {
- + if (self.angles_z <= 0)
- + self.fall_velocity_z = self.fall_velocity_z - 2 + (self.fall_velocity_z / 10);
- + else // must be zero
- + {
- + if (random () < 0.5)
- + self.fall_velocity_z = self.fall_velocity_z + 2 + (self.fall_velocity_z / 50);
- + else
- + self.fall_velocity_z = self.fall_velocity_z - 2 + (self.fall_velocity_z / 50);
- + }
- + }
- + self.angles = self.angles + self.fall_velocity;
- + }
- + else
- + self.fall_velocity = '0 0 0';
- +
- if (self.waterlevel != 3)
- {
- if (self.air_finished < time)
- diff -u ./defs.qc ./defs.qc
- --- ./defs.qc Wed Jul 24 23:51:22 1996
- +++ ./defs.qc Thu Jan 8 08:08:15 1981
- @@ -457,6 +457,7 @@
- //
- // player only fields
- //
- +.vector fall_velocity; // Falling YPR velocity
- .float walkframe;
-
- .float attack_finished;
-