Index: source/code/botlib/botlib.h =================================================================== --- source/code/botlib/botlib.h (Revision 1818) +++ source/code/botlib/botlib.h (Arbeitskopie) @@ -100,6 +100,7 @@ #define ACTION_GUARDBASE 0x1000000 #define ACTION_PATROL 0x2000000 #define ACTION_FOLLOWME 0x8000000 +#define ACTION_JUMPEDLASTFRAME 0x10000000 //the bot input, will be converted to an usercmd_t typedef struct bot_input_s Index: source/code/botlib/be_ea.c =================================================================== --- source/code/botlib/be_ea.c (Revision 1818) +++ source/code/botlib/be_ea.c (Arbeitskopie) @@ -40,7 +40,6 @@ #define MAX_USERMOVE 400 #define MAX_COMMANDARGUMENTS 10 -#define ACTION_JUMPEDLASTFRAME 128 bot_input_t *botinputs; @@ -416,24 +415,6 @@ //=========================================================================== void EA_EndRegular(int client, float thinktime) { -/* - bot_input_t *bi; - int jumped = qfalse; - - bi = &botinputs[client]; - - bi->actionflags &= ~ACTION_JUMPEDLASTFRAME; - - bi->thinktime = thinktime; - botimport.BotInput(client, bi); - - bi->thinktime = 0; - VectorClear(bi->dir); - bi->speed = 0; - jumped = bi->actionflags & ACTION_JUMP; - bi->actionflags = 0; - if (jumped) bi->actionflags |= ACTION_JUMPEDLASTFRAME; -*/ } //end of the function EA_EndRegular //=========================================================================== // @@ -444,23 +425,10 @@ void EA_GetInput(int client, float thinktime, bot_input_t *input) { bot_input_t *bi; -// int jumped = qfalse; bi = &botinputs[client]; - -// bi->actionflags &= ~ACTION_JUMPEDLASTFRAME; - bi->thinktime = thinktime; Com_Memcpy(input, bi, sizeof(bot_input_t)); - - /* - bi->thinktime = 0; - VectorClear(bi->dir); - bi->speed = 0; - jumped = bi->actionflags & ACTION_JUMP; - bi->actionflags = 0; - if (jumped) bi->actionflags |= ACTION_JUMPEDLASTFRAME; - */ } //end of the function EA_GetInput //=========================================================================== // @@ -474,7 +442,6 @@ int jumped = qfalse; bi = &botinputs[client]; - bi->actionflags &= ~ACTION_JUMPEDLASTFRAME; bi->thinktime = 0; VectorClear(bi->dir);