TF2 Dispenser Detonator | Engineer

Dispensers don’t do enough damage to make it worth detting in TF2.
But with if you really want it, today is your lucky day, because we have the [TF2] Dispenser Detonator plugin installed on our TF2 server. Makes dispensers explode dealing damage to enemies within a radius. In other words, kill any enemies that stand around or near your Dispenser.

Here is what you do, open the console and type: bind key “destroy 0” and hit enter.

Example: bind w “destroy 0”, with or without quotes shouldn’t matter. I did it with the quotes. Now go build yourself a dispenser, the higher the level, the more damage you will inflict. 🙂

The credit for this plugin goes to: retsam, who is a vetran modder at Allied Modders.

1 thought on “TF2 Dispenser Detonator | Engineer

  1. Interesting, whats the damage output algorithm? Wait… I have google…

    stock DetonateBuilding(client)
    {
    new obj = -1;
    while ((obj = FindEntityByClassname(obj, “obj_dispenser”)) != -1)
    {
    new owner = GetEntPropEnt(obj, Prop_Send, “m_hBuilder”);
    if(owner == client)
    {
    decl Float:fObjPos[3];
    new dmg;
    //new Float:fClientPos[3];
    //GetClientAbsOrigin(client, fClientPos);
    GetEntPropVector(obj, Prop_Send, “m_vecOrigin”, fObjPos);

    if(g_cvarDetMode != 0)
    {
    new level = GetEntProp(obj, Prop_Send, “m_iUpgradeLevel”);
    new metal = GetEntProp(obj, Prop_Send, “m_iAmmoMetal”);
    //PrintToChatAll(“m_iUpgradeLevel: %i”, level);
    //PrintToChatAll(“m_iAmmoMetal: %i”, metal);

    if(g_cvarDetMode == 2)
    {
    //dmg = RoundFloat(float(g_cvarDetDamage) + ((metal / 10) + (level * 20));
    dmg = RoundFloat(float(g_cvarDetDamage) + ((metal / 12) * level) + ((level * level) * 22));
    }
    else
    {
    dmg = g_cvarDetDamage * level;
    }
    }
    else
    {
    dmg = g_cvarDetDamage;
    }

    g_bDestroyCmdUsed[client] = true;
    CreateExplosion(client, fObjPos, dmg);
    }
    }
    }

Leave a Comment