worldspawn: set 'gametitle' serverinfo when applicable
This commit is contained in:
parent
2dbfeb06b6
commit
7420df0ec6
1 changed files with 7 additions and 1 deletions
|
@ -61,6 +61,7 @@ public:
|
||||||
private:
|
private:
|
||||||
string m_strSkyName;
|
string m_strSkyName;
|
||||||
bool m_bStartDark;
|
bool m_bStartDark;
|
||||||
|
bool m_bGameTitle;
|
||||||
string m_strChapterTitle;
|
string m_strChapterTitle;
|
||||||
string m_strAmbientSound;
|
string m_strAmbientSound;
|
||||||
string m_strBGMTrack;
|
string m_strBGMTrack;
|
||||||
|
@ -139,6 +140,7 @@ worldspawn::Spawned(void)
|
||||||
forceinfokey(world, "chaptertitle", m_strChapterTitle);
|
forceinfokey(world, "chaptertitle", m_strChapterTitle);
|
||||||
forceinfokey(world, "ambientsound", m_strAmbientSound);
|
forceinfokey(world, "ambientsound", m_strAmbientSound);
|
||||||
forceinfokey(world, "bgm", m_strBGMTrack);
|
forceinfokey(world, "bgm", m_strBGMTrack);
|
||||||
|
forceinfokey(world, "gametitle", ftos(m_bGameTitle));
|
||||||
|
|
||||||
if (m_bHDREnabled) {
|
if (m_bHDREnabled) {
|
||||||
forceinfokey(world, "hdr_iris_minvalue", ftos(m_flHDRIrisMinValue));
|
forceinfokey(world, "hdr_iris_minvalue", ftos(m_flHDRIrisMinValue));
|
||||||
|
@ -173,6 +175,9 @@ worldspawn::SpawnKey(string strKey, string strValue)
|
||||||
case "ambientsound":
|
case "ambientsound":
|
||||||
m_strAmbientSound = ReadString(strValue);
|
m_strAmbientSound = ReadString(strValue);
|
||||||
break;
|
break;
|
||||||
|
case "gametitle":
|
||||||
|
m_bGameTitle = ReadBool(strValue);
|
||||||
|
break;
|
||||||
/* Household Death */
|
/* Household Death */
|
||||||
case "_bgm":
|
case "_bgm":
|
||||||
m_strBGMTrack = ReadString(strValue);
|
m_strBGMTrack = ReadString(strValue);
|
||||||
|
@ -225,8 +230,9 @@ WorldSpawn_Init(void)
|
||||||
float hdrFadeDown = serverkeyfloat("hdr_iris_fade_down");
|
float hdrFadeDown = serverkeyfloat("hdr_iris_fade_down");
|
||||||
bool hdrEnabled = serverkeyfloat("hdr");
|
bool hdrEnabled = serverkeyfloat("hdr");
|
||||||
|
|
||||||
if (startDark == true)
|
if (startDark == true) {
|
||||||
Fade_StartDark();
|
Fade_StartDark();
|
||||||
|
}
|
||||||
|
|
||||||
if (chapterTitle) {
|
if (chapterTitle) {
|
||||||
GameMessage_Setup(chapterTitle, 0);
|
GameMessage_Setup(chapterTitle, 0);
|
||||||
|
|
Loading…
Reference in a new issue