Plan of attack

Nick Trout nick at rockstarvancouver.com
Wed Dec 10 14:24:36 EST 2003



Brian, how complete are your changes now? Do you still have big
structural changes to make? Can I start hacking away at the Lua stuff?

I noticed yesterday some q2x files. What are these?

My initial thoughts for Lua conversion are:

 * Add a global Lua state somewhere - where do you think is the best
place?

 * Try converting a single monster, e.g. "light guard" (m_solder.c?)
over to Lua. Probably need to...

 *  Create table ("class instance") for each monster with a tables for
sound, animation sequences etc. 

 * Config files create monster instance and appropriate data in monster
tables. 

 * AI state based so can keep current update as in 
   self->monsterinfo.currentmove. 

 * First get m_*.c files querying Lua state for animation and sound
data, then wrap calls and move everything into Lua. i.e. make Lua API
for entity database etc.

Nick




More information about the q2x mailing list