Skip to content

Instantly share code, notes, and snippets.

View Vorschreibung's full-sized avatar
📞
Hold the phone now.

Vorschreibung

📞
Hold the phone now.
View GitHub Profile
@Vorschreibung
Vorschreibung / luadiant-poc-auto-clip-terrain.lua
Last active June 22, 2024 07:11
luadiant POC - clip all terrain to breadth of 2 units
-- clip all terrain to breadth of 2 units
local hits = {}
-- find all terrain brushes
for _,b in ipairs(rad.allBrushes()) do
local terrain_face = nil
for _,f in ipairs(b:getFaces()) do
local texture = f:getTexture()
if texture == "textures/common/caulk" then
else
@Vorschreibung
Vorschreibung / setup-et-mapenv.sh
Last active June 27, 2024 19:20
Enemy Territory - Map Environment Setup Script
#!/usr/bin/env bash
# setup-et-mapenv.sh v0.7 (2024-06-27) (49f26e14d9e11555)
#
# Sets up a separate basepath/environment for Wolfenstein: Enemy Territory map
# editing below directory where script is placed.
#
# The mapenv aims to be able to successfully and fully rebuild all official
# maps.
#
# KNOWN ISSUES:
--- InitPaths ---
--- BSP ---
WARNING: Unknown q3map_* directive "q3map_surfacesurfaceparm"
WARNING: Unknown q3map_* directive "q3map_surfacesurfaceparm"
--- LoadMapFile ---
--- ProcessDecals ---
--- CreateMapFogs ---
--- PatchMapDrawSurfs ---
--- FaceBSP ---
--- MakeTreePortals ---