Change launch scripts for engine/tools to resolve symbolic links properly

This commit is contained in:
Marco Cawthorne 2020-11-24 17:21:34 +01:00
parent 2c1bd865c0
commit a8ee403f81
6 changed files with 14 additions and 18 deletions

View File

@ -1,9 +1,9 @@
#!/bin/sh
set -e
SCRIPT_LOCATION="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
PATH="$SCRIPT_LOCATION"/bin:"$PATH"
SCRPATH="$( cd "$( dirname $(readlink -nf $0) )" && pwd )"
PATH="$SCRPATH"/bin:"$PATH"
if [ -f "$SCRIPT_LOCATION"/bin/fteqcc ]; then
if [ -f "$SCRPATH"/bin/fteqcc ]; then
cd ./src
make
else

View File

@ -1,9 +1,9 @@
#!/bin/sh
set -e
SCRIPT_LOCATION="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
PATH="$SCRIPT_LOCATION"/bin:"$PATH"
SCRPATH="$( cd "$( dirname $(readlink -nf $0) )" && pwd )"
PATH="$SCRPATH"/bin:"$PATH"
if [ -f "$SCRIPT_LOCATION"/bin/fteqw ]; then
if [ -f "$SCRPATH"/bin/fteqw ]; then
fteqw -manifest valve.fmf $*
else
printf "Engine is not present, please run build_engine.sh\n"

View File

@ -1,9 +1,9 @@
#!/bin/sh
set -e
SCRIPT_LOCATION="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
PATH="$SCRIPT_LOCATION"/bin:"$PATH"
SCRPATH="$( cd "$( dirname $(readlink -nf $0) )" && pwd )"
PATH="$SCRPATH"/bin:"$PATH"
if [ -f "$SCRIPT_LOCATION"/bin/fteqw-sv ]; then
if [ -f "$SCRPATH"/bin/fteqw-sv ]; then
fteqw-sv -manifest valve.fmf $*
else
printf "Engine is not present, please run build_engine.sh\n"

View File

@ -28,13 +28,9 @@ void
CBaseEntity::RenderFXPass(void)
{
vector vecPlayer;
#ifdef WASTES
vecPlayer = [0,0,0];
#else
int s = (float)getproperty(VF_ACTIVESEAT);
pSeat = &g_seats[s];
vecPlayer = pSeat->m_vecPredictedOrigin;
#endif
colormod = m_vecRenderColor;
alpha = m_flRenderAmt;

8
vmap
View File

@ -1,5 +1,5 @@
#!/bin/sh
SCRPATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
SCRPATH="$( cd "$( dirname $(readlink -nf $0) )" && pwd )"
PATH="$SCRPATH"/bin:"$PATH"
if [ ! -f "$SCRPATH"/bin/vmap ]; then
@ -7,14 +7,14 @@ if [ ! -f "$SCRPATH"/bin/vmap ]; then
exit
fi
vmap -v -custinfoparms -fs_basepath "$SCRPATH" -fs_game platform -threads 4 -samplesize 8 $*
"$SCRPATH"/bin/vmap -v -custinfoparms -fs_basepath "$SCRPATH" -fs_game platform -threads 4 -samplesize 8 $*
if [ ! -f "$*.prt" ]; then
exit
fi
vmap -vis -v -fs_basepath "$SCRPATH" -fs_game platform $*
vmap -light -custinfoparms -fs_basepath "$SCRPATH" -v -fs_game platform -bounce 8 -fastbounce -samplesize 8 -threads 4 -shade -shadeangle 60 -patchshadows $*
"$SCRPATH"/bin/vmap -vis -v -fs_basepath "$SCRPATH" -fs_game platform $*
"$SCRPATH"/bin/vmap -light -custinfoparms -fs_basepath "$SCRPATH" -v -fs_game platform -bounce 8 -fastbounce -samplesize 8 -threads 4 -shade -shadeangle 60 -patchshadows $*

View File

@ -1,5 +1,5 @@
#!/bin/sh
SCRPATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
SCRPATH="$( cd "$( dirname $(readlink -nf $0) )" && pwd )"
PATH="$SCRPATH"/bin:"$PATH"
if [ ! -f "$SCRPATH"/bin/worldspawn ]; then