MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / InitDifficulties

Method InitDifficulties

engine/Poseidon/Core/Config/ConfigFunctions.cpp:41–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39};
40
41void Config::InitDifficulties()
42{
43 // Patch stringId fields now that IDS_* globals are initialized
44 diffDesc[0].stringId = IDS_DIFF_ARMOR;
45 diffDesc[1].stringId = IDS_DIFF_FRIENDLY_TAG;
46 diffDesc[2].stringId = IDS_DIFF_ENEMY_TAG;
47 diffDesc[3].stringId = IDS_DIFF_HUD;
48 diffDesc[4].stringId = IDS_DIFF_AUTO_SPOT;
49 diffDesc[5].stringId = IDS_DIFF_MAP;
50 diffDesc[6].stringId = IDS_DIFF_WEAPON_CURSOR;
51 diffDesc[7].stringId = IDS_DIFF_AUTO_GUIDE_AT;
52 diffDesc[8].stringId = IDS_DIFF_CLOCK_INDICATOR;
53 diffDesc[9].stringId = IDS_DIFF_3RD_PERSON_VIEW;
54 diffDesc[10].stringId = IDS_DIFF_TRACERS;
55 diffDesc[11].stringId = IDS_ULTRA_AI;
56
57 USER_CONFIG.InitDifficulties();
58 GChatList.Enable(true);
59}
60
61bool Config::IsEnabled(DifficultyType type)
62{

Callers 1

Calls 1

EnableMethod · 0.45

Tested by

no test coverage detected