mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2024-12-25 14:25:32 +03:00
Fix AE_ZOMBIE_POPHEADCRAB using inaccurate headcrab release position
This commit is contained in:
parent
14675578a8
commit
8b7c6952ba
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user