Damage Display MOD Fixed and Enhanced
Добавить в игру через Steam
Нажмите «Подписаться»
На странице Steam войдите в аккаунт, если потребуется.
Подписаться
О материале
«Damage Display MOD Fixed and Enhanced» — материал мастерской Left 4 Dead 2. Кампании, оружие, модели и аддоны для кооперативной игры. Данные Steam, описание автора и ссылка для установки через подписку. Совместимость редакцией не проверена.
Описание автора
Fixes and New Features:
Bug Fixes:
- Fixed the bug where two lines ("Hit", "Kill") were displayed when a small zombie was killed.
- Fixed the bug where the first shot of a Witch would show no health loss (even though it had already been damaged, the first damage was calculated incorrectly).
- Fixed some potential conflicts caused by event binding clashes.
- Fixed the issue where a TANK’s health wouldn’t reset to 0 when it falls.
- Special health bars now handle values exceeding 32768.
- Rewrote the code structure, removed the use of
entfirefor mounting additional files, preventing issues where certain events wouldn't trigger, causing mounting failures.
Function Optimizations:
-
Style Optimization:
Updated the health bar style so that the remaining health and lost health are displayed using monospaced characters, ensuring that the length of the health bar doesn’t change during the health transition. -
Real-time Health Bars:
Previously, the script only updated health bar data when the player attacked a special infected. For example, when Player A hits a Tank for 2000 health, and Player B hits it for 1000, Player A wouldn’t know the current health of the Tank unless they attacked it again.
In this new script, it records the last player who attacked the special infected. When that infected receives damage, all players who attacked it will see the updated health in real-time. Data is cleared after a kill. -
Health Bars for Jimmy and Fallen Survivors:
These two are special; they don’t die from headshots. This creates a bit of a challenge in the code logic, and as a result, an extra line will appear for damage display. Therefore, they’re directly treated as special infected with health bars.
The health bars for Jimmy and Fallen Survivors cannot exceed 32768, mainly because I couldn’t find an event to listen for their spawn. However, it’s rare for servers to handle them in this way.
New Features:
-
Display Modes: [Default: 0]
Some players feel that the display is too cluttered. Four display modes are provided, and you can toggle between them using the command!cp 0/1/2/3in the chat. The setting will persist after switching.- 0: Full Mode (Shows hit, kill, and damage values)
- 1: Text Mode (Shows only hit and kill)
- 2: Kill Only Mode (Shows only kills)
- 3: Single Line Mode (Shows only kills and condenses them to a single line, while others show multiple lines)
-
Language Toggle: [Default: 0]
Language switching has always been a feature. Use!cl 0/1to switch between Chinese and English. The switch will be permanent after toggling.- 0: Chinese
- 1: English
-
Kill Counter: [Default Delay: 3]
Kills will now show as "+n" after the text, with a default kill streak delay of 3 seconds.
You can adjust the kill streak reset delay by typing!cd xin the chat, where x is the delay time in seconds. -
Line Count Setting: [Default: 4]
You can modify the number of lines displayed by typing!cm xin the chat, which is effective in multi-line mode.- Minimum of 1 line. If you don’t want any lines, use “Health Bar Toggle”.
- Maximum of 9 lines. Going beyond 9 lines will cause the text length to exceed 255 characters, resulting in failure.
-
Health Bar Toggle: [Default: 3]
You can now type!cb 0/1/2/3in the chat to independently control the visibility of the small zombie kills and special infected health bars.- 0: All Off
- 1: Show small zombie kills
- 2: Show special infected health bars
- 3: Show both
-
Delay Setting for Maximum Health: [Default Delay: -1] This feature is designed for certain plugins that dynamically modify the maximum health of Special Infected, as these plugins may prevent this mod from correctly reading the adjusted maximum health by default.
- ※※※ If your server can properly retrieve the maximum health of Special Infected, keep this setting as default. ※※※
- If your server fails to correctly obtain the maximum health of Special Infected, adjust the delay time (in seconds, decimals allowed) as needed to ensure this mod retrieves the value after the plugin modifies the health. Note: Setting the delay too long may result in retrieving the health after the Special Infected has already taken damage. It is recommended to set it between 0.5 to 1 second.
[b] If you find that the mod isn’t working (especially after new features are released), try manually entering some or all of the configurations. You can also delete "xxx/left4dead2/ems/alpha/idd/config.txt," and the settings will be automatically reset when the game starts. [b]
Feel free to leave any bug reports or suggestions in the comment section. I will make updates over the weekend or when I have free time.
Original Work:
Steam Community Original Work Link
Thanks to the original creator and the original creator’s contributions!
Date: April 23, 2025
Как установить и запустить
Откройте оригинальную страницу в Steam Workshop, проверьте версию игры, зависимости и порядок загрузки в описании автора. Нажмите «Подписаться» и дождитесь загрузки Steam. Включите материал в меню модификаций или контента игры, если это требуется. Совместимость и запуск редакцией не проверены.