2.3.1 Smashable fences, made by Econobrick


Adding Smashable Materials to your track

There are many types of smashable materials, but I only know how to do fences and glass, so that's what we'll cover here!

1. Your Track first has to be preprocessed (see "preprocessing")
2. Open Your Track's text file
3. Look for "// Smashable environment specs"
4. Under this, there will be a "0", change this number to the number of smashable materials you plan to have
5. Paste the following in (This is just for one material, paste it for however many materials you specified.)


For Fences... (Start copying at "// Start of smashable item")
// Start of smashable item
0					// Flags
[Enter Material Name here]	   	// Name of trigger material
texturechange				// Mode
[Enter fence texture Name here]		// Intact pixelmap
1					// Number of levels
.5					// Trigger threshold
0					// Flags
passthrough     			// Collision type solid edge
	// Connotations:
	1			// number of possible sounds
	4202
	1			// Shrapnel count
		ghostparts		// Shrapnel type
		0,0			// Min, max towards you speed
		0.6			// Impactee velocity factor
		0.7			// Random velocity (max)
		1			// Random up velocity (max)
		0			// Random normal velocity (max)
		6.0			// Random spin rate (max)
		actorbased		
		1.5,2.5			// Min time, Max time
		-1			// count
		-1
		fence_smsh.act		// Shrapnel actor
	0			// Explosion size
	none			// Slick material
	0			// Number of non-cars activated
	0			// Radius of side-effect smashes
	0			// Extensions flags
	0			// Room turn on code
	none			// Award code
	0			// No run-time variable changes

1					// Number of pixelmap
[Enter broken fence Name here]		// Pixelmap - waiting for Russ to name

0					// Reserved 1
0					// Reserved 2
0					// Reserved 3
0					// Reserved 4
(Stop copying at "reserved 4")

6. Fences require an additional file. Open any "NEWCITY" TWT file and copy these files from there.
- "Fence_smsh.act"
- "Fence_smsh.dat"
- "Fence_smsh.mat"
7. Put those files in folder for your track (eg: D:\Carma2\Data\Races\MyTrack)

That's all!

2.2 Checkpoints Back to index 2.3.2 Smashable glass