Weapon Hud
by Fucifer · in Torque Game Engine · 05/07/2006 (1:56 pm) · 9 replies
I have been try to figure out how install a weapon hud. I have been using this tutorial here
http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=2221
I have check everything and try different codes but nothing work. I launch torgue and mission, there is no weapon hud. I cant seem to get to work. Thank you.
http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=2221
I have check everything and try different codes but nothing work. I launch torgue and mission, there is no weapon hud. I cant seem to get to work. Thank you.
#2
05/07/2006 (3:19 pm)
Yes, but with that resource it all done in gui and cs file with no engine change.
#5
05/08/2006 (1:18 pm)
C2, no console message. I am using TLK 1.4. Take look at the resource page and see is there anything missing.
#6
05/10/2006 (1:12 pm)
Brain, I try your code but engine (TLK1.4) hang up. I try to get to load so I can get to the console to see what going on.
#7
function GameConnection::onClientEnterGame(%this)
{
+%this.setAmmoAmountHud("0");
+%this.setweapHud("");
+%this.setweappHud("");
}
function GameConnection::onDeath(%this, %sourceObject, %sourceClient, %damageType, %damLoc)
{
%this.setAmmoAmountHud("0");
%this.setweapHud("");
%this.setweappHud("");
// Clear out the name on the corpse
%this.player.setShapeName("");
}
I took this code out, I not sure if it is needed or what is wrong with it. After comment this code out the Torque Engine load up. I have a black square outline, weapon name button and ammo count. If I get new ammo it does count it. I would like get the ammo count working. Thank for any help
05/10/2006 (4:48 pm)
I am not sure why, but this was cause the Torque Engine to lockup. It is this part in game.csfunction GameConnection::onClientEnterGame(%this)
{
+%this.setAmmoAmountHud("0");
+%this.setweapHud("");
+%this.setweappHud("");
}
function GameConnection::onDeath(%this, %sourceObject, %sourceClient, %damageType, %damLoc)
{
%this.setAmmoAmountHud("0");
%this.setweapHud("");
%this.setweappHud("");
// Clear out the name on the corpse
%this.player.setShapeName("");
}
I took this code out, I not sure if it is needed or what is wrong with it. After comment this code out the Torque Engine load up. I have a black square outline, weapon name button and ammo count. If I get new ammo it does count it. I would like get the ammo count working. Thank for any help
#8
05/11/2006 (9:47 am)
Brian, I change the code so you can design bitmap with text over them to use in the game. If you like I can post the code to your thread.
#9
05/11/2006 (2:21 pm)
Sure I actually like it when peope post changes to my resources because it helps other people who look
Torque Owner Martin de Richelieu