Are you refering to the following lines only..?
Just to make you aware of this biker, but the enviromental lighting method corresponding to global5==2 (the last part of the material definition using the shader program) is not used in TDM anymore.
if (global5 == 2) blend add program ambientEnvironment.vfp vertexParm 0 1, 1, 1, 1 // UV Scales for Diffuse and Bump vertexParm 1 1, 1, 1, 1 // (X,Y) UV Scale for specular vertexParm 2 global2, global3, global4, 1
This will effect every .mtr file in the mod - @Springs your thoughts..? I can do the work easily enough with notepad++