The start of something awesome

This commit is contained in:
INeedBots 2020-11-18 01:51:08 -06:00
commit 6fab476876
7 changed files with 41 additions and 0 deletions

19
.gitignore vendored Normal file
View File

@ -0,0 +1,19 @@
# Ignore everything in repository root
/*
# Files to not ignore
!/.gitignore
!/z_client.bat
!/z_dev.bat
!/z_devserver.bat
!/z_server.bat
!/z_serverdev.bat
!/main/
!/main_shared/
/main/*
!/main/server.cfg
*.log
missingasset.csv

View File

@ -0,0 +1,17 @@
init()
{
level.clientid = 0;
level thread onPlayerConnect();
}
onPlayerConnect()
{
for(;;)
{
level waittill("connecting", player);
player.clientid = level.clientid;
level.clientid++; // Is this safe? What if a server runs for a long time and many people join/leave
}
}

1
z_client.bat Normal file
View File

@ -0,0 +1 @@
start "" "%~dp0CoDWaWmp_LanFixed.exe" +set r_fullscreen "1" +set cg_drawlagometer "0" +set cg_drawfps "0" +set cg_drawsnapshot "0" +set r_mode "1920x1080" +set r_monitor "0"

1
z_dev.bat Normal file
View File

@ -0,0 +1 @@
start "" "%~dp0CoDWaWmp_LanFixed.exe" +set r_fullscreen "0" +set cg_drawlagometer "1" +set developer "1" +set developer_script "1" +set logfile "2" +set cg_drawfps "3" +set cg_drawsnapshot "1" +set scr_game_spectatetype "2" +set r_mode "1024x768" +set thereisacow "1" +set sv_cheats "1" +set fs_game "mods/mp_dev" +devmap mp_dome

1
z_devserver.bat Normal file
View File

@ -0,0 +1 @@
start "" "%~dp0CoDWaWmp_LanFixed.exe" +set r_fullscreen "0" +set cg_drawlagometer "1" +set developer "1" +set developer_script "1" +set logfile "2" +set cg_drawfps "3" +set cg_drawsnapshot "1" +set scr_game_spectatetype "2" +set r_mode "1024x768" +set thereisacow "1" +set fs_game "mods/mp_dev" +set sv_cheats "1" +connect 127.0.0.1

1
z_server.bat Normal file
View File

@ -0,0 +1 @@
start "" "%~dp0CoDWaWmp_LanFixed.exe" -dedicated +set dedicated "2" +set sv_maxclients "64" +set sv_punkbuster "0" +set net_port "28960" +set fs_game "" +exec server.cfg +map_rotate

1
z_serverdev.bat Normal file
View File

@ -0,0 +1 @@
start "" "%~dp0CoDWaWmp_LanFixed.exe" -dedicated +set dedicated "1" +set developer "1" +set developer_script "1" +set logfile "2" +set scr_game_spectatetype "2" +set thereisacow "1" +set sv_cheats "1" +set sv_maxclients "64" +set fs_game "mods/mp_dev" +set bots_manage_add "12" +set sv_punkbuster "0" +set scr_war_scorelimit "0" +set net_port "28960" +devmap mp_dome