Пример #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;
}
Пример #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;
}
Пример #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;
}
Пример #4
0
/*
==============
BotAILoadMap
==============
*/
int BotAILoadMap( int restart )
{
    int			i;
    cvar_t	*mapname;

    if (!restart)
    {
        mapname = Cvar_Get("mapname", "", CVAR_SERVERINFO | CVAR_ROM );
        botlib_export->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;
}