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;
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;
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_";
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"))
{
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);
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));
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;
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;