View Full Version: Team members

Annihilation Community Forums > Technical Assistance > Team members


Title: Team members
Description: used to be control t


LunaticChick - December 12, 2010 08:04 PM (GMT)
With the new version, control t doesn't show your tms ... is there a different keybind now?

LunaticChick - December 19, 2010 03:49 PM (GMT)
Guess there isnt a bind to see your tms at the bottom of the screen now ... bummer ... it was easier than using the tab menu :(
















































<!> Death666 - December 19, 2010 09:55 PM (GMT)
That was from presto pack I think. If someone converted presto for 1.4 its out there I'll do some searching for it.

<!> Death666 - January 16, 2011 06:08 AM (GMT)
Team Hud for version 1.40:


CODE

// teammate hud for tribes 1.40

function TeammateHUD::Init() {

Hud::New::Shaded( "Teammate_Hud", 0, 0, 1680, 36, TeammateHUD::Wake, TeammateHUD::Sleep );

newObject("TeammateHUD::Slot1", FearGuiFormattedText, 10, 2, 140, 16);
newObject("TeammateHUD::Slot2", FearGuiFormattedText, 150, 2, 140, 16);
newObject("TeammateHUD::Slot3", FearGuiFormattedText, 300, 2, 140, 16);
newObject("TeammateHUD::Slot4", FearGuiFormattedText, 450, 2, 140, 16);
newObject("TeammateHUD::Slot5", FearGuiFormattedText, 600, 2, 140, 16);
newObject("TeammateHUD::Slot6", FearGuiFormattedText, 750, 2, 140, 16);
newObject("TeammateHUD::Slot7", FearGuiFormattedText, 800, 2, 140, 16);
newObject("TeammateHUD::Slot8", FearGuiFormattedText, 850, 2, 140, 16);
newObject("TeammateHUD::Slot9", FearGuiFormattedText, 900, 20, 140, 16);
newObject("TeammateHUD::Slot10", FearGuiFormattedText, 10, 20, 140, 16);
newObject("TeammateHUD::Slot11", FearGuiFormattedText, 150, 20, 140, 16);
newObject("TeammateHUD::Slot12", FearGuiFormattedText, 300, 20, 140, 16);
newObject("TeammateHUD::Slot13", FearGuiFormattedText, 450, 20, 140, 16);
newObject("TeammateHUD::Slot14", FearGuiFormattedText, 600, 20, 140, 16);
newObject("TeammateHUD::Slot15", FearGuiFormattedText, 750, 20, 140, 16);
newObject("TeammateHUD::Slot16", FearGuiFormattedText, 900, 20, 140, 16);

Hud::Add( "Teammate_Hud", "TeammateHUD::Slot1" );
Hud::Add( "Teammate_Hud", "TeammateHUD::Slot2" );
Hud::Add( "Teammate_Hud", "TeammateHUD::Slot3" );
Hud::Add( "Teammate_Hud", "TeammateHUD::Slot4" );
Hud::Add( "Teammate_Hud", "TeammateHUD::Slot5" );
Hud::Add( "Teammate_Hud", "TeammateHUD::Slot6" );
Hud::Add( "Teammate_Hud", "TeammateHUD::Slot7" );
Hud::Add( "Teammate_Hud", "TeammateHUD::Slot8" );
Hud::Add( "Teammate_Hud", "TeammateHUD::Slot9" );
Hud::Add( "Teammate_Hud", "TeammateHUD::Slot10" );
Hud::Add( "Teammate_Hud", "TeammateHUD::Slot11" );
Hud::Add( "Teammate_Hud", "TeammateHUD::Slot12" );
Hud::Add( "Teammate_Hud", "TeammateHUD::Slot13" );
Hud::Add( "Teammate_Hud", "TeammateHUD::Slot14" );
Hud::Add( "Teammate_Hud", "TeammateHUD::Slot15" );
Hud::Add( "Teammate_Hud", "TeammateHUD::Slot16" );
}

function TeammateHUD::Wake() {
TeammateHUD::Update();
}

function TeammateHUD::Sleep() {

}

function TeammateHUD::UpdateTeams() {

$TeammateHUD::MyTeam = Team::Friendly();

%myid = getManagerId();

$TeammateHUD::Teammates = 0;

for( %l = 1; %l <= $Team::Client::Count; %l++ ) {
 
 %team = $Team::Client::Team[ $Team::Client::List[ %l ] ];
   
 if( %team == $TeammateHUD::MyTeam && $Team::Client::List[ %l ] != %myid ) {
 
  $MyTeam::Name[ $TeammateHUD::Teammates++ ] = $Team::Client::Name[ $Team::Client::List[ %l ] ];
  $MyTeam::PlayerNumber[ $TeammateHUD::Teammates ] = %l;
 
  if( $TeammateHUD::Status[ $MyTeam::PlayerNumber[ $TeammateHUD::Teammates ] ] != "red" )
 
   $TeammateHUD::Status[ $MyTeam::PlayerNumber[ $TeammateHUD::Teammates ] ] = "green";
 }
}
TeammateHUD::Update();
}

function TeammateHUD::Update() {

for( %slot = 1; %slot <= $TeammateHUD::Teammates; %slot++ ) {

 control::setValue( "TeammateHUD::Slot" @ %slot, "<b0,0:modules/TeammateHUD/" @ $TeammateHUD::Status[ $MyTeam::PlayerNumber[ %slot ] ] @ ".png>" @ String::escapeFormatting( $MyTeam::Name[ %slot ] ) );
 
}
for( %slot = $TeammateHUD::Teammates + 1; %slot <= 16; %slot++ )
 control::setValue( "TeammateHUD::Slot" @ %slot, "" );

}

// suicides
function TeammateHUD::SetS_Status( %v, %w ) {
if( Client::GetTeam( %v ) != $TeammateHUD::MyTeam )
 return;
$TeammateHUD::Status[ $Team::Client::Position[ %v ] ] = "red";
TeammateHUD::Update();
Schedule::Add( "TeammateHUD::ClearStatus(" @ %v @ ");", 5);
}

// deaths and team kills
function TeammateHUD::SetStatus( %k, %v, %w ) {
if( Client::GetTeam( %v ) != $TeammateHUD::MyTeam )
 return;
$TeammateHUD::Status[ $Team::Client::Position[ %v ] ] = "red";
TeammateHUD::Update();
Schedule::Add( "TeammateHUD::ClearStatus(" @ %v @ ");", 5);
}

function TeammateHUD::ClearStatus( %v ) {
$TeammateHUD::Status[ $Team::Client::Position[ %v ] ]="green";
TeammateHUD::Update();
}

TeammateHUD::Init();

Event::Attach( eventClientKilled, TeammateHUD::SetStatus );
Event::Attach( eventClientTeamKilled, TeammateHUD::SetStatus );
Event::Attach( eventClientSuicided, TeammateHUD::SetS_Status );
Event::Attach( eventClientsUpdated, TeammateHUD::UpdateTeams );


This is made by Lemon at tribalwar.com here is the thread its from:
http://www.tribalwar.com/forums/showthread.php?t=626295


This is what I did to install it:
-Open up TRIBES\Config\Modules and create the folder TeamHUD

-Copy any ONE of the other .acs files you see in the modules folder and paste it in the teamhud folder, then open it and delete all the old code and paste the teamhud code in its place.

-Rename the file TeamHUD so now its TeamHUD.acs

-Move the hud where you like in game it starts out at the top of the screen originally.

Notes: Sometimes a few names will merge together I don't think Lemon is done with it completely so there will probably be updates in the future, but it actually works pretty good I got used to playing with it after a couple matches. Also the way I installed it is just the way I got it to work and may not be 100% correct. Enjoy.

lemon - April 3, 2011 05:24 AM (GMT)




* Hosted for free by InvisionFree