Skip to content

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?

@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