Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trigger Happy buff indicator not shown for Akimbo pistols #50

Open
AmperAndSand opened this issue Jun 8, 2017 · 0 comments
Open

Trigger Happy buff indicator not shown for Akimbo pistols #50

AmperAndSand opened this issue Jun 8, 2017 · 0 comments

Comments

@AmperAndSand
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant