bool Entity::IsValid() { if( !GetPointer() ) return false; if( !GetBoneMatrix() ) return false; if( !GetTeamNum() ) return false; if( IsDead() ) return false; if( IsDormant() ) return false; if( GetOrigin().IsZero() ) return false; if( GetHealth() < 1 ) return false; return true; }
bool Entity::IsPlayer() { if( !GetPointer() ) return false; if( !GetName() ) return false; if( !GetTeamNum() ) return false; return true; }
// Gem: Work around a bug void SELF::OnOverlapBegin(AActor* OtherActor, UPrimitiveComponent* OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult& SweepResult) { if (GetTeamNum() >= 255 || !bEnabled) return; Super::OnOverlapBegin(OtherActor, OtherComp, OtherBodyIndex, bFromSweep, SweepResult); }