From: terencehill Date: Tue, 13 Sep 2016 18:38:37 +0000 (+0200) Subject: Forbid players from aiming their playermodel up and down if they can't move, not... X-Git-Tag: xonotic-v0.8.2~589 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3a8a8ff32de85c4a28b9108e93f5dbb4c21c3ad7;p=xonotic%2Fxonotic-data.pk3dir.git Forbid players from aiming their playermodel up and down if they can't move, not just after match ends --- diff --git a/qcsrc/client/player_skeleton.qc b/qcsrc/client/player_skeleton.qc index 9a2f32931..753d27cf6 100644 --- a/qcsrc/client/player_skeleton.qc +++ b/qcsrc/client/player_skeleton.qc @@ -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;