Started from mapping questions, now we're at coding topics Half Life modding is indeed very addictive and fun. But less knowledge ruins it a little.
Anyway
In ev_hldm.cpp I wanted to check the room type, configured by the env_sound entity by using if(pPlayer->m_flSndRoomtype == <number>) { ... }. It can be found and called in player.h which calls the main function in sound.cpp, though there is no header for sound (sound.h). Then I included player.h in ev_hldm.cpp. When compiling, it gives errors in player.h. There are 170+ errors. I see that most cpp's have included player.h . I really can't explain further... any solution? If there is explain it to me please.