Skip to content

Commit

Permalink
Fix AE_ZOMBIE_POPHEADCRAB using inaccurate headcrab release position
Browse files Browse the repository at this point in the history
  • Loading branch information
Blixibon committed Jan 5, 2024
1 parent 1467557 commit 8b7c695
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sp/src/game/server/hl2/npc_BaseZombie.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1745,7 +1745,11 @@ void CNPC_BaseZombie::HandleAnimEvent( animevent_t *pEvent )

dmgInfo.SetDamagePosition( vecHeadCrabPosition );

#ifdef MAPBASE
ReleaseHeadcrab( vecHeadCrabPosition, vVelocity *iSpeed, true, false, true );
#else
ReleaseHeadcrab( EyePosition(), vVelocity * iSpeed, true, false, true );
#endif

GuessDamageForce( &dmgInfo, vVelocity, vecHeadCrabPosition, 0.5f );
TakeDamage( dmgInfo );
Expand Down

0 comments on commit 8b7c695

Please sign in to comment.