<aside> 📦 BARLIB.acs

</aside>

<aside> âš¡

void DrawBarColorGlow(int cyan, int blue, int black)

</aside>

Usage


Used to draw an ammo bar with the given palette colors. It uses the weapon’s primary ammo to determine how much of the bar to draw.

Parameters

Example


This is Magma Bazooka’s ScriptBar script, it has two sections, one for the legacy style of charge bar animations and one for the newer style.

script "DrawBar_MagmaBazookaWep" (void) {
    if(GetUserCvar(ConsolePlayerNumber(),"mm8bdm_usechargebars")) {
        if(CheckInventory("WeaponCharge") >= 19) {
            if(Timer() % 3 == 1) {
                DrawBarColorGlow(216,42,38);
            } else if (Timer() % 3 == 2) {
                DrawBarColor(216,42);
            } else if (Timer() % 3 == 0) {
                DrawBarColorGlow(36,229,216);
            }
        } else {
            DrawBarColor(216,42);
        }
    } else {
        DrawBarColor(216,42);
        if(CheckInventory("WeaponCharge") >= 19) SetFlashingBar();
    }
}

See Also


DrawBarColor

DrawBar2Color

DrawBar2ColorGlow