Esempio n. 1
0
def regEffect2(args):
    if len(args) != 12:
        log.log(
            "est_effect 2 <player Filter> <delay> <model> <start userid> <end userid> <life> <width> <end width> <Red> <Green> <Blue> <Alpha>"
        )
        log.log("est_effect 2: get: " + " ".join(args))
        return
    users = str(args[0])
    if users == "#a":
        users = "#all"
    delay = float(args[1])
    model = str(args[2])
    sid = int(args[3])
    eid = int(args[4])
    life = float(args[5])
    width = int(args[6])
    ewidth = int(args[7])
    red = int(args[8])
    green = int(args[9])
    blue = int(args[10])
    alpha = int(args[11])
    if sid != 0 and es.exists("userid", sid):
        sid = playerlib.getPlayer(sid).index
    else:
        log.log("est_effect 2: unkown id: %s !" % sid)
        return
    if eid != 0 and es.exists("userid", eid):
        eid = playerlib.getPlayer(eid).index
    else:
        log.log("est_effect 2: unkown id: %s !" % eid)
        return
    spe_effects.beamEntPoint(
        users, delay, sid, 0, eid, 0, model, 0, 0, 255, life, width, ewidth, 0, 0, red, green, blue, alpha, 0
    )
Esempio n. 2
0
def regEffect2(args):
    if len(args) != 12:
        log.log(
            'est_effect 2 <player Filter> <delay> <model> <start userid> <end userid> <life> <width> <end width> <Red> <Green> <Blue> <Alpha>'
        )
        log.log('est_effect 2: get: ' + ' '.join(args))
        return
    users = str(args[0])
    if users == '#a': users = '#all'
    delay = float(args[1])
    model = str(args[2])
    sid = int(args[3])
    eid = int(args[4])
    life = float(args[5])
    width = int(args[6])
    ewidth = int(args[7])
    red = int(args[8])
    green = int(args[9])
    blue = int(args[10])
    alpha = int(args[11])
    if sid != 0 and es.exists('userid', sid):
        sid = playerlib.getPlayer(sid).index
    else:
        log.log('est_effect 2: unkown id: %s !' % sid)
        return
    if eid != 0 and es.exists('userid', eid):
        eid = playerlib.getPlayer(eid).index
    else:
        log.log('est_effect 2: unkown id: %s !' % eid)
        return
    spe_effects.beamEntPoint(users, delay, sid, 0, eid, 0, model, 0, 0, 255,
                             life, width, ewidth, 0, 0, red, green, blue,
                             alpha, 0)
Esempio n. 3
0
def preRegEffect2(args):
    if len(args) != 22 and len(args) != 18:
        log.log(
            'est_effect 02 <player Filter> <delay> <model> <start ent> <start position "X Y Z"> <end ent> <end position "X Y Z"> '
            +
            '<framerate> <life> <start width> <end width> <fade distance> <amplitude> <R> <G> <B> <A> <speed>'
        )
        log.log('est_effect 02: get: ' + ' '.join(args))
        return
    if len(args) == 18:
        x, y, z = args[4].split(',')
        x1, y1, z1 = args[6].split(',')
        preRegEffect2([
            args[0], args[1], args[2], args[3], x, y, z, args[5], x1, y1, z1,
            args[7], args[8], args[9], args[10], args[11], args[12], args[13],
            args[14], args[15], args[16], args[17]
        ])
        return
    users = str(args[0])
    if users == '#a': users = '#all'
    delay = float(args[1])
    model = str(args[2])
    sid = int(args[3])
    start = (args[4], args[5], args[6])
    eid = int(args[7])
    end = (args[8], args[9], args[10])
    framerate = int(args[11])
    life = float(args[12])
    width = int(args[13])
    ewidth = int(args[14])
    fade = int(args[15])
    ampl = int(args[16])
    red = int(args[17])
    green = int(args[18])
    blue = int(args[19])
    alpha = int(args[20])
    speed = int(args[21])
    if sid != 0 and es.exists('userid', sid):
        sid = playerlib.getPlayer(sid).index
    else:
        log.log('est_effect_02: unkown id: %s !' % sid)
        return
    if eid != 0 and es.exists('userid', eid):
        eid = playerlib.getPlayer(eid).index
    else:
        log.log('est_effect_02: unkown id: %s !' % eid)
        return
    if ampl > 60: ampl = 60
    spe_effects.beamEntPoint(users, delay, sid, start, eid, end, model, 0, 0,
                             framerate, life, width, ewidth, fade, ampl, red,
                             green, blue, alpha, speed)
Esempio n. 4
0
def preRegEffect2(args):
    if len(args) != 22 and len(args) != 18:
        log.log(
            'est_effect 02 <player Filter> <delay> <model> <start ent> <start position "X Y Z"> <end ent> <end position "X Y Z"> '
            + "<framerate> <life> <start width> <end width> <fade distance> <amplitude> <R> <G> <B> <A> <speed>"
        )
        log.log("est_effect 02: get: " + " ".join(args))
        return
    if len(args) == 18:
        x, y, z = args[4].split(",")
        x1, y1, z1 = args[6].split(",")
        preRegEffect2(
            [
                args[0],
                args[1],
                args[2],
                args[3],
                x,
                y,
                z,
                args[5],
                x1,
                y1,
                z1,
                args[7],
                args[8],
                args[9],
                args[10],
                args[11],
                args[12],
                args[13],
                args[14],
                args[15],
                args[16],
                args[17],
            ]
        )
        return
    users = str(args[0])
    if users == "#a":
        users = "#all"
    delay = float(args[1])
    model = str(args[2])
    sid = int(args[3])
    start = (args[4], args[5], args[6])
    eid = int(args[7])
    end = (args[8], args[9], args[10])
    framerate = int(args[11])
    life = float(args[12])
    width = int(args[13])
    ewidth = int(args[14])
    fade = int(args[15])
    ampl = int(args[16])
    red = int(args[17])
    green = int(args[18])
    blue = int(args[19])
    alpha = int(args[20])
    speed = int(args[21])
    if sid != 0 and es.exists("userid", sid):
        sid = playerlib.getPlayer(sid).index
    else:
        log.log("est_effect_02: unkown id: %s !" % sid)
        return
    if eid != 0 and es.exists("userid", eid):
        eid = playerlib.getPlayer(eid).index
    else:
        log.log("est_effect_02: unkown id: %s !" % eid)
        return
    if ampl > 60:
        ampl = 60
    spe_effects.beamEntPoint(
        users,
        delay,
        sid,
        start,
        eid,
        end,
        model,
        0,
        0,
        framerate,
        life,
        width,
        ewidth,
        fade,
        ampl,
        red,
        green,
        blue,
        alpha,
        speed,
    )