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
The issue however is, that there is no logical reason why some healing sources are excluded but others aren't. There are just checks missing at certain locations in the code.
Codewise you could say, Gambler effect happens from outside (the function to restore health is completely seperated from the actual player health / damage) while effects like Combat Medic or Hacker happen from inside (everything happens in the player health calculation)
Edit: Rechecked the code and my first assessment was a bit wrong; corrected it.
If you just want to check for any berserker, you have
If you decide to include combat medic, the only thing you need is basically
For hacker it is
I didn't even know tag team could trigger with berserker; to be fair noone seems to use it.
If you have an idea how to improve Berserker Live Matters, let me know.
And yes, Tag Team does trigger with Berserker if you don't have BLM.
I'll give the codes a go once I figure out what file(s) they need to hook into and get them installed on my mod.
Edit: Pretty sure the Combat Medic blocker is PlayerDamage and Feedback Heal on Kill is PlayerManager. Not 100% sure. Still need TT's code.
Edit 2: Feedback Heal on Kill doesn't work. Not sure if I need to somehow assign the managers.player code or not, but either way it doesn't work under PlayerManager.
FATAL ERROR: (c:\users\znix\source\repos\superblt\src\initiatestate.cpp:285) mods/Sprite's All-in-One Rebalance/PlyrMngr.lua:3: attempt to index global 'PlayerInventory' (a nil value)
stack traceback:
mods/Sprite's All-in-One Rebalance/PlyrMngr.lua:3: in main chunk
[C]: in function 'dofile'
mods/base/base.lua:130: in function 'RunHookFile'
mods/base/base.lua:122: in function 'RunHookTable'
mods/base/base.lua:152: in function 'OrigRequire'
mods/BeardLib/Core.lua:215: in function 'require'
[string "lib/setups/setup.lua"]:65: in main chunk
[C]: in function 'require'
mods/base/base.lua:151: in function 'OrigRequire'
mods/BeardLib/Core.lua:215: in function 'require'
[string "lib/setups/menusetup.lua"]:1: in main chunk
[C]: in function 'require'
mods/base/base.lua:151: in function 'OrigRequire'
mods/BeardLib/Core.lua:215: in function 'require'
[string "lib/entry.lua"]:8: in main chunk
[C]: in function 'require'
mods/base/base.lua:151: in function 'OrigRequire'
mods/BeardLib/Core.lua:215: in function 'require'
[string "core/lib/coreentry.lua"]:19: in main chunk
Tag team is in lib/player_actions/skills/playeractiontagteam
This should work; I haven't tested it though:
1. Tag Team code does not work. At all. It still heals through Berserker.
2. Hacker code causes a crash upon killing an enemy with the following log:
Application has crashed: C++ exception
mods/Sprite's All-in-One Rebalance/HackerBlocker.lua:3: attempt to call global 'old_feedback_heal_on_kill' (a nil value)
SCRIPT STACK
the_fixes_notify_now_by_added_message() @mods/The Fixes/messagesystem.lua:9
on_killshot() @mods/The Fixes/playermanager.lua:23
chk_killshot() lib/units/enemies/cop/copdamage.lua:2434
original_function() lib/units/enemies/cop/copdamage.lua:518
damage_bullet() @mods/Enhanced Hitmarkers/lua/copdamage.lua:20
give_impact_damage() lib/units/weapons/raycastweaponbase.lua:2223
on_collision() lib/units/weapons/raycastweaponbase.lua:2136
_fire_raycast() lib/units/weapons/raycastweaponbase.lua:695
fire() lib/units/weapons/raycastweaponbase.lua:468
fire() @mods/BeardLib/Hooks/Fixes.lua:194
callback() lib/units/weapons/akimboweaponbase.lua:129
lib/units/weapons/akimboweaponbase.lua:19
-------------------------------
Callstack:
payday2_win32_release (???) ???
payday2_win32_release (???) zip_get_name
payday2_win32_release (???) zip_get_name
If tag team does not crash, it should work; note that I only overwrote the healing if you are the one getting tagged, not if you do the tagging.
And yes, they had both Berserker and Frenzy.
I'll try this new code out. I don't fully understand putting in fresh code right now. I mostly just know of manipulating current, existing code.