Jump to content

Welcome to Omni-bot Forums
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. If you already have an account, login here - otherwise create an account for free today!
Photo

Roles

- - - - - Roles

  • Please log in to reply
4 replies to this topic

#1
VargaTom

VargaTom

    Junior Member

  • Members
  • 103 posts
  • LocationNorth of Hungary

Hi, can someone tell me what is the difference between ATTACKER and OFFENSECAPTAIN roles?

Are there some bot roles that all bot players follow?



#2
palota

palota

    Senior Member

  • Administrators
  • 563 posts

There is no difference. It's not possible to follow a bot.



#3
VargaTom

VargaTom

    Junior Member

  • Members
  • 103 posts
  • LocationNorth of Hungary

There is no difference. It's not possible to follow a bot.

:(  Thank You!



#4
VargaTom

VargaTom

    Junior Member

  • Members
  • 103 posts
  • LocationNorth of Hungary

Dduring the game, is it possible to ask which engineer which role to play? This might make debugging easier. Because the easier it is to set up roles, the harder it is to accomplish



#5
Native12

Native12

    Senior Member

  • Members
  • 187 posts

Hi, I'm using script made by Palota with small change:

Commands["botsgoals"] = function(_params)	//only for testing roles (thx. Palota) => called at the end of OnMapLoad 
{
	foreach (team in TEAM)
	{
		foreach (class in Util.PlayerClassTable)
		{
			foreach ( bot in BotTable )
			{
				if(bot.GetClass()==class && bot.GetTeam()==team)
				{
					s="";
					foreach ( id and role in ROLE )
					{
						if(bot.HasRole(role))
						{
							s= s + " " + id;
						}
					}
					goal=bot.GetMapGoalName();
					if(!goal)
					{
						goal=bot.GetHighLevelGoalName();
					}
					if(!goal)
					{
						goal = "";
					}
					print(Util.TeamName(team) + " " + Util.ClassName(class) + s + ": " + goal);
				}
			}
		}
	}
};

And on the end of section OnMapLoad:

global OnMapLoad = function()
{
	
	while (1)	//for testing roles
	{
		foreach ( id and bot in BotTable )
		{
			print( "^3=========================Test Roles & Goals=========================" );
			Commands["botsgoals"](_params);
			print( "^3============================End of Test=============================" );
			sleep(5);
		}
		yield();
	}
};

  • VargaTom likes this




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users