// once the issue is found, please revert back to the default of -14
r_polygonoffset_decals_offset -100
r_polygonoffset_decals_factor 0
+// this is mainly for _decal entities (their shaders should use "polygonoffset" shader parameter) - this is "good enough" as it seems, but smaller than the decals one so these don't zfight decals
+mod_q3shader_default_polygonoffset -50
+mod_q3shader_default_polygonfactor 0
}
// draw the progress bars
- drawsetcliparea(pos_x, pos_y, mySize_x * 0.5 * (vote_yescount/vote_needed), mySize_y);
- drawpic_skin(pos + eY * (5/8) * mySize_y, "voteprogress_prog", eX * mySize_x + eY * (3/8) * mySize_y, '1 1 1', a, DRAWFLAG_NORMAL);
+ if(vote_yescount && vote_needed)
+ {
+ drawsetcliparea(pos_x, pos_y, mySize_x * 0.5 * (vote_yescount/vote_needed), mySize_y);
+ drawpic_skin(pos + eY * (5/8) * mySize_y, "voteprogress_prog", eX * mySize_x + eY * (3/8) * mySize_y, '1 1 1', a, DRAWFLAG_NORMAL);
+ }
- drawsetcliparea(pos_x + mySize_x - mySize_x * 0.5 * (vote_nocount/vote_needed), pos_y, mySize_x * 0.5, mySize_y);
- drawpic_skin(pos + eY * (5/8) * mySize_y, "voteprogress_prog", eX * mySize_x + eY * (3/8) * mySize_y, '1 1 1', a, DRAWFLAG_NORMAL);
+ if(vote_nocount && vote_needed)
+ {
+ drawsetcliparea(pos_x + mySize_x - mySize_x * 0.5 * (vote_nocount/vote_needed), pos_y, mySize_x * 0.5, mySize_y);
+ drawpic_skin(pos + eY * (5/8) * mySize_y, "voteprogress_prog", eX * mySize_x + eY * (3/8) * mySize_y, '1 1 1', a, DRAWFLAG_NORMAL);
+ }
drawresetcliparea();
if(cvar("crypto_aeslevel") >= 3)
me.currentServerEncrypt = "not supported (can't connect)";
else
- me.currentServerEncrypt = "not supported";
+ me.currentServerEncrypt = "not supported (won't encrypt)";
break;
case 1:
- me.currentServerEncrypt = "supported";
+ if(cvar("crypto_aeslevel") >= 2)
+ me.currentServerEncrypt = "supported (will encrypt)";
+ else
+ me.currentServerEncrypt = "supported (won't encrypt)";
break;
case 2:
- me.currentServerEncrypt = "requested";
+ if(cvar("crypto_aeslevel") >= 1)
+ me.currentServerEncrypt = "requested (will encrypt)";
+ else
+ me.currentServerEncrypt = "requested (won't encrypt)";
break;
case 3:
if(cvar("crypto_aeslevel") <= 0)
me.currentServerEncrypt = "required (can't connect)";
else
- me.currentServerEncrypt = "required";
+ me.currentServerEncrypt = "required (will encrypt)";
break;
}
me.encryptLabel.setText(me.encryptLabel, me.currentServerEncrypt);