<?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_Route_Constraint_System</id>
	<title>Vehicle Route Constraint System - 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_Route_Constraint_System"/>
	<link rel="alternate" type="text/html" href="https://wiki.splashdamage.com/index.php?title=Vehicle_Route_Constraint_System&amp;action=history"/>
	<updated>2026-04-07T23:44:24Z</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_Route_Constraint_System&amp;diff=3371&amp;oldid=prev</id>
		<title>Ducks: Batch update</title>
		<link rel="alternate" type="text/html" href="https://wiki.splashdamage.com/index.php?title=Vehicle_Route_Constraint_System&amp;diff=3371&amp;oldid=prev"/>
		<updated>2007-11-21T15:33:20Z</updated>

		<summary type="html">&lt;p&gt;Batch update&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Overview ==&lt;br /&gt;
&lt;br /&gt;
The main two entities involved in the vehicle route constraint system are:&lt;br /&gt;
&lt;br /&gt;
* [[Entity vehicle_route_constraint_controller|vehicle_route_constraint_controller]]&lt;br /&gt;
* [[Entity vehicle_route_constraint_marker|vehicle_route_constraint_marker]]&lt;br /&gt;
&lt;br /&gt;
Constraints:&lt;br /&gt;
&lt;br /&gt;
*You need one controller per route, and 1 or more markers per route.&lt;br /&gt;
*You may only have one start point, and one end point. &lt;br /&gt;
*You may not have any loops in the route.&lt;br /&gt;
&lt;br /&gt;
== Markers ==&lt;br /&gt;
*To connect the markers together, use {{accelkey|ctrl}}{{accelkey|k}} as usual.&lt;br /&gt;
*Position markers 32 units off the ground, about 1024 units apart (more is ok, try not to go less). The precision cursor ({{accelkey|F11}}) is particularly useful for this.&lt;br /&gt;
*All the markers must also be linked to the contoller by setting a {{keyname|parent}} key to the name of the controller.&lt;br /&gt;
*To disable air drops on a point, set the {{keyname|no_air_drop}} key to  {{keyvalue|1}}. Use this for markers inside tunnels or under overhangs.&lt;br /&gt;
&lt;br /&gt;
== Controller ==&lt;br /&gt;
&lt;br /&gt;
*Set {{keyname|editor_unique}}{{keyvalue|1}} to make sure this entity is not renamed&lt;br /&gt;
*Set the mask to use on the {{keyname|mask}} key (see Playzone below).&lt;br /&gt;
*Set the number of points that will be considered a warning on the {{keyname|num_points_warning}} key. (Default: {{keyvalue|3}})&lt;br /&gt;
*Set the number of points that will be kick the player on the {{keyname|num_points_max}} key. (Default: {{keyvalue|6}})&lt;br /&gt;
*Set the model to use for the arrow on the {{keyname|model_directional}} key. (Default: {{keyvalue|models/guis/assets/arrow.lwo}})&lt;br /&gt;
*Set the skin to use on the arrow on the {{keyname|skin_direction_model}} key. (Default: {{keyvalue|deployEffect}}}&lt;br /&gt;
*Set the colour of the arrow on the {{keyname|directional_model_color}} key. (Default: {{keyvalue|0 1 0}})&lt;br /&gt;
&lt;br /&gt;
== Playzone ==&lt;br /&gt;
&lt;br /&gt;
* The mask is defined in an appropriate playzone (Default: {{keyname|mask_mcp_route}})&lt;br /&gt;
* Set {{keyname|mask_mcp_route}} at an {{filename|mcp_route.tga}} in the {{filename|masks/}} folder for your map (e.g. for Valley you'd use {{keyvalue|masks/valley/mcp_route.tga}})&lt;br /&gt;
* Add a key {{keyname|zone_vehicle_route}} with the value of {{keyvalue|1}} to the same playzone as the mask key&lt;br /&gt;
&lt;br /&gt;
== Debugging ==&lt;br /&gt;
&lt;br /&gt;
* {{consolecmd|g_drawRouteConstraints}} Set this to 1 to debug the route of the vehicle you are currently using, set it to 2 to debug paths being used by any vehicle.&lt;br /&gt;
** The green sphere is the best point reached by the vehicle&lt;br /&gt;
** The red box is the current point the vehicle is at.&lt;br /&gt;
** The blue sphere is the best point reached that is available for an air drop.&lt;br /&gt;
* {{consolecmd|g_noRouteConstraintKick}} Enables/disables the player being kicked for going the wrong way.&lt;br /&gt;
* {{consolecmd|g_noRouteMaskDestruction}} Enables/disables the MCP checking the mask position is valid.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
*An example map can be found at {{filename|base/maps/examples/routeconstraint.world}}&lt;br /&gt;
*An example script can be found at {{filename|base/script/maps/routeconstraint.script}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Level Design]] [[Category:Advanced Level Design]]&lt;/div&gt;</summary>
		<author><name>Ducks</name></author>
		
	</entry>
</feed>