View Single Post
Old 12-22-2006, 04:46 PM   #147
zERoCooL2479
 
zERoCooL2479's Avatar
 
Join Date: Apr 2002
Location: New York
Posts: 288
bot_honorableduelacceptance and bot laming.

In ai_main.c, replace

Code:
if (InFieldOfVision(bs->viewangles, 100, e_ang_vec))
{ //Our enemy has his saber holstered and has challenged us to a duel, so challenge him back
	if (!bs->cur_ps.saberHolstered)
	{
	    Cmd_ToggleSaber_f(&g_entities[bs->client]);
	}
	else
	{
             if (bs->currentEnemy->client->ps.duelIndex == bs->client &&
	         bs->currentEnemy->client->ps.duelTime > level.time &&
                 !bs->cur_ps.duelInProgress)
	     {
		 Cmd_EngageDuel_f(&g_entities[bs->client]);
	     }
	}
with:

Code:
if (InFieldOfVision(bs->viewangles, 100, e_ang_vec) && !bs->cur_ps.duelInProgress && 
    !bs->currentEnemy->client->ps.fd.forcePowersActive )
{ //Our enemy has his saber holstered and has challenged us to a duel, so challenge him back
	if (!bs->cur_ps.saberHolstered && !bs->cur_ps.saberInFlight )
	{
	    Cmd_ToggleSaber_f(&g_entities[bs->client]);
	}
	else
	{
	    if (bs->currentEnemy->client->ps.duelIndex == bs->client &&
		bs->currentEnemy->client->ps.duelTime > level.time &&
		!bs->cur_ps.duelInProgress)
	    {
		Cmd_EngageDuel_f(&g_entities[bs->client]);
	    }
	}
This will prevent people from laming the bots when they have their guard down.


~cHoSeN oNe
Mod Developer
The Jedi Academy
zERoCooL2479 is offline   you may: quote & reply,