Too lazy to comment

This commit is contained in:
2020-01-09 14:54:45 +01:00
parent e0abf9082f
commit 714ead3244
52 changed files with 22976 additions and 8 deletions

View File

@@ -1,9 +1,16 @@
#!/bin/bash
DIR="$( cd -P "$( dirname "$0" )" && pwd )"
ROOT=${DIR}/../../
ROOT=${DIR}/../
WORKINGDIR=$DIR/build
[[ ! -d $WORKINGDIR ]] && mkdir $WORKINGDIR
MAPNAME=zombietest
IN=${MAPNAME}.map
fullfile=$1
filename=$(basename -- "$fullfile")
extension="${filename##*.}"
MAPNAME="${filename%.*}"
IN=${MAPNAME}-compile.map
OUT=${MAPNAME}.bsp
TOOLS_DIR=${ROOT}/tools/ericw_tools
@@ -11,11 +18,16 @@ QBSP=${TOOLS_DIR}/qbsp
VIS=${TOOLS_DIR}/vis
LIGHT=${TOOLS_DIR}/light
cp $fullfile ${WORKINGDIR}/${IN}
pushd ${WORKINGDIR}
${QBSP} ${IN} ${OUT}
${VIS} -fast -level 4 -noambient ${OUT}
${LIGHT} -bounce -soft -extra -extra4 ${OUT}
:
cp ${OUT} ${ROOT}/id1/maps/
popd
pushd ${ROOT}
./quakespasm-sdl2 +map ${MAPNAME}
popd