Donut Team is a labor of love, built and maintained by a small group of passionate developers. We invest our own time and resources to offer our tools, mods, and web services completely free of charge.

We don't run ads, and we will never sell your data - period.

If you've enjoyed anything we've created, please consider supporting our work with a one-time or monthly donation via our Ko-fi page . Every contribution helps us continue building great experiences for the community.

Dismiss
  • Modding Tools
  • Lucas' Simpsons Hit & Run Mod Launcher
  • Hacks
  • Mod Requirable Hacks

Custom Road Behaviour

Available since Version 1.16.

This hack must be required by a mod to be enabled.

This hack allows mods to define custom behaviour for specific roads.

Requiring This Hack

To require this hack, add this line to your mod's Meta.ini:

RequiredHack=CustomRoadBehaviour

Your mod must provide a configuration file when requiring this hack.

Configuring This Hack

To configure this hack, create a file named CustomRoadBehaviour.xml and add the parameters necessary for your mod inside it.

<?xml version="1.0" encoding="utf-8"?>
<CustomRoadBehaviour>
	<!--
		
	<Behaviour>
		Name: The name of the behaviour.
			UTurnTolerance
			DisableTrafficGroundSnapping
		Value: The value to give the behaviour.
	
	<Level>
		Index: The index of the level. 0-6.
		 OR
		Number: The number of the level. 1-7.
	
		<Road>
			Name: The name of the road.
	
	-->

	<Level Number="1">
		<Behaviour Name="UTurnTolerance" Value="0.10" />
		
		<!-- Bridge Roads by the School in Road Rage Returns -->
		<Road Name="R031">
			<Behaviour Name="DisableTrafficGroundSnapping" Value="true" />
		</Road>
		<Road Name="R032">
			<Behaviour Name="DisableTrafficGroundSnapping" Value="true" />
		</Road>
	</Level>
</CustomRoadBehaviour>

Version History

Version 1.22

Added support for a Number attribute on <Level> elements.