Changes between Version 9 and Version 10 of ioquake3


Ignore:
Timestamp:
Aug 10, 2011 11:28:51 AM (13 years ago)
Author:
xwang
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ioquake3

    v9 v10  
    5656
    5757For more information, see the "files.c" file located in code/qcommon.
     58
     59=== Adding New Items ===
     60To create a new item, edit the following files:
     61* '''bg_misc.c''' - add your item to the end of the list of items, following the same format as the other quagent items.
     62* '''inv.h''' - define your item at the end of the list of quagent items. Make sure to change the value of QUAGENT_ITEM_END accordingly.
     63* '''ai_quagentnodes.c''' - add a case for your new item in the put down, check inventory, and alchemize functions.
     64* '''ai_directorcommands.c''' - add a case for your new item in the drop function
    5865
    5966== Quagents Behavior ==
     
    115122
    116123If you want to edit director effects, check out the !BotHandleDirectorCommand(char* cmdbuff) function in game/ai_main.c. Currently, it just echoes any director commands to stdout, but it gets called once per command with the command string in cmdbuff (see the comments). So you'll need to add stuff to parse out the commands from whatever format they are in and then evaluate them. I decided it might be nice to keep all the director command functions in ai_directorcommands.c and ai_directorcommands.h. Hopefully that won't be a problem.
     124
     125The director commands uses a similar format to the bot commands. The only difference is that instead of adding the commands to the command queue, the function that performs the actions is called directly and executed. This is handeled in the !BotHandleDirectorCommand(char* cmdbuff) function in game/ai_main.c. All of the director commands are in ai_directorcommands.c