ich wollte heute eine neue PvP Arena einfügen soweit funktioniert sie aber der Pvp Berei muss ya angepasst werden ich weiss auch in welcher Funktion in der Source.
Code:
BOOL CMover::IsArenaTarget( CMover* pMover )
{
CWorld* pWorld = GetWorld();
if( pWorld && pWorld->IsArena() )
{
int dx = (int)( pMover->GetPos().x - 510 );
int dy = (int)( pMover->GetPos().z - 527 );
int d = dx * dx + dy * dy;
if( d > 1246 )
return FALSE;
dx = (int)( GetPos().x - 510 );
dy = (int)( GetPos().z - 527 );
d = dx * dx + dy * dy;
if( d > 1246 )
return FALSE;
return TRUE;
}
return FALSE;
}
Währe nett wenn mir da jemand weiter helfen könnte.






