CSM to a Source Mod

From Valve Developer Community
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

  1. You must use Mapbase Mapbase 7.x source code only, otherwise CSM will not work.[Why?]
  2. After downloading Mapbase 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.
  3. 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".
  4. 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".
  5. Go back to your source directory and launch the creategameprojects.bat.
  6. Copy materials folder from the repository to the compiled mod.
  7. 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.
  8. Find the halflife2.fgd file and open it with any text editor, adding the line @include "csm.fgd" to the end of the file
  9. Now restart Hammer, and you will have the env_cascade_light entity available