Create a file on UserData/Scripts/Modes/Trackmania/collisions.Script.txt
, with the content on file linked with this gist
Then you need to edit your matchsettings file like this :
<playlist>
<gameinfos>
<script_name>Trackmania/collisions.Script.txt</script_name>
</gameinfos>