Beispiel #1
0
        }         //end of the function EA_ResetInput

        //===========================================================================
        //
        // Parameter:			-
        // Returns:				-
        // Changes Globals:		-
        //===========================================================================
        int EA_Setup(void)
        {
            //initialize the bot inputs
            botinputs = (bot_input_t *)GetClearedHunkMemory(
                botlibglobals.maxclients * sizeof(bot_input_t));
            return(BLERR_NOERROR);
        }         //end of the function EA_Setup
Beispiel #2
0
        }         //end of the function EA_EndRegular

        //===========================================================================
        //
        // Parameter:			-
        // Returns:				-
        // Changes Globals:		-
        //===========================================================================
        void EA_GetInput(int client, float thinktime, bot_input_t *input)
        {
            bot_input_t *bi;

            //	int jumped = false;

            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
Beispiel #3
0
        }         //end of the function EA_Setup

        //===========================================================================
        //
        // Parameter:			-
        // Returns:				-
        // Changes Globals:		-
        //===========================================================================
        void EA_Shutdown(void)
        {
            FreeMemory(botinputs);
            botinputs = NULL;
        }         //end of the function EA_Shutdown