示例#1
0
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;
}
示例#2
0
bool Entity::IsPlayer()
{
	if( !GetPointer() )
		return false;

	if( !GetName() )
		return false;

	if( !GetTeamNum() )
		return false;

	return true;
}
示例#3
0
// 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);
}