]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/csqcmodellib/interpolate.qc
Merge branch 'terencehill/itemstime_checkmark2' into 'master'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / csqcmodellib / interpolate.qc
index 994323cfe037334bed894624c7c12089108b069d..78fb051f793765d0c9f5d884dead2ef9a5bb8bb1 100644 (file)
  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
  * IN THE SOFTWARE.
  */
+#if defined(CSQC)
+       #include "../dpdefs/csprogsdefs.qh"
+       #include "../client/defs.qh"
+       #include "../warpzonelib/anglestransform.qh"
+       #include "../client/autocvars.qh"
+       #include "interpolate.qh"
+       #include "cl_model.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
 
 .vector iorigin1, iorigin2;
 .vector ivelocity1, ivelocity2;
 .vector ivup1, ivup2;
 .float itime1, itime2;
 void InterpolateOrigin_Reset()
-{
+{SELFPARAM();
        self.iflags &= ~IFLAG_INTERNALMASK;
        self.itime1 = self.itime2 = 0;
 }
 void InterpolateOrigin_Note()
-{
+{SELFPARAM();
        float dt;
-       float f0;
+       int f0;
 
        dt = time - self.itime2;
 
@@ -95,7 +105,7 @@ void InterpolateOrigin_Note()
        else if(self.iflags & IFLAG_V_ANGLE_X)
        {
                self.ivforward1_x = self.ivforward2_x;
-               self.ivforward2_x = self.v_angle_x;
+               self.ivforward2_x = self.v_angle.x;
        }
 
        if(self.iflags & IFLAG_VELOCITY)
@@ -128,7 +138,7 @@ void InterpolateOrigin_Note()
        }
 }
 void InterpolateOrigin_Do()
-{
+{SELFPARAM();
        vector forward, up;
        if(self.itime1 && self.itime2 && self.itime1 != self.itime2)
        {
@@ -155,7 +165,7 @@ void InterpolateOrigin_Do()
        }
 }
 void InterpolateOrigin_Undo()
-{
+{SELFPARAM();
        if(self.iflags & IFLAG_ORIGIN)
                setorigin(self, self.iorigin2);
        if(self.iflags & IFLAG_ANGLES)