Hikayeler

Reklam vermek için turkmmo@gmail.com

Metin2 birinci şahıs oyuncunun gözünden bakma bunlar böyle gemini pro yazdı

Metin2 EP, Valorant VP dahil tüm oyun ürünlerini en uygun fiyatlarla bulabilir, Item ve Karakterlerinizi hızlıca satabilirsiniz. HEMEN TIKLA!

Eline sağlık
 
Eline sağlık
 
ws falan atınca bende beğenmedim.

ws sıraısndaki hareketler skiller efektler zehir olsun kriitk olsun delici damage gözükmüyor.
low poly 3D bir oyun için bu tarz sistemler keşfetmeyin sayın hocam genede emeğinize sağlık.
 
low poly 3D bir oyun için bu tarz sistemler keşfetmeyin sayın hocam genede emeğinize sağlık.
değişiklik her zaman güzeldir.

oyuncu canı sıkılabilir bitaz da böyle oynıyım der.

belki 1 saat 3. şahıs oynuyorsa sıklıp 10 dk 1. şahıs oynar belki 5 dk
 
Tesekkurler mouse ile etrafa bakınmayı da ben paylaşayım:

PythonApplication.h > class içine ekle > bool m_isFPSMode;

PythonApplication.cpp > Constructor içinde > m_isFPSMode = false;


PythonApplication.cpp > en alta ekle >

void CPythonApplication::LockMouse()
{
ShowCursor(FALSE);

RECT rect;
GetClientRect(m_hWnd, &rect);

POINT center;
center.x = (rect.right - rect.left) / 2;
center.y = (rect.bottom - rect.top) / 2;

ClientToScreen(m_hWnd, &center);
SetCursorPos(center.x, center.y);
}




PythonApplication.cpp > OnUpdate() > (f5 ile açma kapatma)
if (GetAsyncKeyState(VK_F5) & 1)
{
m_isFPSMode = !m_isFPSMode;

if (m_isFPSMode)
LockMouse();
else
ShowCursor(TRUE);
}




PythonApplication.cpp > BUL > bool CPythonApplication::OnMouseMove(int x, int y) > DEĞİŞTİR >
bool CPythonApplication::OnMouseMove(int x, int y)
{
if (m_isFPSMode)
{
RECT rect;
GetClientRect(m_hWnd, &rect);

int centerX = (rect.right - rect.left) / 2;
int centerY = (rect.bottom - rect.top) / 2;

POINT screenCenter;
screenCenter.x = centerX;
screenCenter.y = centerY;
ClientToScreen(m_hWnd, &screenCenter);

int dx = x - centerX;
int dy = y - centerY;

CPythonCamera::Instance().Rotate(dx, dy);

SetCursorPos(screenCenter.x, screenCenter.y);
return true;
}

return false;
}



PythonCamera.h > EKLE > void Rotate(float dx, float dy);
 

Şu an konuyu görüntüleyenler (Toplam : 1, Üye: 0, Misafir: 1)

Geri
Üst