mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2025-04-08 11:01:33 +00:00
Merge 4df91ab14f
into ceb6d4d783
This commit is contained in:
commit
8fa4bbf2af
1 changed files with 8 additions and 5 deletions
|
@ -1694,11 +1694,14 @@ void CFuncTrackTrain::Blocked( CBaseEntity *pOther )
|
|||
}
|
||||
else
|
||||
{
|
||||
Vector vecNewVelocity;
|
||||
vecNewVelocity = pOther->GetAbsOrigin() - GetAbsOrigin();
|
||||
VectorNormalize(vecNewVelocity);
|
||||
vecNewVelocity *= m_flBlockDamage;
|
||||
pOther->SetAbsVelocity( vecNewVelocity );
|
||||
if ( pOther->GetMoveType() != MOVETYPE_VPHYSICS )
|
||||
{
|
||||
Vector vecNewVelocity;
|
||||
vecNewVelocity = pOther->GetAbsOrigin() - GetAbsOrigin();
|
||||
VectorNormalize( vecNewVelocity );
|
||||
vecNewVelocity *= m_flBlockDamage;
|
||||
pOther->SetAbsVelocity( vecNewVelocity );
|
||||
}
|
||||
}
|
||||
if ( HasSpawnFlags(SF_TRACKTRAIN_UNBLOCKABLE_BY_PLAYER) )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue