A Source Engine navigation mesh parser written in Lua, intended for CS:GO (but will probably work for other source engine games too)
Based on sourcenav by thiagofelix and bot.nav by Cre3per
- https://github.com/iryont/lua-struct/blob/master/struct.lua (but will probably work with the C module http://www.inf.puc-rio.br/~roberto/struct/ too)
local sourcenav = require "sourcenav"
local f = io.open("de_mirage.nav", "rb")
local content = f:read("*all")
f:close()
local nav_mesh = sourcenav.parse(content)
print("Parsed " .. #nav_mesh.places .. " places, " .. #nav_mesh.areas .. " areas, " .. #nav_mesh.ladders .. " ladders.")