Event

ragebot_fire

Following arguments can be used with Event.GetInt for the ragebot_fire event

  1. target_index

  2. hitbox

  3. hitchance

  4. safepoint

  5. exploit

    1. 0 = no exploit

    2. 1 = hide shots/1st shot from doubletap

    3. 2 = second shot from doubletap

function getHitboxName(index)
{
    var hitboxName = "";
    switch (index)
    {
        case 0:
            hitboxName = "Head";
            break;
        case 1:
            hitboxName = "Neck";
            break;
        case 2:
            hitboxName = "Pelvis";
            break;
        case 3:
            hitboxName = "Body";
            break;
        case 4:
            hitboxName = "Thorax";
            break;
        case 5:
            hitboxName = "Chest";
            break;
        case 6:
            hitboxName = "Upper chest";
            break;
        case 7:
            hitboxName = "Left thigh";
            break;
        case 8:
            hitboxName = "Right thigh";
            break;
        case 9:
            hitboxName = "Left calf";
            break;
        case 10:
            hitboxName = "Right calf";
            break;
        case 11:
            hitboxName = "Left foot";
            break;
        case 12:
            hitboxName = "Right foot";
            break;
        case 13:
            hitboxName = "Left hand";
            break;
        case 14:
            hitboxName = "Right hand";
            break;
        case 15:
            hitboxName = "Left upper arm";
            break;
        case 16:
            hitboxName = "Left forearm";
            break;
        case 17:
            hitboxName = "Right upper arm";
            break;
        case 18:
            hitboxName = "Right forearm";
            break;
        default:
            hitboxName = "Generic";
    }

    return hitboxName;
}
function ragebotLogs()
{
  
    ragebot_target = Event.GetInt("target_index");
    ragebot_target_hitbox = Event.GetInt("hitbox");
    ragebot_target_hitchance = Event.GetInt("hitchance");
    ragebot_target_safepoint = Event.GetInt("safepoint");
    ragebot_target_exploit = Event.GetInt("exploit");
    targetName = Entity.GetName(ragebot_target);
  
    Cheat.Print("[onetap] TARGET: " + targetName + " HITBOX: " + getHitboxName(ragebot_target_hitbox) + " HC: " + ragebot_target_hitchance + " SAFEPOINT: " + ragebot_target_safepoint + " EXPLOIT: " + ragebot_target_exploit + " \n");

}

Cheat.RegisterCallback("ragebot_fire", "ragebotLogs");

Return values: target_index, hitbox, hitchance, safepoint, exploit

[EN] Returns information on ragebot_fire event. [RU] Возвращает информацию о событии ragebot_fire.

GetString

Parameters: string

var weapon_name = Event.GetString("weaponname");

Return values: returns the value of the parameter or false.

[EN] Finds the string value of the given game event. [RU] Находит строковое значение заданного игрового события.

GetFloat

Parameters: float

pos_x = Event.GetFloat("x");

Return values: returns the value of the parameter or false.

[EN] Finds the float value of the given game event. [RU] Находит значение с плавающей запятой для данного игрового события.

GetInt

Parameters: int

userid = Event.GetInt("userid");

Return values: returns the value of the parameter or false.

[EN] Finds the integer value of the given game event. [RU] Находит целое число заданного игрового события.

Last updated