CSM to a Source Mod
Jump to navigation
Jump to search
About CSM
Detailed Explanation of what CSM is can be located here
Overview
This guide will explain how to implement celisej567's version of CSM, since the guide on their repo isn't detailed and hard to follow
How to implement
- You must use
Mapbase 7.x source code only, otherwise CSM will not work.[Why?]
- After downloading
Mapbase source code, copy the server and client folders from the repository to your own computer, the files inside have to be moved to your (sp or mp)/game/ directory.
- Open server_base.vpc from the server directory with any text editor, and add $Include "$SRCDIR\game\server\csm.vpc" after the line that has $Include "$SRCDIR\game\server\server_mapbase.vpc".
- Open client_base.vpc from the client directory with any text editor, and add $Include "$SRCDIR\game\client\csm.vpc" after the line that has $Include "$SRCDIR\game\client\client_mapbase.vpc".
- Go back to your source directory and launch the creategameprojects.bat.
- Copy materials folder from the repository to the compiled mod.
- Open your steam library folder (usually
C:\Program Files (x86)\Steam\steamapps\common
), and in the Source SDK Base 2013 (Multiplayer or Singleplayer) folder, copy the file fgd/csm.fgd from the repository to the bin folder. - Find the halflife2.fgd file and open it with any text editor, adding the line @include "csm.fgd" to the end of the file
- Now restart Hammer, and you will have the env_cascade_light entity available