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

Add weapon type check before infection & Fix nade cooking issues #85

Merged
merged 4 commits into from
Oct 31, 2023

Conversation

Faramour
Copy link
Collaborator

@Faramour Faramour commented Oct 30, 2023

PR fixes issues which popped up during tests:

  • There's no weapon type check happening before/during infection, meaning that if zombies
    could somehow damage humans with other means than a knife, that damage would infect humans
  • When you get infected while cooking a grenade, you continue to hold that grenade after re-spawning as a zombie,
    which bypasses the utility killing inside OnItemEquip and lets zombies throw a grenade
  • When you get infected while cooking a grenade, you drop that grenade, which then will hurt humans as the owner of the grenade is now a zombie

@Hichatu Hichatu merged commit 8fcb6f4 into Source2ZE:main Oct 31, 2023
1 check passed
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