CSM to a Source Mod
About CSM
Detailed Explanation of what CSM is can be located here
Overview
this will be a detailed guide on how to implement celisej567's version of CSM since the guide on their GitHub repository is not detailed and is hard to follow
How to implement
- you must use Mapbase 7.x source code only else the CSM will not work
- after downloading Mapbase src copy the server and client folders from the repository to your own computer, the files inside have to be moved to your sp|mp/game/ directory
- go to your server directory and open server_base.vpc with any text editor and add $Include "$SRCDIR\game\server\csm.vpc" after the line $Include "$SRCDIR\game\server\server_mapbase.vpc" if you can not find this file place $Include "$SRCDIR\game\server\csm.vpc" near where most vpc files are
- now go to the client directory and open client_base.vpc and add the line $Include "$SRCDIR\game\client\csm.vpc" after $Include "$SRCDIR\game\client\client_mapbase.vpc" if you can not find this line please add $Include "$SRCDIR\game\client\csm.vpc" where most .vpc files are listed
- go back to your src directory and launch the creategameprojects.bat and compile your source mod
- Copy materials folder from the repository to the compiled mod
- open Steam library folder (C:\Program Files (x86)\Steam\steamapps\common\) and in Source SDK Base 2013 (Multiplayer or Singleplayer) folder go to bin and copy the fgd/csm.fgd from the repository to the bin folder
- find the halflife2.fgd file and open it with any text editor, and add @include "csm.fgd" at the end of the file
- Now restart hammer and you will have the env_cascade_light entity