<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.splashdamage.com/index.php?action=history&amp;feed=atom&amp;title=Vehicle_Tutorial_Part_4</id>
	<title>Vehicle Tutorial Part 4 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.splashdamage.com/index.php?action=history&amp;feed=atom&amp;title=Vehicle_Tutorial_Part_4"/>
	<link rel="alternate" type="text/html" href="https://wiki.splashdamage.com/index.php?title=Vehicle_Tutorial_Part_4&amp;action=history"/>
	<updated>2026-04-07T16:57:23Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>https://wiki.splashdamage.com/index.php?title=Vehicle_Tutorial_Part_4&amp;diff=1463&amp;oldid=prev</id>
		<title>192.168.0.129 at 17:06, 15 October 2007</title>
		<link rel="alternate" type="text/html" href="https://wiki.splashdamage.com/index.php?title=Vehicle_Tutorial_Part_4&amp;diff=1463&amp;oldid=prev"/>
		<updated>2007-10-15T17:06:44Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Advanced Scripting ==&lt;br /&gt;
&lt;br /&gt;
There are a plethora of other things you can do with your vehicle to set it up. I'm going to go into some of them here.&lt;br /&gt;
&lt;br /&gt;
=== Vehicle HUD ===&lt;br /&gt;
&lt;br /&gt;
When you are in a vehicle in ETQW a HUD section is added in the bottom left showing details about the vehicle - health, passengers, etc. These are quite simple to create, as they are all done through templates. The only new asset you need to create is an icon for it - it should be pretty easy from looking at the existing icons. They're made up from a border and a fill image, a couple of examples are &amp;lt;tt&amp;gt;guis/assets/icons/vehicles/gdf_top_husky_border.tga&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;guis/assets/icons/vehicles/gdf_top_husky_fill.tga&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
To make the material you'll need to create a new &amp;lt;tt&amp;gt;.mtr&amp;lt;/tt&amp;gt; file and place it in a &amp;lt;tt&amp;gt;materials&amp;lt;/tt&amp;gt; directory in your mod directory. I'm calling mine &amp;lt;tt&amp;gt;buggy_tute.mtr&amp;lt;/tt&amp;gt;. The material is created using a template, so we'll need to include the template file before we can create the material. Here is the result for mine. Note that I'm reusing the Husky's icon:&lt;br /&gt;
&amp;lt;tt&amp;gt;&lt;br /&gt;
 #include &amp;lt;materials/guis/hud/gdf.include&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 material guis/assets/hud/vehicles/buggy_tute&lt;br /&gt;
 {		&lt;br /&gt;
     _vehicle_icon( &amp;quot;guis/assets/icons/vehicles/gdf_top_husky&amp;quot; )&lt;br /&gt;
 }&lt;br /&gt;
&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you can make the GUI. You'll need to make a &amp;lt;tt&amp;gt;.gui&amp;lt;/tt&amp;gt; file and place this in a &amp;lt;tt&amp;gt;guis&amp;lt;/tt&amp;gt; directory in your mod directory. I'm calling mine &amp;lt;tt&amp;gt;buggy_tute.gui&amp;lt;/tt&amp;gt;. Again, we'll need to include a template file first:&lt;br /&gt;
&amp;lt;tt&amp;gt;&lt;br /&gt;
 #include &amp;lt;guis/game/vehicles/gdf/cockpits.include&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 gui guis/vehicles/buggy_tute {&lt;br /&gt;
     properties {&lt;br /&gt;
         float flags = immediate( flags ) | GUI_FULLSCREEN;&lt;br /&gt;
     }&lt;br /&gt;
     materials {&lt;br /&gt;
         &amp;quot;icon&amp;quot;		&amp;quot;guis/assets/hud/vehicles/buggy_tute&amp;quot;&lt;br /&gt;
     }&lt;br /&gt;
     _class_icons&lt;br /&gt;
     _base_icon&lt;br /&gt;
     _hud_materials&lt;br /&gt;
     _position( 0, 1.5, 10 )&lt;br /&gt;
 }&lt;br /&gt;
&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next add the following key to the &amp;lt;tt&amp;gt;entityDef&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&amp;lt;tt&amp;gt;&lt;br /&gt;
     &amp;quot;gui_vehicle&amp;quot;                   &amp;quot;guis/vehicles/buggy_tute&amp;quot;&lt;br /&gt;
&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Vehicles]]&lt;br /&gt;
[[Category:Tutorials]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>192.168.0.129</name></author>
		
	</entry>
</feed>