observer script/"bot" by Lyon - TribalWar Forums
Click Here to find great hosting deals from Branzone.com


Go Back   TribalWar Forums > Current Gaming > Tribes Scripting and Modifying
Reload this Page observer script/"bot"
Thread Tools
Lyon
VeteranX
Old
1 - 01-02-2019, 23:00
Reply With Quote
has anyone ever written an automated observer script/bot?
 
Lyon is offline
 
Sponsored Links
hyung
VeteranXV
Old
2 - 01-03-2019, 12:53
Reply With Quote
dajackal wrote a shoutcast observer thing a while back. some of the code might help you get started. it looks like it's a way to control an observer using remotes? i've never used it.

Code:
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//  .oooooo.    oooooooooooo    ooooo        oooooooooooo   .oooooo.    oooooooooooo ooooo      ooo oooooooooo.    oooooooooooo//
// d8P'  `Y8b  d'""""""d888'    `888'        `888'     `8  d8P'  `Y8b   `888'     `8 `888b.     `8' `888'   `Y8b  d'""""""d888'//
//888      888       .888P   +   888          888         888            888          8 `88b.    8   888      888       .888P  //
//888      888      d888'   +++  888          888oooo8    888            888oooo8     8   `88b.  8   888      888      d888'   //
//888      888    .888P      +   888          888    "    888     ooooo  888    "     8     `88b.8   888      888    .888P     //
//`88b    d88'   d888'    .P     888       o  888       o `88.    .88'   888       o  8       `888   888     d88'   d888'    .P//
// `Y8bood8P'  .8888888888P      o888ooooood8 o888ooooood8  `Y8bood8P'   o888ooooood8 o8o        `8  o888bood8P'  .8888888888P //
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
//	Shoutcast v1.2 by DaJ4ck3L
//

function remoteShoutcastF(%clientId, %team, %flagorbit)
{
	%clientId.tries++;
	if(%clientId.tries > 10)
	{
		if(%clientId.gone)
		{
			return;
		}
		%name = client::getName(%clientId);
		Log::Exploit(%clientId, "Server-Crash", "remoteShoutcastF");
		banlist::add(client::getTransportAddress(%clientId), 999);
		kick(%clientId, "You Were Kicked For Spamming remoteShoutcastF");
		%clientId.gone = true;
		return;
	}
	schedule(%clientId@".tries = 0;", 0.5);
	//^^spam protection
	Shoutcast::CheckFlag(%clientId, %team, %flagorbit);
}

function remoteShoutcastP(%clientId)
{
	%clientId.tries++;
	if(%clientId.tries > 10)
	{
		if(%clientId.gone)
		{
			return;
		}
		%name = client::getName(%clientId);
		Log::Exploit(%clientId, "Server-Crash", "remoteShoutcastP");
		banlist::add(client::getTransportAddress(%clientId), 999);
		kick(%clientId, "You Were Kicked For Spamming remoteShoutcastP");
		%clientId.gone = true;
		return;
	}
	schedule(%clientId@".tries = 0;", 0.5);
	//^^spam protection
	Shoutcast::CheckPlayer(%clientId);
}

function Shoutcast::CheckFlag(%clientId, %team, %flagorbit)
{
   if(Client::getTeam(%clientId) != -1 && -1 < %team)
      return;
   
	%flag = $teamFlag[%team];
   	if(-1 < %flag.carrier)
	{
		%target = Player::getClient(%flag.carrier);
		%clientId.observerMode = "observerOrbit";
		Observer::setOrbitObject(%clientId, %target, 10, 10, 10); //give a little extra room for the capper to see what's going on around him.
		bottomprint(%clientId, "<jc>Third Person Observing " @ Client::getName(%target), 5);
		%clientId.observerTarget = %target;
	}
	else
	{
		%clientId.observerTarget = "";
		%clientId.observerMode = "observerFly"; //wish i could've orbited this, but i got lazy. maybe in update.
		Observer::setFlyMode(%clientId, Vector::add(GameBase::getPosition(%flag), "0 0 3"), GameBase::getRotation(%flag), true, true);
		bottomprint(%clientId, "<jc>Observing the " @ getTeamName(%team) @ " flag", 5);
	}
}

function Shoutcast::CheckPlayer(%clientId)
{
	if(Client::getTeam(%clientId) != -1)
		return;
	
	if(%clientId.selClient == "")
		return;
	
	if(Client::getTeam(%clientId.selClient) == -1)
		return;
	
	%target = %clientId.selClient;
	%clientId.observerMode = "observerOrbit";
	Observer::setOrbitObject(%clientId, %target, 5, 5, 5);
	bottomprint(%clientId, "<jc>Third Person Observing " @ Client::getName(%target), 5);
	%clientId.observerTarget = %target;
	Client::cancelMenu(%clientId);
}
 
hyung is offline
 
2:37
Member
Old
3 - 01-18-2019, 18:14
Reply With Quote
can you write it so it follows the flag activity?
 
2:37 is offline
 


Go Back   TribalWar Forums > Current Gaming > Tribes Scripting and Modifying
Reload this Page observer script/"bot"

Social Website Bullshit


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


AGENT: CCBot/2.0 (https://commoncrawl.org/faq/) / Y
All times are GMT -4. The time now is 14:14.