Skip to content

Trigger Happy buff indicator not shown for Akimbo pistols #50

@AmperAndSand

Description

@AmperAndSand

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions