Files
quakemapping/id1/maps/build.sh
2019-12-30 18:15:17 +01:00

22 lines
401 B
Bash
Executable File

#!/bin/bash
DIR="$( cd -P "$( dirname "$0" )" && pwd )"
ROOT=${DIR}/../../
MAPNAME=zombietest
IN=${MAPNAME}.map
OUT=${MAPNAME}.bsp
TOOLS_DIR=${ROOT}/tools/ericw_tools
QBSP=${TOOLS_DIR}/qbsp
VIS=${TOOLS_DIR}/vis
LIGHT=${TOOLS_DIR}/light
${QBSP} ${IN} ${OUT}
${VIS} -fast -level 4 -noambient ${OUT}
${LIGHT} -bounce -soft -extra -extra4 ${OUT}
:
pushd ${ROOT}
./quakespasm-sdl2 +map ${MAPNAME}
popd