void DrawCAItem(vector myPos, vector mySize, float aspect_ratio, int layout, float i)
{
- float stat;
- string pic;
- vector color;
-#ifdef GMQCC
- stat = -1;
- pic = "";
- color = '0 0 0';
-#endif
+ float stat = -1;
+ string pic = "";
+ vector color = '0 0 0';
switch(i)
{
case 0:
void DrawDomItem(vector myPos, vector mySize, float aspect_ratio, int layout, float i)
{
- float stat, pps_ratio;
- string pic;
- vector color;
-#ifdef GMQCC
- stat = -1;
- pic = "";
- color = '0 0 0';
-#endif
+ float stat = -1;
+ string pic = "";
+ vector color = '0 0 0';
switch(i)
{
case 0:
color = '1 0 1';
break;
}
- pps_ratio = stat / getstatf(STAT_DOM_TOTAL_PPS);
+ float pps_ratio = stat / getstatf(STAT_DOM_TOTAL_PPS);
if(mySize_x/mySize_y > aspect_ratio)
{
pos = HUD_Scoreboard_MakeTable(pos, tm, rgb, bg_size);
}
-
-#ifdef GMQCC
- rgb = '0 0 0';
-#endif
rgb_x = autocvar_scoreboard_color_bg_r;
rgb_y = autocvar_scoreboard_color_bg_g;
rgb_z = autocvar_scoreboard_color_bg_b;
}
else
{
-#ifdef GMQCC
- rgb = '0 0 0';
-#endif
rgb_x = autocvar_scoreboard_color_bg_r;
rgb_y = autocvar_scoreboard_color_bg_g;
rgb_z = autocvar_scoreboard_color_bg_b;
float W_Tuba_GetNote(entity pl, float hittype)
{
- float note;
- float movestate;
- movestate = 5;
- if(pl.movement_x < 0) movestate -= 3;
- if(pl.movement_x > 0) movestate += 3;
- if(pl.movement_y < 0) movestate -= 1;
- if(pl.movement_y > 0) movestate += 1;
-#ifdef GMQCC
- note = 0;
-#endif
+ float movestate = 5;
+ if (pl.movement_x < 0) movestate -= 3;
+ else if (pl.movement_x > 0) movestate += 3;
+ if (pl.movement_y < 0) movestate -= 1;
+ else if (pl.movement_y > 0) movestate += 1;
+
+ float note = 0;
switch(movestate)
{
// layout: originally I wanted
isz_w = '1 0 0' + '0 1 0' * ((sz_y / sz_x) * (draw_scale_x / draw_scale_y));
isz_h = '0 1 0' + '1 0 0' * ((sz_x / sz_y) * (draw_scale_y / draw_scale_x));
-#ifdef GMQCC
- isz = '0 0 0';
-#endif
switch(scalemode)
{
default:
else
{
error("invalid spawnflags");
-#ifdef GMQCC
- itemprefix = string_null;
- valueprefix = string_null;
-#endif
+ itemprefix = valueprefix = string_null;
}
self.netname = "";
{
vector pre_pos, prep;
- float distance, impact_time, i, mintime;
+ float distance, i, mintime;
turret_tag_fire_update();
{
// FIXME: this cant be the best way to do this..
prep = pre_pos;
-#ifdef GMQCC
- impact_time = 0;
-#endif
+ float impact_time = 0;
for(i = 0; i < 4; ++i)
{
distance = vlen(prep - self.tur_shotorg);
norm = normalize(norm);
}
-#ifdef GMQCC
ang = '0 0 0';
-#endif
if(self.aiment)
{
org = self.aiment.origin;