SPCOMPFLAGS=${SPCOMPFLAGS:-} dontUseSourcepawnFindHeaders=${dontUseSourcepawnFindHeaders:-} sourcepawnFindHeaders(){ [ -n "${dontUseSourcepawnFindHeaders:-}" ] && return for plug in $buildInputs; do local ipath="$plug/share/addons/sourcemod/scripting/include" if [ -d "$ipath" ]; then echo "found sourcepawn headers: \"$ipath\"" SPCOMPFLAGS="$SPCOMPFLAGS -i $ipath" fi done dontUseSourcepawnFindHeaders=1 export SPCOMPFLAGS dontUseSourcepawnFindHeaders } addEnvHooks "$targetOffset" sourcepawnFindHeaders