Left 4 Dead 2

Left 4 Dead 2

Not enough ratings
[fixed]Lose Temp Health Before Permanent Health [Commission]
   
Award
Favorite
Favorited
Unfavorite
Survivors: Survivors
Game Content: Campaigns, Items, Scripts
Game Modes: Co-op, Realism
Items: Medkit, Pills
File Size
Posted
12.564 KB
29 Oct @ 6:08am
1 Change Note ( view )

Subscribe to download
[fixed]Lose Temp Health Before Permanent Health [Commission]

Description
this is the original mod: https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3511239917
function: if you are hurt, the temp health will decline at first.your real health won't lose if you have temp health.
fixed bug:
1.
The original back attack judgment is implemented by calculating the dot product of the zombie's line-of-sight vector and the player's line-of-sight vector. Therefore, sometimes even if a zombie attacks you from behind, the final judgment may not recognize it as a back attack (meaning the 50% damage reduction is not applied) due to the erratic movement of the zombie's line of sight during the attack. This mod changes the calculation to use the dot product of the vector from your position to the zombie's position and the player's line-of-sight vector. As long as the zombie attacks you from behind, it will definitely be judged as a back attack, regardless of the zombie's line of sight.
2.
if you are hurt at the moment you finish using first aid pack, the first aid pack won't be ineffective.
3.
if you are hurt at the moment you finish using pills or adrenaline, they won't be ineffective.
you can try another corresponding mod of mine:
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3544482593

这是原版模组:https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3511239917
功能:在受到伤害时,你的虚血会先下降。如果你有虚血,你的实血不会下降。
修复的漏洞:
1.
原版的后背攻击判定是通过计算丧尸的视线向量与玩家的视线向量的点积来实现的。因此,有时即便丧尸是从背后攻击你,也可能因攻击时丧尸视线晃动,导致最终判定为非后背攻击(即无法享受 50% 减伤)。本模组将判定方式改为计算从你的位置到丧尸位置的向量与玩家视线向量的点积。只要丧尸是从背后攻击你,无论其视线如何,都会被判定为后背攻击。
2.
若你在刚用完急救包的瞬间受到伤害,急救包不会失效。
3.
若你在刚用完药片或肾上腺素的瞬间受到伤害,它们不会失效。
你可以尝试另一个我相适配的mod:
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3544482593
2 Comments
Moony 5 hours ago 
holy shit
skullmonkey 29 Oct @ 5:52pm 
holy shit