Skip to content

Conversation

Blixibon
Copy link
Member

@Blixibon Blixibon commented Jan 5, 2024

This fixes problems with headcrab zombies not releasing their headcrabs properly when using serverside ragdolls. Previously, it used the direct origin of the newly created headcrab ragdoll gib, which isn't valid with serverside ragdolls. It would instead test a random position near the world origin which may or may not be clear. It would also show blood impacts at this location instead of near the zombie.

This adds a new parameter to the CNPC_BaseZombie::HeadcrabFits() function to accept a separate origin, and while this function is virtual, it does not appear to be overridden by any zombie class in HL2.


PR Checklist

  • My PR follows all guidelines in the CONTRIBUTING.md file
  • My PR targets a develop branch OR targets another branch with a specific goal in mind

Copy link

@1upD 1upD left a comment

Choose a reason for hiding this comment

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

LGTM

@Blixibon Blixibon merged commit 4e3f58f into mapbase-source:develop Feb 4, 2024
@Blixibon Blixibon deleted the mapbase/feature/zombie-serverside-headcrab-ragdoll-fixes branch February 4, 2024 21:24
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