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

bxt_hud_weapon_cooldown #324

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

Eddio0141
Copy link
Contributor

@Eddio0141 Eddio0141 commented Jul 26, 2022

bxt_hud_weapon_cooldown to show weapon cooldown information.

I'm still trying to figure out 2 things

  • I don't know what the offset of this and this is about, or if there is a better way to getting player's active item.
  • Some weapons in half life echoes work but some doesn't such as the shotgun. Weapons spawned by impulse 101 works fine. Still haven't figured out a way to fix this.

I'd appreciate any help.

return;

auto* gauss = pEngfuncs->pfnFindEntityByString(nullptr, "classname", "weapon_gauss");
if (gauss && pEngfuncs->pfnEntOffsetOfPEntity(gauss) && !std::strcmp(HwDLL::GetInstance().ppGlobals->pStringBase + activeItem->v.classname, "weapon_gauss")) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, what if there's a weapon_gauss on the floor but the player also has a weapon_gauss?

BunnymodXT/hud_custom.cpp Outdated Show resolved Hide resolved
@Eddio0141
Copy link
Contributor Author

Made it so its right below the timer since the cooldown hud can grow downwards

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

Successfully merging this pull request may close these issues.

2 participants