Server Help

Bot Questions - Flagreset just one flag - mervbot

Anonymous - Sat Dec 09, 2006 12:34 pm
Post subject: Flagreset just one flag - mervbot
In mervbot is it possible to flagreset just one flag (turf style stationary type flag game)

Lets say flag is a team flag and I want to make it a enemyflag

Code: Show/Hide

      _listnode <Flag> *parse;
      parse = flaglist->head;
      
      while (parse)
      {
            Flag *f = parse->item;
            parse = parse->next;
            
            if(f->ident==0 && f->team==0)
                    {
                              f->team = 1; //change value in bot.
                           // make change - need code
                    }
      
      }


Im guessing if its possible its something like this, but I cant make it work.

Code: Show/Hide

map[getLinear(f->x, f->y)] = ssbTeamFlag;
map[getLinear(f->x, f->y)] = ssbEnemyFlag;


Thanks
Cyan~Fire - Sat Dec 09, 2006 12:37 pm
Post subject:
You'd have to make the bot enter the game as the team you want the flag to be, touch the flag, then leave.
Anonymous - Sat Dec 09, 2006 12:50 pm
Post subject:
scratch that idea then icon_sad.gif

Ok thanks,
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group