set LIBRARY= 
set INCLUDE= 


mkdir vmta
cd vmta
set cc=lcc -DQ3_VM -DMISSIONPACK -DGAME -S -Wf-target=bytecode -Wf-g -I..\..\cgame -I..\..\game -I..\..\ui %1

	@echo "bot code has been removed"
	rem %cc%  ../ai_chat.c
	rem @if errorlevel 1 goto quit
	rem %cc%  ../ai_cmd.c
	rem @if errorlevel 1 goto quit
	rem %cc%  ../ai_dmnet.c
	rem @if errorlevel 1 goto quit
	rem %cc%  ../ai_dmq3.c
	rem @if errorlevel 1 goto quit
	rem %cc%  ../ai_main.c
	rem @if errorlevel 1 goto quit
	rem %cc%  ../ai_team.c
	rem @if errorlevel 1 goto quit
	rem %cc%  ../ai_vcmd.c
	rem @if errorlevel 1 goto quit
	rem %cc%  ../bb_ai_bothud.c
	rem @if errorlevel 1 goto quit

%cc%  ../bb_game.c
@if errorlevel 1 goto quit
%cc%  ../bb_grapple.c
@if errorlevel 1 goto quit
rem %cc%  ../bb_mvp.c
rem @if errorlevel 1 goto quit
%cc%  ../bg_battlebots.c
@if errorlevel 1 goto quit
%cc%  ../bg_lib.c
@if errorlevel 1 goto quit
%cc%  ../bg_misc.c
@if errorlevel 1 goto quit
%cc%  ../bg_pmove.c
@if errorlevel 1 goto quit
%cc%  ../bg_server.c
@if errorlevel 1 goto quit
%cc%  ../g_active.c
@if errorlevel 1 goto quit
%cc%  ../g_arenas.c
@if errorlevel 1 goto quit
	rem %cc%  ../g_bot.c
	rem @if errorlevel 1 goto quit
%cc%  ../g_client.c
@if errorlevel 1 goto quit
%cc%  ../g_cmds.c
@if errorlevel 1 goto quit
%cc%  ../g_combat.c
@if errorlevel 1 goto quit
%cc%  ../g_items.c
@if errorlevel 1 goto quit
%cc%  ../g_main.c
@if errorlevel 1 goto quit
%cc%  ../g_mem.c
@if errorlevel 1 goto quit
%cc%  ../g_misc.c
@if errorlevel 1 goto quit
%cc%  ../g_missile.c
@if errorlevel 1 goto quit
%cc%  ../g_mover.c
@if errorlevel 1 goto quit
%cc%  ../g_session.c
@if errorlevel 1 goto quit
%cc%  ../g_spawn.c
@if errorlevel 1 goto quit
%cc%  ../g_svcmds.c
@if errorlevel 1 goto quit

	rem %cc%  ../g_syscalls.c
	rem @if errorlevel 1 goto quit

%cc%  ../g_target.c
@if errorlevel 1 goto quit
%cc%  ../g_team.c
@if errorlevel 1 goto quit
%cc%  ../g_trigger.c
@if errorlevel 1 goto quit
%cc%  ../g_unlagged.c
@if errorlevel 1 goto quit
%cc%  ../g_utils.c
@if errorlevel 1 goto quit
%cc%  ../g_weapon.c
@if errorlevel 1 goto quit
%cc%  ../q_math.c
@if errorlevel 1 goto quit
%cc%  ../q_shared.c
@if errorlevel 1 goto quit
%cc%  ../zcam.c
@if errorlevel 1 goto quit
%cc%  ../zcam_target.c
@if errorlevel 1 goto quit


q3asm -f ../game_ta

mkdir D:\quake3\newexpert\testta\
mkdir D:\quake3\newexpert\testta\vm

del D:\quake3\newexpert\vm00ta.pk3
move /Y D:\quake3\newexpert\Code\expertctf\code\game\vmta\qagame.qvm D:\quake3\newexpert\testta\vm\qagame.qvm

cd D:\quake3\newexpert\testta\
PKZIPC -add -dir=current D:\quake3\newexpert\vm00ta.zip *.*
ren D:\quake3\newexpert\vm00ta.zip vm00ta.pk3

:quit
pause
cd ..