Ejemplo n.º 1
0
def effect130(start, end):
    """
    est_effect_30 <player filter> <delay> <start x y z> <end x y z>
    """
    if not isinstance(start, Vector):
        start = Vector(*start)

    if not isinstance(end, Vector):
        end = Vector(*end)

    te = TempEntity('Show Line')
    te.start = start
    te.end = end

    return te
Ejemplo n.º 2
0
def effect116(decal, position, start, index, hitbox):
    """
    est_effect_16 <player filter> <delay> <model> <position x y z> <start x y z> <entity index> <hitbox>
    """
    if not isinstance(decal, Decal):
        decal = Decal(decal)

    if not isinstance(position, Vector):
        position = Vector(*position)

    if not isinstance(start, Vector):
        start = Vector(*start)

    te = TempEntity('Entity Decal')
    te.decal = decal
    te.origin = position
    te.start = start
    te.entity_index = index
    te.hitbox = hitbox

    return te