]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
remove multiple declarations of v_angle, document usage of v_angle and angles
authorMartin Taibr <taibr.martin@gmail.com>
Thu, 8 Jun 2017 13:42:27 +0000 (15:42 +0200)
committerMartin Taibr <taibr.martin@gmail.com>
Thu, 8 Jun 2017 13:42:27 +0000 (15:42 +0200)
qcsrc/client/player_skeleton.qc
qcsrc/common/csqcmodel_settings.qh
qcsrc/common/physics/player.qh
qcsrc/lib/angle.qc
qcsrc/lib/csqcmodel/interpolate.qh

index 66827c8f30e3bdc2bfeb9508ce64a5a69bf86bea..d01f3feff94a824ad818abd7dbf123a8a5b41f89 100644 (file)
@@ -5,7 +5,6 @@
 #include "../lib/csqcmodel/cl_player.qh"
 #include "../lib/warpzone/anglestransform.qh"
 
-.vector v_angle;
 .float v_angle_save_x;
 
 class(Skeleton) .float skeleton_info_modelindex;
index 9c4909671e1408e5695fd572f7fbb6211de8c41e..9cbcb8696afbaf6f1140c0214bf6f578fb765826 100644 (file)
@@ -26,9 +26,6 @@
 # define TAG_VIEWLOC_TYPE entity
 #endif
 
-// new fields
-.vector v_angle;
-
 // add properties you want networked to CSQC here
 #define CSQCMODEL_EXTRAPROPERTIES \
        CSQCMODEL_PROPERTY(BIT(0), int, ReadShort, WriteShort, colormap) \
index 39cc573ee99d9bc96cff1177dd1b3c457d26cfa1..b5b016c7e4075922635c24d60aec0d61ade354c3 100644 (file)
@@ -190,6 +190,9 @@ STATIC_INIT(PHYS_INPUT_BUTTON_DODGE)
        .int items;
 
        .vector movement;
+
+       // angles of the player's view (as opposed to his model which uses `.vector angles;`)
+       // x is pitch, y is yaw, z is roll
        .vector v_angle;
 
        .entity hook;
index f921d74b01bdc43953101260514e9ffb5d0c3eca..09e267fe4b6146e60b841ec0f69864c7074d39fe 100644 (file)
@@ -1,4 +1,7 @@
 .vector origin;
+
+// angles of the player's model (as opposed to his view which uses `.vector v_angle;`)
+// x is pitch, y is yaw, z is roll
 .vector angles;
 
 /*
index 3ea385cbcd8b5e4918c1f88ed8b3c6eaed9508d4..94af8634003d471dc5529a860db91449c38d0c7a 100644 (file)
@@ -45,6 +45,3 @@ void InterpolateOrigin_Reset(entity this);
 
 // call this BEFORE drawing
 void InterpolateOrigin_Do(entity this);
-
-// in case we interpolate that:
-.vector v_angle;