🔀Tracers

Просто трейсера

script:name("Tracers")
script:devs({"ConeTin"})
script:desc("da")


events.render_3d:set(function(event)
    entities = world:living_entities()

    for i = 1, #entities do
        ent = entities[i]
        
        gl11:pushMatrix()
        
        gl11:init()
        gl11:lineWidth(5.5)
        gl11:begin(gl11.GL_LINE_STRIP)

        gl11:color(color.new(1,1,1))

        gl11:vertex3d(player:pos().x - gl11:pos().x, player:pos().y - gl11:pos().y + 1, player:pos().z - gl11:pos().z);
        gl11:vertex3d(ent:pos().x - gl11:pos().x, ent:pos().y - gl11:pos().y + 1, ent:pos().z - gl11:pos().z);

        gl11:glEnd()

        gl11:finish()
        gl11:popMatrix()
    end
end)

Last updated