Here is the newest version of Port's footsteps with my edits:
http://www.mediafire.com/download/03uul6a3m51yn1y/Script_Footsteps.zip (Updated the file to include named brick footstep setting)
To modify footstep material based on the brick name, you have to add this tag anywhere in it:
fsm_material
This also lets you do things like this:
FooBar_fsm_tile OR fsm_tile_FooBar OR Foo_fsm_tile_Bar
So you can still differentiate the named bricks with their materials set.
EDIT: Another thing I remembered, but spaces in the brick name are automatically transformed into underscores. So you can just type
This is my special fsm tile
and it will work!
To modify footstep material based on color, you'd have to change this function. Numbers are the ID of the color based on colorset.
function getMaterial(%color)
{
switch (%color)
{
case 18 or 22 or 23 or 24 or 25 or 26 or 27 or 28 or 30 or 31 or 36 or 37 or 38: return "sand";
case 19 or 20 or 21 or 32 or 33 or 34: return "grass";
case 35: return "mud";
case 29 or 45 or 46 or 47 or 48 or 49 or 50: return "tile";
case 51: return "duct";
case 39 or 54 or 55 or 56 or 57 or 58 or 59 or 60: return "wood";
case 61 or 62: return "woodpanel";
}
return "concrete";
}
Alternatively, there are two other options:
You could set
$m = "concrete";
so that it ignores the colored brick picking completely and uses that material as default instead.
If you also want to use the "csgo" sounds included within the folder, you have to change this line of code:
|Line 252| %pattern = "Add-Ons/Script_Footsteps/sounds/*.wav";
change "sounds" to "sounds_csgo". The mod automatically creates materials based on found sounds.
This footstep mod supports "individual footsteps", meaning that if you walk right inbetween two bricks with different materials it will play the correct sounds based on your foot's location after the step.
It also has support for bloody footprints, although I have only released the new bloodcode with Mafia Madness Plus in the gamemodes section.