Example #1
0
/*
==============
BotAILoadMap
==============
*/
int BotAILoadMap( int restart ) {
	int			i;
	vmCvar_t	mapname;

	if (!restart) {
		trap_Cvar_Register( &mapname, "mapname", "", CVAR_SERVERINFO | CVAR_ROM );
		trap_BotLibLoadMap( mapname.string );
	}

	//initialize physics
	BotInitPhysicsSettings();	//ai_move.h
	//initialize the items in the level
	BotInitLevelItems();		//ai_goal.h
	BotSetBrushModelTypes();	//ai_move.h

	for (i = 0; i < MAX_CLIENTS; i++) {
		if (botstates[i] && botstates[i]->inuse) {
			BotResetState( botstates[i] );
			botstates[i]->setupcount = 4;
		}
	}

	BotSetupDeathmatchAI();

	return qtrue;
}
Example #2
0
/*
==============
BotAILoadMap
==============
*/
int BotAILoadMap( int restart ) {
	int i;
	vmCvar_t mapname;

	if ( !restart ) {
		trap_Cvar_Register( &mapname, "mapname", "", CVAR_SERVERINFO | CVAR_ROM );
		trap_BotLibLoadMap( mapname.string );
	}

	for ( i = 0; i < MAX_CLIENTS; i++ ) {
		if ( botstates[i] && botstates[i]->inuse ) {
			BotResetState( botstates[i] );
			botstates[i]->setupcount = 4;
		}
	}

	BotSetupDeathmatchAI();

	return BLERR_NOERROR;
}
Example #3
0
/*
 * BotAILoadMap
 */
int
BotAILoadMap(int restart)
{
	int i;
	Vmcvar mapname;

	if(!restart){
		trap_cvarregister(&mapname, "mapname", "",
			CVAR_SERVERINFO | CVAR_ROM);
		trap_BotLibLoadMap(mapname.string);
	}

	for(i = 0; i < MAX_CLIENTS; i++)
		if(botstates[i] && botstates[i]->inuse){
			BotResetState(botstates[i]);
			botstates[i]->setupcount = 4;
		}

	BotSetupDeathmatchAI();

	return qtrue;
}