<?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=Dual_Objectives</id>
	<title>Dual Objectives - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.splashdamage.com/index.php?action=history&amp;feed=atom&amp;title=Dual_Objectives"/>
	<link rel="alternate" type="text/html" href="https://wiki.splashdamage.com/index.php?title=Dual_Objectives&amp;action=history"/>
	<updated>2026-04-07T12:35:08Z</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=Dual_Objectives&amp;diff=4139&amp;oldid=prev</id>
		<title>192.168.0.151 at 17:12, 11 August 2008</title>
		<link rel="alternate" type="text/html" href="https://wiki.splashdamage.com/index.php?title=Dual_Objectives&amp;diff=4139&amp;oldid=prev"/>
		<updated>2008-08-11T17:12:24Z</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;The map 'Radar' has the Allies trying to steal 2 experimental radar parts from the Axis base and delivering them to a waiting truck. This is a dual objective map created with a few entities and some scripting. &lt;br /&gt;
&lt;br /&gt;
The command map can be 256 pixels square up to 1024 in size, the game will resize the image regardless. The command map picture (stored as a .tga) has to be created externally by a paint program of your choice. The grid size and co-ordinates are worked out from the min/max keys in the worldspawn entity for the map.&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
|&lt;br /&gt;
[[Image:dualobj_1.jpg]]&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
The radar dish is a &amp;lt;span class=&amp;quot;code&amp;quot;&amp;gt;misc_gamemodel&amp;lt;/span&amp;gt; entity with special animations for the dish rotation and fold up/down. The dish is metal clipped as close as possible to the fold down animation and a big player clip is put around the whole dish.&lt;br /&gt;
&lt;br /&gt;
The radar box is a &amp;lt;span class=&amp;quot;code&amp;quot;&amp;gt;team_CTF_redflag&amp;lt;/span&amp;gt; entity with a custom model. The radar dish is surrounded with a &amp;lt;span class=&amp;quot;code&amp;quot;&amp;gt;trigger_objective_info&amp;lt;/span&amp;gt; brushwork entity that targets a &amp;lt;span class=&amp;quot;code&amp;quot;&amp;gt;misc_commandmap_marker&amp;lt;/span&amp;gt; entity.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
[[Image:dualobj_2.jpg]]&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
The truck is a &amp;lt;span class=&amp;quot;code&amp;quot;&amp;gt;misc_gamemodel&amp;lt;/span&amp;gt; entity. The radar boxes exist in two states in the back of the truck. One version is the standard model skin and the other one is a red coloured transparent shader.&lt;br /&gt;
&lt;br /&gt;
The back of the truck has a brushwork &amp;lt;span class=&amp;quot;code&amp;quot;&amp;gt;trigger_flagonly_multiple&amp;lt;/span&amp;gt; entity which is setup to receive only red flags. (The stolen radar parts)&lt;br /&gt;
&lt;br /&gt;
The whole of the truck is surrounded with a &amp;lt;span class=&amp;quot;code&amp;quot;&amp;gt;trigger_objective_info&amp;lt;/span&amp;gt; brushwork entity that targets a &amp;lt;span class=&amp;quot;code&amp;quot;&amp;gt;misc_commandmap_marker&amp;lt;/span&amp;gt; entity.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Scripting=== &lt;br /&gt;
&lt;br /&gt;
The script is controlled by the two radar boxes (objectives). The &amp;lt;span class=&amp;quot;code&amp;quot;&amp;gt;team_CTF_redflag&amp;lt;/span&amp;gt; entity has 3 special functions: 'trigger stolen', 'trigger returned' and 'trigger captured'.&lt;br /&gt;
&lt;br /&gt;
When the player touches the &amp;lt;span class=&amp;quot;code&amp;quot;&amp;gt;team_CTF_redflag&amp;lt;/span&amp;gt; entity the game will call the function 'trigger stolen'. The script will make the radar box model by the radar dish invisible and fold down the radar dish model.&lt;br /&gt;
&lt;br /&gt;
If the player is killed and the opposite team touches the fallen radar box the game will call the function 'trigger returned'. The script will make the radar box model by the radar dish solid again and fold up the radar dish model.&lt;br /&gt;
&lt;br /&gt;
When the player touches the &amp;lt;span class=&amp;quot;code&amp;quot;&amp;gt;trigger_flagonly_multiple&amp;lt;/span&amp;gt; entity with the correct flag type the game calls the function 'death'. The script sets the map objective counter and checks if the game is finished or not. (It's certainly possible to have more than 2 objective flags)&lt;br /&gt;
&lt;br /&gt;
The game also calls the function 'trigger captured' for the &amp;lt;span class=&amp;quot;code&amp;quot;&amp;gt;team_CTF_redflag&amp;lt;/span&amp;gt; entity. The script will switch the radar boxes in the back of the truck. (Each radar box in the back of truck has a red transparent and solid version as a visual clue to the players)&lt;br /&gt;
&lt;br /&gt;
[[Category:WET Documentation]]&lt;/div&gt;</summary>
		<author><name>192.168.0.151</name></author>
		
	</entry>
</feed>