]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
1 1 1" "HUD following scale for the x, y and z axis"
authorterencehill <piuntn@gmail.com>
Sat, 26 Mar 2016 22:55:27 +0000 (23:55 +0100)
committerterencehill <piuntn@gmail.com>
Sat, 26 Mar 2016 22:55:27 +0000 (23:55 +0100)
_hud_common.cfg
qcsrc/client/hud/hud.qc
qcsrc/client/hud/hud.qh

index 90a363f7a0b6483aedc29f54a75cd98f4c72b5f8..0b9ecc06873bc8f53a7d2287c0e5e62cb636ac3d 100644 (file)
@@ -65,6 +65,7 @@ seta hud_panel_update_interval 2 "how often (in seconds) common panel cvars are
 
 seta hud_dynamic_follow 1 "HUD moves around following player's movement (effect shared with cl_followmodel, can be enabled independently from it though)"
 seta hud_dynamic_follow_scale 0.01 "HUD following scale"
+seta hud_dynamic_follow_scale_xyz "1 1 1" "HUD following scale for the x, y and z axis"
 
 seta hud_dynamic_shake 1 "shake the HUD when hurt"
 seta hud_dynamic_shake_damage_max 90 "damage value at which the HUD shake effect is maximum"
index 6c245d0d14308a0cb2b3a8572d846d6a400640fe..795b84998a7d5ef6a5d5ba8389eaa7796f805f37 100644 (file)
@@ -505,6 +505,9 @@ void Hud_Dynamic_Frame()
                entity view = CSQCModel_server2csqc(player_localentnum - 1);
                calc_followmodel_ofs(view);
                ofs = -cl_followmodel_ofs * autocvar_hud_dynamic_follow_scale;
+               ofs.x *= autocvar_hud_dynamic_follow_scale_xyz.z;
+               ofs.y *= autocvar_hud_dynamic_follow_scale_xyz.x;
+               ofs.z *= autocvar_hud_dynamic_follow_scale_xyz.y;
 
                if (fabs(ofs.x) < 0.001) ofs.x = 0;
                if (fabs(ofs.y) < 0.001) ofs.y = 0;
index 4b12656895aa38de2d2c42bc612f4ed72b86b3bd..0217b18614aa6e99d723ba916342db7c2a5137f0 100644 (file)
@@ -164,6 +164,7 @@ float current_player;
 
 float autocvar_hud_dynamic_follow;
 float autocvar_hud_dynamic_follow_scale;
+vector autocvar_hud_dynamic_follow_scale_xyz;
 
 vector hud_dynamic_shake_realofs;
 float hud_dynamic_shake_factor;