const int MAX_AXH = 4;
-entity AuxiliaryXhair[MAX_AXH];
+entity AuxiliaryXhairs[MAX_AXH];
-entityclass(AuxiliaryXhair)
+entityclass(AuxiliaryXhair);
class(AuxiliaryXhair) .string axh_image;
class(AuxiliaryXhair) .float axh_fadetime;
class(AuxiliaryXhair) .float axh_drawflag;
void Net_AuXair2(bool bIsNew)
{
int axh_id = bound(0, ReadByte(), MAX_AXH);
- entity axh = AuxiliaryXhair[axh_id];
+ entity axh = AuxiliaryXhairs[axh_id];
if(axh == world || wasfreed(axh)) // MADNESS? THIS IS QQQQCCCCCCCCC (wasfreed, why do you exsist?)
{
axh.axh_image = "gfx/vehicles/axh-ring.tga";
axh.axh_scale = 1;
axh.alpha = 1;
- AuxiliaryXhair[axh_id] = axh;
+ AuxiliaryXhairs[axh_id] = axh;
}
axh.move_origin_x = ReadCoord();
int i;
for(i = 0; i < MAX_AXH; ++i)
{
- entity axh = AuxiliaryXhair[i];
+ entity axh = AuxiliaryXhairs[i];
if(axh != world && !wasfreed(axh)) // MADNESS? THIS IS QQQQCCCCCCCCC (wasfreed, why do you exsist?)
remove(axh);
axh.axh_image = "gfx/vehicles/axh-ring.tga";
axh.axh_scale = 1;
axh.alpha = 1;
- AuxiliaryXhair[i] = axh;
+ AuxiliaryXhairs[i] = axh;
}
switch(hud_id)
{
case HUD_SPIDERBOT:
// Minigun1
- AuxiliaryXhair[0].axh_image = "gfx/vehicles/axh-ring.tga";
- AuxiliaryXhair[0].axh_scale = 0.25;
+ AuxiliaryXhairs[0].axh_image = "gfx/vehicles/axh-ring.tga";
+ AuxiliaryXhairs[0].axh_scale = 0.25;
// Minigun2
- AuxiliaryXhair[1].axh_image = "gfx/vehicles/axh-ring.tga";
- AuxiliaryXhair[1].axh_scale = 0.25;
+ AuxiliaryXhairs[1].axh_image = "gfx/vehicles/axh-ring.tga";
+ AuxiliaryXhairs[1].axh_scale = 0.25;
// Rocket
- AuxiliaryXhair[2].axh_image = "gfx/vehicles/axh-special1.tga";
- AuxiliaryXhair[2].axh_scale = 0.5;
+ AuxiliaryXhairs[2].axh_image = "gfx/vehicles/axh-special1.tga";
+ AuxiliaryXhairs[2].axh_scale = 0.5;
break;
case HUD_WAKIZASHI:
- AuxiliaryXhair[0].axh_image = "gfx/vehicles/axh-bracket.tga";
- AuxiliaryXhair[0].axh_scale = 0.25;
+ AuxiliaryXhairs[0].axh_image = "gfx/vehicles/axh-bracket.tga";
+ AuxiliaryXhairs[0].axh_scale = 0.25;
break;
case HUD_RAPTOR:
- AuxiliaryXhair[0].axh_image = "gfx/vehicles/axh-special2.tga";
- AuxiliaryXhair[0].axh_scale = 0.5;
+ AuxiliaryXhairs[0].axh_image = "gfx/vehicles/axh-special2.tga";
+ AuxiliaryXhairs[0].axh_scale = 0.5;
//AuxiliaryXhair[0].alpha = 0.5;
- AuxiliaryXhair[1].axh_image = "gfx/vehicles/axh-bracket.tga";
- AuxiliaryXhair[1].axh_scale = 0.25;
+ AuxiliaryXhairs[1].axh_image = "gfx/vehicles/axh-bracket.tga";
+ AuxiliaryXhairs[1].axh_scale = 0.25;
//AuxiliaryXhair[1].alpha = 0.75;
//AuxiliaryXhair[1].axh_drawflag = DRAWFLAG_NORMAL;
break;
case HUD_BUMBLEBEE:
// Raygun-locked
- AuxiliaryXhair[0].axh_image = "gfx/vehicles/axh-bracket.tga";
- AuxiliaryXhair[0].axh_scale = 0.5;
+ AuxiliaryXhairs[0].axh_image = "gfx/vehicles/axh-bracket.tga";
+ AuxiliaryXhairs[0].axh_scale = 0.5;
// Gunner1
- AuxiliaryXhair[1].axh_image = "gfx/vehicles/axh-target.tga";
- AuxiliaryXhair[1].axh_scale = 0.75;
+ AuxiliaryXhairs[1].axh_image = "gfx/vehicles/axh-target.tga";
+ AuxiliaryXhairs[1].axh_scale = 0.75;
// Gunner2
- AuxiliaryXhair[2].axh_image = "gfx/vehicles/axh-target.tga";
- AuxiliaryXhair[2].axh_scale = 0.75;
+ AuxiliaryXhairs[2].axh_image = "gfx/vehicles/axh-target.tga";
+ AuxiliaryXhairs[2].axh_scale = 0.75;
break;
case HUD_BUMBLEBEE_GUN:
// Plasma cannons
- AuxiliaryXhair[0].axh_image = "gfx/vehicles/axh-bracket.tga";
- AuxiliaryXhair[0].axh_scale = 0.25;
+ AuxiliaryXhairs[0].axh_image = "gfx/vehicles/axh-bracket.tga";
+ AuxiliaryXhairs[0].axh_scale = 0.25;
// Raygun
- AuxiliaryXhair[1].axh_image = "gfx/vehicles/axh-bracket.tga";
- AuxiliaryXhair[1].axh_scale = 0.25;
+ AuxiliaryXhairs[1].axh_image = "gfx/vehicles/axh-bracket.tga";
+ AuxiliaryXhairs[1].axh_scale = 0.25;
break;
}
}
drawresetcliparea();
// Right gunner slot occupied?
- if(!AuxiliaryXhair[1].draw2d)
+ if(!AuxiliaryXhairs[1].draw2d)
{
shield = (picsize.x * 0.5) - (0.5 * stringwidth(_("No right gunner!"), false, '1 0 0' * picsize.y + '0 1 0' * picsize.y));
drawfill(hudloc + picloc - '0.2 0.2 0', picsize + '0.4 0.4 0', '0.25 0.25 0.25', 0.75, DRAWFLAG_NORMAL);
drawpic(hudloc + picloc, hud_ammo2_bar, picsize, '1 1 1', 1, DRAWFLAG_NORMAL);
drawresetcliparea();
// Left gunner slot occupied?
- if(!AuxiliaryXhair[2].draw2d)
+ if(!AuxiliaryXhairs[2].draw2d)
{
shield = (picsize.x * 0.5) - (0.5 * stringwidth(_("No left gunner!"), false, '1 0 0' * picsize.y + '0 1 0' * picsize.y));
drawfill(hudloc + picloc - '0.2 0.2 0', picsize + '0.4 0.4 0', '0.25 0.25 0.25', 0.75, DRAWFLAG_NORMAL);