home *** CD-ROM | disk | FTP | other *** search
/ Quake 'em / QUAKEEM.BIN / quake / programs / fallturn / fallturn.dif next >
Encoding:
Text File  |  1981-01-08  |  1.8 KB  |  58 lines

  1. diff -u ./client.qc ./client.qc
  2. --- ./client.qc    Wed Jul 24 23:51:22 1996
  3. +++ ./client.qc    Thu Jan  8 09:40:15 1981
  4. @@ -810,6 +810,42 @@
  5.      if (self.health < 0)
  6.          return;
  7.  
  8. +    if ((self.waterlevel == 0) && !(self.flags & FL_ONGROUND) && (self.velocity_z < 0))
  9. +    {    // Not in water, not on ground, and going down
  10. +        self.fall_velocity_y = self.fall_velocity_y + 2 + (self.fall_velocity_y / 10);  // Pitch
  11. +        if (self.angles_x >= 0)        // Yaw
  12. +            self.fall_velocity_x = self.fall_velocity_x + 2 + (self.fall_velocity_x / 10);
  13. +        else 
  14. +        {
  15. +            if (self.angles_x <= 0)
  16. +                self.fall_velocity_x = self.fall_velocity_x - 2 + (self.fall_velocity_x / 10);
  17. +            else    // must be zero
  18. +            {
  19. +                if (random () < 0.5)
  20. +                    self.fall_velocity_x = self.fall_velocity_z + 2 + (self.fall_velocity_x / 50);
  21. +                else
  22. +                    self.fall_velocity_x = self.fall_velocity_x - 2 + (self.fall_velocity_x / 50);
  23. +            }
  24. +        }
  25. +        if (self.angles_z >= 0)        // Roll
  26. +            self.fall_velocity_z = self.fall_velocity_z + 2 + (self.fall_velocity_z / 10);
  27. +        else 
  28. +        {
  29. +            if (self.angles_z <= 0)
  30. +                self.fall_velocity_z = self.fall_velocity_z - 2 + (self.fall_velocity_z / 10);
  31. +            else    // must be zero
  32. +            {
  33. +                if (random () < 0.5)
  34. +                    self.fall_velocity_z = self.fall_velocity_z + 2 + (self.fall_velocity_z / 50);
  35. +                else
  36. +                    self.fall_velocity_z = self.fall_velocity_z - 2 + (self.fall_velocity_z / 50);
  37. +            }
  38. +        }
  39. +    self.angles = self.angles + self.fall_velocity;
  40. +    }
  41. +    else
  42. +        self.fall_velocity = '0 0 0';
  43. +
  44.      if (self.waterlevel != 3)
  45.      {
  46.          if (self.air_finished < time)
  47. diff -u ./defs.qc ./defs.qc
  48. --- ./defs.qc    Wed Jul 24 23:51:22 1996
  49. +++ ./defs.qc    Thu Jan  8 08:08:15 1981
  50. @@ -457,6 +457,7 @@
  51.  //
  52.  // player only fields
  53.  //
  54. +.vector        fall_velocity;        // Falling YPR velocity
  55.  .float        walkframe;
  56.  
  57.  .float         attack_finished;
  58.