Lua script for cs2d