I made a mistake, when looking at the version of A7 I using, I looked at about
in SED 7.06, instead of WED 7.07. Sorry about the confusion.

Ello:
This is the same as in the demo, except a few shaders were mistakenly set to be
compiled as VS 2.0 instead of 1.1.

Emre:
If you can not use Lite-c's "matViewProj", you can create this yourself like this.
Code:
  
//REPLACE THIS LINE
mat_set(mtlSpotlit.matrix,matViewProj); // store the transformation matrix to the material

//WITH THIS CODE
float my_matVP[16] = { 0.0, 0.0, 0.0, 0.0, 0.0,0.0,0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };
mat_set(my_matVP,matView);
mat_multiply(my_matVP,matProj);
mat_set(mtlSpotlit.matrix,my_matVP);



Otherwise, it would be very hard to write this in C-Script (I know I said you
could), because c-script dosent support materials for views.

Helghast:
Yeah that is strange! To try a smaller resolution shadowmap, just change
bmap = "#1024x1024x14"; to
bmap = "#512x512x14"; or
bmap = "#256x256x14";