a T1 want...... GUI stuff......

Ambient, since you seem to know a little more about scripting than the average Joe around here, then you should know what to do with this:

Code:
$Inv::WepList[1] = "Disc Launcher";
$Inv::WepList[2] = "Chaingun";
$Inv::WepList[3] = "Grenade Launcher";
$Inv::WepList[4] = "Plasma Gun";
$Inv::WepList[5] = "Mortar";
$Inv::WepList[6] = "Laser Rifle";
$Inv::WepList[7] = "ELF Gun";
$Inv::WepList[8] = "Blaster";

$Inv::DepList[1] = "Turret";
$Inv::DepList[2] = "Inventory Station";
$Inv::DepList[3] = "Ammo Station";
$Inv::DepList[4] = "Pulse Sensor";
$Inv::DepList[5] = "Motion Sensor";
$Inv::DepList[6] = "Sensor Jammer";
$Inv::DepList[7] = "Camera";

$Inv::PakList[1] = "Energy Pack";
$Inv::PakList[2] = "Repair Pack";
$Inv::PakList[3] = "Shield Pack";
$Inv::PakList[4] = "Ammo Pack";
$Inv::PakList[5] = "Sensor Jammer Pack";

function HudBorders::Update() {
    $Inv::WepCount = 0;
    $Inv::DepCount = 0;
    $Inv::PakCount = 0;
    for(%i = 1; %i <= 8; %i++)
        if(getItemCount($Inv::WepList[%i]))
            $Inv::WepCount++;
    for(%i = 1; %i <= 5; %i++)
        if(getItemCount($Inv::PakList[%i])) {
            $Inv::PakCount++;
            break;
        }
    if(!$Inv::PakCount)
        for(%i = 1; %i <= 7; %i++)
            if(getItemCount($Inv::DepList[%i])) {
                $Inv::DepCount++;
                break;
            }
    %total = $Inv::WepCount + $Inv::DepCount + $Inv::PakCount;
    if(!%total)
        Control::setValue(WepHudBorder, "");
    else
        Control::setValue(WepHudBorder, "<b0,0:bmp\\"@ %total @".bmp>");
    schedule("HudBorders::Update();", 1);
}
 
Liqy said:
Ambient, since you seem to know a little more about scripting than the average Joe around here, then you should know what to do with this:

Code:
$Inv::WepList[1] = "Disc Launcher";
$Inv::WepList[2] = "Chaingun";
$Inv::WepList[3] = "Grenade Launcher";
$Inv::WepList[4] = "Plasma Gun";
$Inv::WepList[5] = "Mortar";
$Inv::WepList[6] = "Laser Rifle";
$Inv::WepList[7] = "ELF Gun";
$Inv::WepList[8] = "Blaster";

$Inv::DepList[1] = "Turret";
$Inv::DepList[2] = "Inventory Station";
$Inv::DepList[3] = "Ammo Station";
$Inv::DepList[4] = "Pulse Sensor";
$Inv::DepList[5] = "Motion Sensor";
$Inv::DepList[6] = "Sensor Jammer";
$Inv::DepList[7] = "Camera";

$Inv::PakList[1] = "Energy Pack";
$Inv::PakList[2] = "Repair Pack";
$Inv::PakList[3] = "Shield Pack";
$Inv::PakList[4] = "Ammo Pack";
$Inv::PakList[5] = "Sensor Jammer Pack";

function HudBorders::Update() {
    $Inv::WepCount = 0;
    $Inv::DepCount = 0;
    $Inv::PakCount = 0;
    for(%i = 1; %i <= 8; %i++)
        if(getItemCount($Inv::WepList[%i]))
            $Inv::WepCount++;
    for(%i = 1; %i <= 5; %i++)
        if(getItemCount($Inv::PakList[%i])) {
            $Inv::PakCount++;
            break;
        }
    if(!$Inv::PakCount)
        for(%i = 1; %i <= 7; %i++)
            if(getItemCount($Inv::DepList[%i])) {
                $Inv::DepCount++;
                break;
            }
    %total = $Inv::WepCount + $Inv::DepCount + $Inv::PakCount;
    if(!%total)
        Control::setValue(WepHudBorder, "");
    else
        Control::setValue(WepHudBorder, "<b0,0:bmp\\"@ %total @".bmp>");
    schedule("HudBorders::Update();", 1);
}

so I just put this into a .cs file and put it into my autoexec.cs?
 
The code I posted isn't a "weapon HUD border script"... it's just the code needed to update the weapon HUD border if someone else were to make you one.

I have one in my config and I guess I could release it.. :\
 
Liqy said:
The code I posted isn't a "weapon HUD border script"... it's just the code needed to update the weapon HUD border if someone else were to make you one.

I have one in my config and I guess I could release it.. :\

I think I get what your saying now, I'll mess around with it...
 
Back
Top