-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Description
Akimbo pistols are set as 'akimbo' in weapon_tweak_data().categories[1] (primary category) and 'pistol' in weapon_tweak_data().categories[2] (sub-category). Currently, Pocohud only checks if a weapon is a 'pistol' in its primary category before showing the Trigger Happy buff indicator, which will not trigger for Akimbo pistols. Note that this has been an issue before references in weapon.category in weapontweakdata have been changed to weapon.categories[1] in U145.
Suggested fix @ https://github.com/zenyr/PocoHud3/blob/master/Hud3.lua#L1552 :
local weapon_category = weap_base:weapon_tweak_data().category
if managers.player:has_category_upgrade(weapon_category, "stacking_hit_damage_multiplier") then
should be something like:
local weapon_category = weap_base:weapon_tweak_data().categories[1]
local weapon_sub_category = weap_base:weapon_tweak_data().categories[2]
if managers.player:has_category_upgrade(weapon_category, "stacking_hit_damage_multiplier") or
(weapon_sub_category and managers.player:has_category_upgrade(weapon_sub_category , "stacking_hit_damage_multiplier") ) then
Metadata
Metadata
Assignees
Labels
No labels