]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
autocvar_cl_gentle* and autocvar_hud_panel_notify_* gone!
authorterencehill <piuntn@gmail.com>
Fri, 5 Nov 2010 23:50:22 +0000 (00:50 +0100)
committerterencehill <piuntn@gmail.com>
Fri, 5 Nov 2010 23:50:22 +0000 (00:50 +0100)
qcsrc/client/autocvars.qh
qcsrc/client/gibs.qc
qcsrc/client/hud.qc

index 1daecc5a555b58fc80383a7ad8e8f98ca3d46afd..ff8d9231408ee149cf2d505e5512c1ddb9de6fa1 100644 (file)
@@ -6,10 +6,6 @@ var float autocvar_cl_gibs_sloppy = 1;
 var float autocvar_cl_casings_ticrate = 0.1;
 var float autocvar_cl_casings_sloppy = 1;
 
-var float autocvar_cl_gentle;
-var float autocvar_cl_gentle_gibs;
-var float autocvar_cl_gentle_messages;
-
 var float autocvar_scoreboard_color_bg_team;
 
 var float autocvar__menu_alpha;
@@ -48,10 +44,6 @@ var float autocvar_hud_panel_powerups;
 var float autocvar_hud_panel_healtharmor;
 
 var float autocvar_hud_panel_notify;
-var float autocvar_hud_panel_notify_print;
-var float autocvar_hud_panel_notify_time;
-var float autocvar_hud_panel_notify_fadetime;
-var float autocvar_hud_panel_notify_flip;
 
 var float autocvar_hud_panel_timer;
 var float autocvar_hud_panel_timer_increment;
index 86b970c1a1fa1cf8334b8134383e002d1416450d..6f6e143934e39897f721d562d9a7a2dc4e77fe3e 100644 (file)
@@ -153,14 +153,15 @@ void Ent_GibSplash(float isNew)
        org_z = ReadShort() * 4 + 2;
        vel = decompressShortVector(ReadShort());
 
-       if(autocvar_cl_gentle_gibs || cvar("cl_gentle"))
+       float cl_gentle_gibs = cvar("cl_gentle_gibs");
+       if(cl_gentle_gibs || cvar("cl_gentle"))
                type |= 0x80; // set gentle bit
 
        if(type & 0x80)
        {
-               if(autocvar_cl_gentle_gibs == 2)
+               if(cl_gentle_gibs == 2)
                        gentle_prefix = "";
-               else if(autocvar_cl_gentle_gibs == 3) 
+               else if(cl_gentle_gibs == 3) 
                        gentle_prefix = "happy_";
                else
                        gentle_prefix = "morphed_";
@@ -171,7 +172,7 @@ void Ent_GibSplash(float isNew)
                gentle_prefix = "particlegibs_";
        }
 
-       if not(autocvar_cl_gentle_gibs || cvar("cl_gentle"))
+       if not(cl_gentle_gibs || cvar("cl_gentle"))
                amount *= 1 - cvar("cl_nogibs");
 
        if(cvar("ekg"))
index c22f4341b8a4a307e763407b38663ef0594c5e3a..0bf30cf6c0b723b7c203064abbbe005c7d6433a8 100644 (file)
@@ -2647,8 +2647,8 @@ void HUD_KillNotify(string s1, string s2, string s3, float type, float msg) // s
 {
        float w;
        float alsoprint, gentle;
-       alsoprint = (autocvar_hud_panel_notify_print || !panel_enabled); // print message to console if: notify panel disabled, or cvar to do so enabled
-       gentle = (autocvar_cl_gentle || autocvar_cl_gentle_messages);
+       alsoprint = (cvar("hud_panel_notify_print") || !panel_enabled); // print message to console if: notify panel disabled, or cvar to do so enabled
+       gentle = (cvar("cl_gentle") || cvar("cl_gentle_messages"));
        
        if(msg == MSG_SUICIDE) {
                w = DEATH_WEAPONOF(type);
@@ -2984,7 +2984,7 @@ void HUD_KillNotify(string s1, string s2, string s3, float type, float msg) // s
 void HUD_Centerprint(string s1, string s2, float type, float msg)
 {
        float gentle;
-       gentle = (autocvar_cl_gentle || autocvar_cl_gentle_messages);
+       gentle = (cvar("cl_gentle") || cvar("cl_gentle_messages"));
        if(msg == MSG_SUICIDE) {
                if (type == DEATH_TEAMCHANGE) {
                        centerprint(strcat(DAMAGE_CENTERPRINT_SPACER, "You are now on: ", s1));
@@ -3095,9 +3095,9 @@ void HUD_Notify (void)
 
        float a;
        float when;
-       when = autocvar_hud_panel_notify_time;
+       when = cvar("hud_panel_notify_time");
        float fadetime;
-       fadetime = autocvar_hud_panel_notify_fadetime;
+       fadetime = cvar("hud_panel_notify_fadetime");
 
        string s;
 
@@ -3107,10 +3107,11 @@ void HUD_Notify (void)
        string attacker, victim;
 
        float i, j, w;
+       float flip = cvar("hud_panel_notify_flip");
        for(j = 0; j < entries; ++j)
        {
                s = "";
-               if(autocvar_hud_panel_notify_flip)
+               if(flip)
                        i = j;
                else // rather nasty hack for ordering items from the bottom up
                        i = entries - j - 1;