Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
On mod "episodic" (Episode One):
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3478153926
On mod not specified by check in g_bUseLegacyFlashlight (a la, equivalent to "ep2" or any other mod):
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3478159786
For base HL2, trying to get the Ep2 flashlight working is simply not possible in the form of a Workshop mod, as you would need to modify and rebuild the SDK code to remove the #ifdefs for HL2_EPISODIC in hud_flashlight.cpp function CHudFlashlight::Paint().
In lines 56-58[github.com]:
In lines 105-162[github.com]:
You'll also have to remove additional HL2_EPISODIC ifdefs for property values and handling code related to the Ep2 flashlight variables m_flFlashBattery and m_vecLocatorOrigin in hl2_player.cpp, c_hl2_playerlocaldata.cpp (lines 32/33, 62/65), hl2_playerlocaldata.cpp (lines 37/40, 57/60, 78/80) and flashlighteffect.cpp (lines 271-317).