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

[They Hunger] Medkit weapon icon is not displayed on first time pickup. #132

Closed
malortie opened this issue Aug 12, 2020 · 1 comment
Closed

Comments

@malortie
Copy link
Contributor

Most of the Half-Life weapons display a weapon pickup icon when they are picked up for the first time.

In the original They Hunger, the medkit weapon displays a pickup icon.

In the crossplatform release of They Hunger, the medkit weapon does not display the pickup icon.

Steps to reproduce

In the console, type the following commands:

sv_cheats 1
map t0a0
give item_suit
give weapon_th_medkit

Expected behavior: Medkit weapon pickup icon shows up
Actual behavior: No weapon pickup icon is displayed

Possible solution

The missing behavior would probably have the following form in code:

int CWeaponEinarMedkit::AddToPlayer( CBasePlayer *pPlayer )
{
	if( CBasePlayerWeapon::AddToPlayer( pPlayer ) )
	{
		MESSAGE_BEGIN( MSG_ONE, gmsgWeapPickup, NULL, pPlayer->pev );
			WRITE_BYTE( m_iId );
		MESSAGE_END();
		return TRUE;
	}
	return FALSE;
}
nekonomicon added a commit that referenced this issue Oct 11, 2020
@nekonomicon
Copy link
Member

Thanks! Fixed.

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

2 participants