[T1 Request] Simple Pak Hud

TooSmoothe
11-21-2002, 01:43 AM
I hate hte fact that i have to look at that god awful weapons hud on the side of my screen, the only reason i have it there is so that i can see what pak I have. If someone would be willing to whip up a little hud that just says a little message i would be very greatful. Thnx in advance.

jin kazama
11-21-2002, 01:59 AM
um
press r

Shinigami
11-21-2002, 02:08 AM
r...for repair kit...

TooSmoothe
11-21-2002, 03:19 AM
i'd prefer to be lazy and just read a little hud that says something, besides my r button probly does something difrent than ures.

Soliah
11-21-2002, 03:51 AM
This is Ambient's PackHUD edited a bit. Works on stripped. Not sure bout anything else.

function PackHUD::Update()
{
if(getItemCount("Inventory Station") == 1)
control::setValue("PackHud_Text", "<f2>Invy");
else if(getItemCount("PackHUD Station") == 1)
control::setValue("PackHud_Text", "<f2>PackHUD");
else if(getItemCount("Energy Pack") == 1)
control::setValue("PackHud_Text", "<f2>Energy");
else if(getItemCount("Repair Pack") == 1)
control::setValue("PackHud_Text", "<f2>Repair");
else if(getItemCount("Shield Pack") == 1) {
if ($PackHUD::ShieldsOn == "TRUE") {
control::setValue("PackHud_Text", "<f0>Shield");
schedule("PackHUD::Flash1();", 0.33);
schedule("PackHUD::Flash2();", 0.66);
}
else
control::setValue("PackHud_Text", "<f2>Shield");
}
else if(getItemCount("Sensor Jammer Pack") == 1)
control::setValue("PackHud_Text", "<f2>Jammer");
else if(getItemCount("Motion Sensor") == 1)
control::setValue("PackHud_Text", "<f2>Motion");
else if(getItemCount("Ammo Pack") == 1)
control::setValue("PackHud_Text", "<f2>Ammo");
else if(getItemCount("Pulse Sensor") == 1)
control::setValue("PackHud_Text", "<f2>Pulse");
else if(getItemCount("Sensor Jammer") == 1)
control::setValue("PackHud_Text", "<f2>Jammer");
else if(getItemCount("Camera") == 1)
control::setValue("PackHud_Text", "<f2>Camera");
else if(getItemCount("Turret") == 1)
control::setValue("PackHud_Text", "<f2>Turret");
else
control::setValue("PackHud_Text", "<f2>Nekkid");

schedule("PackHud::Update();", 1);
}

function PackHUD::Parse(%cl, %msg) {
if (String::FindSubStr(%msg, "Shield On") != -1) {
$PackHUD::ShieldsOn = "TRUE";
}
else if (String::FindSubStr(%msg, "Shield Off") != -1) {
$PackHUD::ShieldsOn = "FALSE";
}
}

function PackHUD::Flash1() {
control::setValue("PackHud_Text", "<f1>Shield");
}

function PackHUD::Flash2() {
control::setValue("PackHud_Text", "<f2>Shield");
}

function PackHUD::Create()
{
if(!$ConnectedToServer) {
schedule("PackHUD::Create();", 1);
return;}

$PackHud = newObject("PackHUD_Text", FearGuiFormattedText, Stripped::getScreenSizeX( )/2 - 32, Stripped::getScreenSizeY( )/2 + 50, 0, 0);

addToSet(PlayGui, $PackHud);

PackHUD::Update();
}

function PackHUD::Destroy()
{
deleteObject($PackHud);
}

Event::Attach(eventExit, PackHUD::Destroy);
Event::Attach(eventConnec tionAccepted, PackHUD::Destroy);
Event::Attach(eventConnec tionAccepted, PackHUD::Create);
Event::Attach(eventConnec ted, PackHUD::Update);
Event::Attach(EventServer Message, PackHUD::Parse);

Foodey
11-21-2002, 04:14 AM
stop requesting and get vp or stripped :/

random
11-21-2002, 04:43 AM
z0ddhud
z0ddhud
z0ddhud
z0ddhud
z0ddhud

TooSmoothe
11-21-2002, 06:10 AM
or if u feel like writing unhelpful stuff you can just do that.

BrokenSoul
11-21-2002, 02:16 PM
if youre using presto/newopts evita has a pack hud and an ammo hud that would defeat any purpose the current hud has. check it out http://heimdal_sg3.tripod.com/evita.html