GuiVehicleHealthBar for Torque 1.5
by CodingChris · 01/09/2007 (10:12 am) · 4 comments
Download Code File
1. This article was oginally written by Anthony Rosenbaum. The modification to get it work with the race mod was written by Bruce Wallace. Thanks go to both of them.
2. Add the source file to your engine and compile a new build.
3. You have to do the same modifications as in Anthony's resource:
Be sure you have this in your vehicle datablock:
Now try it out!
1. This article was oginally written by Anthony Rosenbaum. The modification to get it work with the race mod was written by Bruce Wallace. Thanks go to both of them.
2. Add the source file to your engine and compile a new build.
3. You have to do the same modifications as in Anthony's resource:
Be sure you have this in your vehicle datablock:
// Energy
jetForce = 3000;
minJetEnergy = 30;
maxEnergy = 200;
jetEnergyDrain = 2;
rechargeRate = 0.8;and then in the WheeledVehicleData::OnAdd(%this, %obj):%obj.setEnergyLevel(%this.MaxEnergy); %obj.setRechargeRate(%this.rechargeRate);4. Add the guivehicleHealthbar control to your playGUI for example with the GUIEditor.
Now try it out!
About the author
#2
01/03/2007 (7:46 pm)
thanks
#3
07/02/2007 (1:05 am)
#4
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=14082
01/01/2008 (12:09 pm)
Ported it over to TGEA:www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=14082

Associate Anthony Rosenbaum