More fixed and functionality for the server browser.

This commit is contained in:
Marco Cawthorne 2017-11-10 18:35:21 -06:00
parent 5b214fffbd
commit edc1ca3e1e
7 changed files with 21 additions and 3 deletions

View file

@ -47,7 +47,6 @@ void Menu_Main( void ) {
Object_Button( '72 384', BTN_README, __NULL__, fButtonAlpha[4] );
Object_Button( '72 412', BTN_VISITWEB, __NULL__, fButtonAlpha[5] );
Object_Button( '72 440', BTN_QUIT, Main_ButtonQuit, fButtonAlpha[6] );
}
/*

View file

@ -107,6 +107,12 @@ void Menu_Multiplayer( void ) {
static int iScrollServer;
static int iServersTotal;
static void Multiplayer_ButtonJoin( void ) {
if ( iSelectedServer >= 0 ) {
localcmd( sprintf( "connect %s\n", gethostcachestring( fldAddress, iSelectedServer ) ) );
m_hide();
}
}
static void Multiplayer_ButtonCreate( void ) {
iMenu = MENU_MULTIPLAYER_CREATE;
}
@ -120,7 +126,6 @@ void Menu_Multiplayer( void ) {
// Initialize it on the first run
if ( iSelectedServer == -1 ) {
localcmd( "com_protocolname FreeCS\n" );
//clear the filter
resethostcachemasks();
//sethostcachemaskstring( 0, gethostcacheindexforkey( "gamedir" ), "freecs", SLIST_TEST_EQUAL );
@ -142,7 +147,7 @@ void Menu_Multiplayer( void ) {
iServersTotal = gethostcachevalue( SLIST_HOSTCACHEVIEWCOUNT );
Menu_SetClipArea( '32 148', '164 160' );
Object_Button( '32 148', BTN_JOINGAME, __NULL__, fButtonAlpha[0] );
Object_Button( '32 148', BTN_JOINGAME, Multiplayer_ButtonJoin, fButtonAlpha[0] );
Object_Button( '32 180', BTN_CREATE, Multiplayer_ButtonCreate, fButtonAlpha[1] );
Object_Button( '32 212', BTN_GAMEINFO, __NULL__, fButtonAlpha[2] );
Object_Button( '32 244', BTN_REFRESHLIST, Multiplayer_ButtonRefresh, fButtonAlpha[3] );

Binary file not shown.

View file

@ -34,6 +34,7 @@ bind m chooseteam
bind ESC togglemenu
// Movement Variables
seta com_protocolname "FREECS"
seta sv_maxspeed 240
seta cl_forwardspeed 240
seta cl_sidespeed 240

13
freecs/ftesrv.cfg Executable file
View file

@ -0,0 +1,13 @@
hostname "FreeCS Server"
seta com_protocolname "FREECS"
seta sv_maxspeed 240
seta mp_startmoney "800"
seta mp_buytime 90
seta mp_freezetime 6
seta mp_c4timer 45
seta mp_roundtime 5
seta mp_fillweapons 0
seta pm_bunnyspeedcap 1
seta com_nogamedirnativecode "0"
seta maxplayers 8

Binary file not shown.

Binary file not shown.