]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Forbid players from aiming their playermodel up and down if they can't move, not...
authorterencehill <piuntn@gmail.com>
Tue, 13 Sep 2016 18:38:37 +0000 (20:38 +0200)
committerterencehill <piuntn@gmail.com>
Tue, 13 Sep 2016 18:38:37 +0000 (20:38 +0200)
qcsrc/client/player_skeleton.qc

index 9a2f32931f8c3c587c37381613a7d0c5446fea70..753d27cf6a6c1c3093698e55e06257491abfc5a3 100644 (file)
@@ -4,7 +4,7 @@
 #include "../lib/csqcmodel/cl_player.qh"
 #include "../lib/warpzone/anglestransform.qh"
 
-.float v_angle_x;
+.vector v_angle;
 .float v_angle_save_x;
 
 class(Skeleton) .float skeleton_info_modelindex;
@@ -181,7 +181,7 @@ void skeleton_from_frames(entity e, bool is_dead)
        {
                if(e == csqcplayer)
                {
-                       if(intermission)
+                       if(e.move_movetype == MOVETYPE_NONE)
                        {
                                if(!e.v_angle_save_x)
                                        e.v_angle_save_x = input_angles.x;