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

Fix taser csgo #71

Closed
wants to merge 3 commits into from
Closed

Fix taser csgo #71

wants to merge 3 commits into from

Conversation

shanapu
Copy link
Contributor

@shanapu shanapu commented Apr 10, 2017

This PR fix the weapon striping in csgo when a player got an taser. In csgo taser & knife share the knife slot. hosties strips this slot only once. This PR fix this. stupid me used for this fix the same branch as for PR #60. So ignore the commits from Oct. and when like the change implement commit https://github.com/shanapu/sm-hosties/commit/952845abb763bf02463d76a31d04c5342b5395bc for yourself.

shanapu and others added 3 commits October 21, 2016 04:47
@data-bomb
Copy link
Collaborator

Good initiative, but let's fix this for the next time instead of adding the bandaid for the taser situation. What about something like this? So if they double another slot it should help. It would need testing with a full complement of grenades to see what happens.

int wepIdx;
for (int i = CS_SLOT_PRIMARY; i < CS_SLOT_GRENADE+1; i++)
{
	while ((wepIdx = GetPlayerWeaponSlot(client, i)) != -1)
	{
		RemovePlayerItem(client, wepIdx);
		AcceptEntityInput(wepIdx, "Kill");
	}
}

@data-bomb data-bomb added the bug label Apr 12, 2017
@data-bomb data-bomb self-requested a review July 23, 2017 19:09
@data-bomb
Copy link
Collaborator

Duplicate of #74

@data-bomb data-bomb marked this as a duplicate of #74 Jul 24, 2017
@data-bomb data-bomb closed this Jul 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants