void DrawItemsTimeItem(vector myPos, vector mySize, float ar, float itemcode)
{
- float t;
- vector color;
+ float t = 0;
+ vector color = '0 0 0';
float picalpha;
if(ItemsTime_time[itemcode] <= time)
{
}
float i;
- float count;
+ float count = 0;
if (autocvar_hud_panel_itemstime_showspawned)
for (i = 0; i < ITEMSTIME_MAXITEMS; ++i)
count += (ItemsTime_time[i] > time || (ItemsTime_time[i] != -1 && ItemsTime_time[i] <= time));
mySize -= '2 2 0' * panel_bg_padding;
}
- float rows, columns, row, column;
+ float rows, columns;
float ar = max(2, autocvar_hud_panel_itemstime_ratio) + 1;
rows = mySize_y/mySize_x;
rows = bound(1, floor((sqrt(4 * ar * rows * count + rows * rows) + rows + 0.5) / 2), count);
vector itemstime_size;
itemstime_size = eX * mySize_x*(1/columns) + eY * mySize_y*(1/rows);
- local noref vector offset; // fteqcc sucks
+ vector offset = '0 0 0';
float newSize;
if(autocvar_hud_panel_itemstime_size_dinamic)
{
HUD_Panel_DrawBg(1);
+ float row = 0, column = 0;
for (i = 0; i < ITEMSTIME_MAXITEMS; ++i) {
if (ItemsTime_time[i] == -1)
continue;
float hud_draw_maximized;
float hud_panel_radar_maximized;
-float hud_panel_itemstime;
vector mousepos;
vector panel_click_distance; // mouse cursor distance from the top left corner of the panel (saved only upon a click)
switch(self.rule)
{
case SPRITERULE_SPECTATOR:
- if not(autocvar_g_waypointsprite_itemstime == 1 && t == COLOR_SPECTATOR + 1
- || autocvar_g_waypointsprite_itemstime == 2 && (t == COLOR_SPECTATOR + 1 || warmup_stage))
+ if not(autocvar_g_waypointsprite_itemstime == 1 && t == NUM_SPECTATOR + 1
+ || autocvar_g_waypointsprite_itemstime == 2 && (t == NUM_SPECTATOR + 1 || warmup_stage))
return;
spriteimage = self.netname;
break;
void Item_Respawn (void)
{
- float t;
- entity head;
Item_Show(self, 1);
if(!g_minstagib && self.items == IT_STRENGTH)
sound (self, CH_TRIGGER, "misc/strength_respawn.wav", VOL_BASE, ATTN_NORM); // play respawn sound