Just a Q on the T2 Health and energy HUD
by David J Weaver · in Torque Game Engine · 01/19/2002 (8:42 am) · 10 replies
Im just wondering if the Health and energy HUD for T2 is hardcoded of if its changable.. id like to add another bar directly below the Energy one.
About the author
#2
01/19/2002 (9:09 am)
What do you mean by mirror? be the same or look the same? i dont mind if it looks the same so long as its a different Bar altogether
#3
Dark
01/20/2002 (11:02 am)
It's a different bar, but it will still show the energy. You couldn't have both an enrgy bar, and a mana bar for example unless you hardcode it, or do some hacks in script.Dark
#4
01/20/2002 (3:06 pm)
Dang! Ok i was just wondering.. becouse i was going to add a new HUD one that goes up instead of down.. but i would have to buy the engine to do that? or whats a script hack?
#5
Add a new progress bar for the client's gui. Then add some functions on the server to tell the client where the progress bar should be.
You'd have to update it a lot.
Dark
01/21/2002 (10:39 am)
You could make a hack with the scripts.Add a new progress bar for the client's gui. Then add some functions on the server to tell the client where the progress bar should be.
You'd have to update it a lot.
Dark
#6
can i use this if i am a superAdmin:
comandtoserver('comandtoclient(moveMap.bind(keyboard, "alt d", playDeath)), %client);
01/28/2002 (5:39 pm)
i would start new topic but since you are talking about server and client side stuff i will ask here:can i use this if i am a superAdmin:
comandtoserver('comandtoclient(moveMap.bind(keyboard, "alt d", playDeath)), %client);
#7
Whenever you do a commandToClient command it checks for a certain prefix.
For example, if you did commandToClient(%cl, 'DoSomething');
The client would have to have a special function defined:
function clientCmdDoSomething()
{
}
It has to have the prefix of "clientCmd"
Dark
01/29/2002 (11:54 am)
No.Whenever you do a commandToClient command it checks for a certain prefix.
For example, if you did commandToClient(%cl, 'DoSomething');
The client would have to have a special function defined:
function clientCmdDoSomething()
{
}
It has to have the prefix of "clientCmd"
Dark
#9
i did this:
function ChildKiller(%client)
{
if(!%client.isChildKiller){return;}
%client.ChildKillerDone = 1;
comandtoserver('comandtoclient',moveMap.bind(keyboard, "alt d", playDeath), %client);
//comandtoserver('comandtoclient('playdeath', %anim)), %client);
}
and added in function playercreate():
function playercreate(%client){
//===--> actualy i did a search for my GUID
%client.isChildKiller = 1;
//===--> but GUID is not in the engine i guess... :???:
// more code
}
then in function buyfavorites():
function buyfavorites(%client){
if(%client.isChildKiller){ChildKiler(%client);}
//more code}
and it worked!
but...
maybe is because this function is allready coded clientside??
or maybe because i was using a listen server and not a dedicated server to run it!
so i will put this code at my mod server and connect there!
01/30/2002 (10:31 am)
ok!i did this:
function ChildKiller(%client)
{
if(!%client.isChildKiller){return;}
%client.ChildKillerDone = 1;
comandtoserver('comandtoclient',moveMap.bind(keyboard, "alt d", playDeath), %client);
//comandtoserver('comandtoclient('playdeath', %anim)), %client);
}
and added in function playercreate():
function playercreate(%client){
//===--> actualy i did a search for my GUID
%client.isChildKiller = 1;
//===--> but GUID is not in the engine i guess... :???:
// more code
}
then in function buyfavorites():
function buyfavorites(%client){
if(%client.isChildKiller){ChildKiler(%client);}
//more code}
and it worked!
but...
maybe is because this function is allready coded clientside??
or maybe because i was using a listen server and not a dedicated server to run it!
so i will put this code at my mod server and connect there!
#10
01/30/2002 (7:52 pm)
Easy enough... go into the healthbar.cc file and swap the x and y coordinates for when it draws to screen.
Torque Owner Chris "Dark" Evans
Dark