[T1 Request]A capper kill tracking hud?

Sassy Sally
11-01-2002, 11:54 PM
I know there's one made, I just can't find a link to it. Can someone help me out?

SuperSlug
11-02-2002, 12:09 AM
Requires Presto
//LDHUD.cs
//Shows you hwo many times you've killed the enemy capper and how many times you've returned your flag
//neat eh?
// HotCheese - xyster@phreaker.net
// This is version 1.0.
// Requires: Prsto

//========================= ========================= =========================
// EDIT THIS STUFF HERE
//========================= ========================= =========================
$CapKills::ShowCapKills = "true"; // Show your capkill HUD
$CapKills::ShowReturns = "true"; // Show your flag return HUD
editActionMap("playMap.sae");

//binding to Toggle the cap kills HUD on/off
bindCommand(keyboard0, make, alt, "f1", TO, "CapKills::ToggleCap();");
bindCommand(keyboard0, break, alt, "f1", TO, "");

//binding to toggle the return HUD on/off
bindCommand(keyboard0,mak e, alt, "f2", TO, "CapKills::ToggleReturns() ;");
bindCommand(keyboard0, break, alt, "f2", TO, "");

//========================= ========================= ========================
// DON'T EDIT THIS UNLESS YOU KNOW WHAT YOU'RE DOING
//========================= ========================= ========================
Include("presto\\Event.cs");
Include("presto\\HUD.cs");
Include("presto\\TeamTrak.cs");
Include("presto\\KillTrak.cs");


function CapKills::Reset()
{
$CapKills::CapKills = 0;
$CapKills::FlagReturns = 0;
HUD::Update(CapKills);
HUD::Update(FlagReturns);
}

function newFormat(%val)
{
if(%val >= 10) return %val;
if(%val < 10) return "0"@%val;
}

function CapKills::Update()
{
HUD::AddTextLine(CapKills ,"<f1>Capper Kills: <f2> " @ newFormat($CapKills::CapK ills));
}

function CapKills::UpdateReturn()
{
HUD::AddTextLine(FlagRetu rns,"<f1>Flag Returns:<f2> " @ newFormat($CapKills::Flag Returns));
}


HUD::New("CapKills","CapKills::Update","0% 25% 120 20");
HUD::New("FlagReturns","CapKills::UpdateReturn","0% 25%+20 120 20");

function CapKills::ShowHUDS()
{
if ($CapKills::ShowCapKills)
HUD::Display(CapKills,tru e);
else
HUD::Display(CapKills,fal se);
if ($CapKills::ShowReturns)
HUD::Display(FlagReturns, true);
else
HUD::Display(FlagReturns, false);
}

function CapKills::ToggleCap()
{
$CapKills::ShowCapKills = !$CapKills::ShowCapKills;
CapKills::ShowHUDS();
}

function CapKills::ToggleReturns()
{
$CapKills::ShowReturns = !$CapKills::ShowReturns;
CapKills::ShowHUDS();

}

function CapKills::CapKills(%kille rID, %victimID, %weapon)
{

%me = getManagerID();

if(%killerID != %me)
return;

if(Client::getName(%victi mID) == $CapKills::Location)
{
$CapKills::CapKills++;
HUD::Update(CapKills);
Schedule::Cancel(CapKills );
CapKills::ResetLocation() ;
}
}

function CapKills::Returned(%team, %returnerID)
{
if (%team != Team::Friendly())
return;

if (%returnerID == getManagerID())
{
$CapKills::FlagReturns++;
HUD::Update(FlagReturns);
}
}

function CapKills::Dropped(%team, %dropperID)
{
if (%team != Team::Friendly())
return;

$CapKills::Location = client::GetName(%dropperI D);

Schedule::Add("CapKills::ResetLocation() ;","2",CapKills);
}

function CapKills::ResetLocation()
{
$CapKills::Location = "";
}

CapKills::Reset();
CapKills::ShowHUDS();

Event::Attach(eventKillTr ak, CapKills::Kills);
Event::Attach(eventFlagRe turned,CapKills::Returned );
Event::Attach(eventChange Mission,CapKills::Reset);
Event::Attach(eventConnec ted,CapKills::Reset);

ayz
11-02-2002, 12:18 AM
u mean the thing i have on the bottom of my chathud?

http://www.duke.edu/~mw34/images/config010.jpg

SuperSlug
11-02-2002, 12:36 AM
Send me file plz :) nick in IRC = drunkslug atm

Ambient7
11-02-2002, 01:04 AM
ayzianboy, that's just a waypoint text, with the scores of both teams and the person who took the friendly/enemy flag (whatever you have it set to).

That is NOT a capper kill tracking HUD.

jin kazama
11-02-2002, 02:14 AM
Originally posted by Ambient7
ayzianboy, that's just a waypoint text, with the scores of both teams and the person who took the friendly/enemy flag (whatever you have it set to).



thats not stripped compatible is it? wink wink

ayz
11-02-2002, 03:05 AM
its independent. doens't need outside scripts.