-
Notifications
You must be signed in to change notification settings - Fork 2
Home
Due to the nature of the upcoming update of my CSM and many questions about the installation, I created this guide. It will help to add my CSM to your modification.
First of all, you should know that my CSM is for Mapbase 7.x and is not guaranteed to work on other versions of the source code. Also download Visual Studio 2013 and Mapbase's source code to add my CSM. You HAVE to do it to use my CSM.
If you will have problems like "Visual Studio 2013 asks me to register it with a code that I don't have", don't worry, you need to have Visual Studio 2013 only for some .exe files that he will download with himself. You can use Visual Studio 2019 with MSVC that are free to use my CSM and source code at all.
-
Copy
server
andclient
folders tosp|mp/src/game
folder. -
Go to
server
folder and findserver_base.vpc
. Open it with any text editor and add$Include "$SRCDIR\game\server\csm.vpc"
after$Include "$SRCDIR\game\server\server_mapbase.vpc"
-
Go to
client
folder and findclient_base.vpc
. Open it with any text editor and add$Include "$SRCDIR\game\client\csm.vpc"
after$Include "$SRCDIR\game\client\client_mapbase.vpc"
-
Go back to src folder and launch
creategameprojects.bat
and in you folder will appear filegames.sln
. If its not, probably you don't haveVS 2013
installed. -
Open
games.sln
withVS 2013
orVS 2019
. -
In right side you probably can find
Client[HL2]
Client[Episodic]
Server[HL2]
Server[Episodic]
. -
Hold
CTRL
button on your keyboard and click onClient[Which hl2 game your mod based on]
andServer[Which hl2 game your mod based on]
, right click ->Build
. -
After some time you will get .dll files, but you need to find them. Go to
game
folder that are IN THE SAME FOLDER WITHsrc
, go tomod_(hl2 or episodic)/bin
. Copy and paste it inbin
folder in your mod.
- Copy
materials
folder from my repository to your mod. - Go to your steam library folder and in
Source SDK Base 2013 (Multiplayer or Singleplayer)
go tobin
, copy filefgd/csm.fgd
from my repository to thisbin
folder. - Find halflife2.fgd, open it with any text editor, and add
@include "csm.fgd"
at the end of the file.
How restart your Hammer and you will have env_cascade_light
entity. How to use it? Maybe i will tell later.