mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-01-13 15:27:56 +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 );
|
dmgInfo.SetDamagePosition( vecHeadCrabPosition );
|
||||||
|
|
||||||
|
#ifdef MAPBASE
|
||||||
|
ReleaseHeadcrab( vecHeadCrabPosition, vVelocity *iSpeed, true, false, true );
|
||||||
|
#else
|
||||||
ReleaseHeadcrab( EyePosition(), vVelocity * iSpeed, true, false, true );
|
ReleaseHeadcrab( EyePosition(), vVelocity * iSpeed, true, false, true );
|
||||||
|
#endif
|
||||||
|
|
||||||
GuessDamageForce( &dmgInfo, vVelocity, vecHeadCrabPosition, 0.5f );
|
GuessDamageForce( &dmgInfo, vVelocity, vecHeadCrabPosition, 0.5f );
|
||||||
TakeDamage( dmgInfo );
|
TakeDamage( dmgInfo );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user