#!/bin/bash
#usage: urt-compilemap ut4_mapname
STARTTIME=`date +"%s"`
Q3MAP2=/razno/igre/UrbanTerror/zeroradiant/inst/q3map2
THREADS=4
URTDIR=/razno/igre/UrbanTerror/zeroradiant/UrT-map/
CONFIGDIR=/home/natirips/.q3a/q3ut4
$Q3MAP2 -v -threads $THREADS -game quake3 -fs_basepath $URTDIR -fs_game q3ut4 -meta -skyfix -flares -samplesize 4 $CONFIGDIR/maps/"$@".map
$Q3MAP2 -v -threads $THREADS -game quake3 -fs_basepath $URTDIR -vis -saveprt -fs_game q3ut4 $CONFIGDIR/maps/"$@".map
$Q3MAP2 -v -threads $THREADS -game quake3 -fs_basepath $URTDIR -light -samples 3 -bounce 3 -bouncegrid -fastbounce -bouncescale 1.3 -samplesize 4 -dark -fs_game q3ut4 $CONFIGDIR/maps/"$@".map
ENDTIME=`date +"%s"`
echo Compilation took $((ENDTIME - STARTTIME)) seconds.