mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-07 17:29:36 +00:00
add source-sdk-2013
This commit is contained in:
@@ -817,6 +817,8 @@ void CBreakable::VPhysicsCollision( int index, gamevcollisionevent_t *pEvent )
|
||||
//-----------------------------------------------------------------------------
|
||||
int CBreakable::OnTakeDamage( const CTakeDamageInfo &info )
|
||||
{
|
||||
Vector vecTemp;
|
||||
|
||||
CTakeDamageInfo subInfo = info;
|
||||
|
||||
// If attacker can't do at least the min required damage to us, don't take any damage from them
|
||||
@@ -830,6 +832,8 @@ int CBreakable::OnTakeDamage( const CTakeDamageInfo &info )
|
||||
return 1;
|
||||
}
|
||||
|
||||
vecTemp = subInfo.GetInflictor()->GetAbsOrigin() - WorldSpaceCenter();
|
||||
|
||||
if (!IsBreakable())
|
||||
return 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user