project-navigation
Personal tools

Author Topic: AI and lua  (Read 2796 times)

sunflower

  • Guest
AI and lua
« on: May 22, 2009, 01:29:57 am »
Hi,

This is following an (old) IRC exchange about lua and AI

I am trying to see where AI is, I found
base/ai/civilian.lua, base/ai/alien.lua
+ src/game/g_ai{_lua}.{c,h}

Is work still wanted on AI? If so i guess i'll try to tune civilian.lua
Cheers !

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: AI and lua
« Reply #1 on: May 22, 2009, 02:09:08 am »
yes, lua ai is still wanted - would be nice if you would work on it.

sunflower

  • Guest
Re: AI and lua
« Reply #2 on: May 23, 2009, 09:36:30 pm »
Hi,

I begun to look into ufoai's AI :)
I planned on adding some civilian 'intelligence' to get started

I'm looking for a simple way of getting the array of movements a unit would have to make to reach a particular position (another unit for instance)
I found things in g_local.h and doxygen as

extern edict_t *ai_waypointList;
void    AI_ActorThink (player_t *player, edict_t *ent)
void MoveCalc

I however get quite confused with the process, thanks if you can point a relevant part of the docs or tip in on how I should proceed :)
Cheers!