Some help on programming for sdk 2013 Created 6 years ago2018-02-14 22:23:34 UTC by Themaster12234 Themaster12234

Created 6 years ago2018-02-14 22:23:34 UTC by Themaster12234 Themaster12234

Posted 6 years ago2018-02-14 22:23:34 UTC Post #338828
Hello everyone, I was trying to learn how source works, and in the source files I found some .cpp and .h files named team_control_point and etc.

I tried to make them work but I can't figure out how to setup them to work on the hl2dm source code.

Someone knows how to make them work?
Posted 6 years ago2018-02-15 10:39:12 UTC Post #338830
What did you try?
Posted 6 years ago2018-02-15 18:59:30 UTC Post #338835
Well, first I created a .fgd file with all the entities and put them on a map... didn't work, it was like they doesn't exist.

The other thing that I saw that in hl2_client.cpp there is something about gamerules, Its that I need to modify to make the control points work? Or I need to create my own gamerules? (And how you create that)
Posted 6 years ago2018-02-17 01:18:14 UTC Post #338844
You'll need to make sure that the team_control_point code is getting included by the .vpc files to generate the Visual Studio project files for the entity to appear.
You'll probably need to create new game rules that make use of the new entity (but if it's already in the Source SDK maybe there are existing game rules).

Have you done much programming before?
Posted 6 years ago2018-02-17 02:02:15 UTC Post #338845
I saw a lot of tutorials about programming on c++, I have a teacher that teach me c# on unity. I always wanted to do something on the source engine, It's a bit difficult but everytime I open the sdk solutions I learn more.

Today I found were the gamerules are located and I found a file called teamplayroundbased_gamerules.cpp and has the control points headers files on the includes part, the problem is that I don't cant make it work when I include it on the hl2mp_game.cpp the game just crashes.

Well it seems that I need to keep looking... I donwloaded the tf2c src files to look how tf setup the control points and the gamemode.
Posted 6 years ago2018-02-17 21:59:14 UTC Post #338849
If you get a crash then look in Steam/dumps for .mdmp file - you can open these files in Visual Studio to see where the crash is.
You must be logged in to post a response.