fixed up AI interrupts

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@2192 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
haydent
2008-05-21 10:23:54 +00:00
parent 4397de6edb
commit 73acf25c7a
7 changed files with 127 additions and 22 deletions
+20 -1
View File
@@ -23,12 +23,14 @@ INT32 gsMAX_MERCS;
bool gsMORALE;
int gsREPORT_NAME;
#include "text.h"
#include "connect.h"
#include "message.h"
#include "network.h"
#include "overhead.h"
#include "fresh_header.h"
UINT16 nc; //number of open connection
UINT16 ncr; //number of ready confirmed connections
//something keep record of ready connections ..
@@ -59,6 +61,8 @@ RakPeerInterface *server;
int numreadyteams;
int readyteamreg[10];
bool Sawarded;
SystemAddress blank;
typedef struct
@@ -201,6 +205,20 @@ void sendHEAL(RPCParameters *rpcParameters)
{
server->RPC("recieve_heal",(const char*)rpcParameters->input, (*rpcParameters).numberOfBitsOfData, HIGH_PRIORITY, RELIABLE, 0, rpcParameters->sender, true, 0, UNASSIGNED_NETWORK_ID,0);
}
//
//void rINT(RPCParameters *rpcParameters)//who is first
//{
//
// AIint* data = (AIint*)rpcParameters->input;
//
// if( !Sawarded )
// {
// PauseAITemporarily();
// Sawarded=true;
// //send back to sender
// server->RPC("awardINT",(const char*)rpcParameters->input, (*rpcParameters).numberOfBitsOfData, HIGH_PRIORITY, RELIABLE, 0, rpcParameters->sender, false, 0, UNASSIGNED_NETWORK_ID,0);
// }
//}
void startCOMBAT(RPCParameters *rpcParameters)
{
@@ -566,6 +584,7 @@ if(gsPLAYER_BSIDE==2)//only enable ai during coop
REGISTER_STATIC_RPC(server, startCOMBAT);
REGISTER_STATIC_RPC(server, sendWIPE);
REGISTER_STATIC_RPC(server, sendHEAL);
//REGISTER_STATIC_RPC(server, rINT);
//