mirror of
https://github.com/halpz/re3.git
synced 2025-06-28 18:46:21 +00:00
IsStatic
This commit is contained in:
@ -156,11 +156,11 @@ void CBulletInfo::Update(void)
|
||||
if (pHitEntity->IsObject()) {
|
||||
CObject* pObject = (CObject*)pHitEntity;
|
||||
if (!pObject->bInfiniteMass) {
|
||||
if (pObject->bIsStatic && pObject->m_fUprootLimit <= 0.0f) {
|
||||
if (pObject->IsStatic() && pObject->m_fUprootLimit <= 0.0f) {
|
||||
pObject->bIsStatic = false;
|
||||
pObject->AddToMovingList();
|
||||
}
|
||||
if (!pObject->bIsStatic)
|
||||
if (!pObject->IsStatic())
|
||||
pObject->ApplyMoveForce(-BULLET_HIT_FORCE * point.normal);
|
||||
}
|
||||
}
|
||||
|
@ -1047,13 +1047,13 @@ CWeapon::DoBulletImpact(CEntity *shooter, CEntity *victim,
|
||||
|
||||
if ( !victimObject->bInfiniteMass )
|
||||
{
|
||||
if ( victimObject->bIsStatic && victimObject->m_fUprootLimit <= 0.0f )
|
||||
if ( victimObject->IsStatic() && victimObject->m_fUprootLimit <= 0.0f )
|
||||
{
|
||||
victimObject->bIsStatic = false;
|
||||
victimObject->AddToMovingList();
|
||||
}
|
||||
|
||||
if ( !victimObject->bIsStatic )
|
||||
if ( !victimObject->IsStatic())
|
||||
{
|
||||
CVector moveForce = point->normal*-4.0f;
|
||||
victimObject->ApplyMoveForce(moveForce.x, moveForce.y, moveForce.z);
|
||||
@ -1296,13 +1296,13 @@ CWeapon::FireShotgun(CEntity *shooter, CVector *fireSource)
|
||||
|
||||
if ( !victimObject->bInfiniteMass )
|
||||
{
|
||||
if ( victimObject->bIsStatic && victimObject->m_fUprootLimit <= 0.0f )
|
||||
if ( victimObject->IsStatic() && victimObject->m_fUprootLimit <= 0.0f )
|
||||
{
|
||||
victimObject->bIsStatic = false;
|
||||
victimObject->AddToMovingList();
|
||||
}
|
||||
|
||||
if ( !victimObject->bIsStatic )
|
||||
if ( !victimObject->IsStatic())
|
||||
{
|
||||
CVector moveForce = point.normal*-5.0f;
|
||||
victimObject->ApplyMoveForce(moveForce.x, moveForce.y, moveForce.z);
|
||||
@ -2232,7 +2232,7 @@ CWeapon::BlowUpExplosiveThings(CEntity *thing)
|
||||
object->m_vecMoveSpeed.x += float((CGeneral::GetRandomNumber()&255) - 128) * 0.0002f;
|
||||
object->m_vecMoveSpeed.y += float((CGeneral::GetRandomNumber()&255) - 128) * 0.0002f;
|
||||
|
||||
if ( object->bIsStatic )
|
||||
if ( object->IsStatic())
|
||||
{
|
||||
object->bIsStatic = false;
|
||||
object->AddToMovingList();
|
||||
|
Reference in New Issue
Block a user