# CMoveData

- **İngilizce aslı:** https://wiki.facepunch.com/gmod/CMoveData
- **Çeviri tarihi:** 2025-09-08

[CUserCmd](https://gmod.tr/wiki/CUserCmd)'den gelen girdileri ve mevcut hareket simülasyonuyla ilgili hız, konum vb. diğer bilgileri depolamak için kullanılan bir sınıftır.

Buna yalnızca [GM:SetupMove](https://gmod.tr/wiki/GM:SetupMove) , [GM:Move](https://gmod.tr/wiki/GM:Move) , [GM:PlayerTick](https://gmod.tr/wiki/GM:PlayerTick) ve [GM:FinishMove](https://gmod.tr/wiki/GM:FinishMove) sırasında erişilebilir.

## Metotlar

CMoveData:[AddKey](https://gmod.tr/wiki/CMoveData:AddKey)( [number](https://gmod.tr/wiki/number) keys )

Hareket verisine, oyuncu basmış gibi tuşlar ekler.

[Angle](https://gmod.tr/wiki/Angle) CMoveData:[GetAbsMoveAngles](https://gmod.tr/wiki/CMoveData:GetAbsMoveAngles)()

Nişan alma açısını alır. CMoveData:GetAngles ile aynı gibi görünmektedir.

[Angle](https://gmod.tr/wiki/Angle) CMoveData:[GetAngles](https://gmod.tr/wiki/CMoveData:GetAngles)()

Nişan alma açısını alır. İstemci tarafında Entity:GetAngles ile aynıdır.

[number](https://gmod.tr/wiki/number) CMoveData:[GetButtons](https://gmod.tr/wiki/CMoveData:GetButtons)()

Hangi tuşlara basıldığını alır.

[Vector](https://gmod.tr/wiki/Vector) CMoveData:[GetConstraintCenter](https://gmod.tr/wiki/CMoveData:GetConstraintCenter)()

Oyuncu hareket kısıtlamasının merkezini döndürür. Bakınız: CMoveData:SetConstraintCenter.

[number](https://gmod.tr/wiki/number) CMoveData:[GetConstraintRadius](https://gmod.tr/wiki/CMoveData:GetConstraintRadius)()

Oyuncuların hareketini kısıtlayan yarıçapı döndürür. Bakınız: CMoveData:SetConstraintRadius.

[number](https://gmod.tr/wiki/number) CMoveData:[GetConstraintSpeedScale](https://gmod.tr/wiki/CMoveData:GetConstraintSpeedScale)()

Oyuncu hareket kısıtlaması hız ölçeğini döndürür. Bakınız: CMoveData:SetConstraintSpeedScale.

[number](https://gmod.tr/wiki/number) CMoveData:[GetConstraintWidth](https://gmod.tr/wiki/CMoveData:GetConstraintWidth)()

Gerçek hareket kısıtlamasının işlev gördüğü genişliği (yarıçapın kenarından içeriye doğru olan mesafe) döndürür.

[Vector](https://gmod.tr/wiki/Vector) CMoveData:[GetFinalIdealVelocity](https://gmod.tr/wiki/CMoveData:GetFinalIdealVelocity)()

Dahili bir oyuncu hareketi değişkeni olan m_outWishVel'i döndürür.

[Vector](https://gmod.tr/wiki/Vector) CMoveData:[GetFinalJumpVelocity](https://gmod.tr/wiki/CMoveData:GetFinalJumpVelocity)()

Dahili bir oyuncu hareketi değişkeni olan m_outJumpVel'i döndürür.

[number](https://gmod.tr/wiki/number) CMoveData:[GetFinalStepHeight](https://gmod.tr/wiki/CMoveData:GetFinalStepHeight)()

Dahili bir oyuncu hareketi değişkeni olan m_outStepHeight'i döndürür.

[number](https://gmod.tr/wiki/number) CMoveData:[GetForwardSpeed](https://gmod.tr/wiki/CMoveData:GetForwardSpeed)()

Oyuncunun ileriye doğru hızını döndürür.

[number](https://gmod.tr/wiki/number) CMoveData:[GetImpulseCommand](https://gmod.tr/wiki/CMoveData:GetImpulseCommand)()

"impulse" konsol komutuna iletilen sayıyı alır.

[number](https://gmod.tr/wiki/number) CMoveData:[GetMaxClientSpeed](https://gmod.tr/wiki/CMoveData:GetMaxClientSpeed)()

Oyuncunun maksimum istemci hızını döndürür.

[number](https://gmod.tr/wiki/number) CMoveData:[GetMaxSpeed](https://gmod.tr/wiki/CMoveData:GetMaxSpeed)()

Oyuncunun maksimum hızını döndürür.

[Angle](https://gmod.tr/wiki/Angle) CMoveData:[GetMoveAngles](https://gmod.tr/wiki/CMoveData:GetMoveAngles)()

Oyuncunun hareket ettiği açıyı döndürür. Daha fazla bilgi için bakınız: CMoveData:SetMoveAngles.

[Angle](https://gmod.tr/wiki/Angle) CMoveData:[GetOldAngles](https://gmod.tr/wiki/CMoveData:GetOldAngles)()

Nişan alma açısını alır. Yalnızca istemci tarafında çalışır, sunucu CMoveData:GetAngles ile aynı değeri döndürür.

[number](https://gmod.tr/wiki/number) CMoveData:[GetOldButtons](https://gmod.tr/wiki/CMoveData:GetOldButtons)()

Son karede (frame) hangi tuşların basılı olduğunu alır.

[Vector](https://gmod.tr/wiki/Vector) CMoveData:[GetOrigin](https://gmod.tr/wiki/CMoveData:GetOrigin)()

Oyuncunun pozisyonunu alır.

[number](https://gmod.tr/wiki/number) CMoveData:[GetSideSpeed](https://gmod.tr/wiki/CMoveData:GetSideSpeed)()

Oyuncunun yana kayma (strafe) hızını döndürür.

[number](https://gmod.tr/wiki/number) CMoveData:[GetUpSpeed](https://gmod.tr/wiki/CMoveData:GetUpSpeed)()

Oyuncunun dikey hızını döndürür. ( CMoveData:GetVelocity'nin Z ekseni )

[Vector](https://gmod.tr/wiki/Vector) CMoveData:[GetVelocity](https://gmod.tr/wiki/CMoveData:GetVelocity)()

Oyuncunun hızını alır. Bu, bazen proplar üzerinde yürürken Vector(0,0,0) döndürür. Hata Takipçisi: 3413

[boolean](https://gmod.tr/wiki/boolean) CMoveData:[KeyDown](https://gmod.tr/wiki/CMoveData:KeyDown)( [number](https://gmod.tr/wiki/number) key )

Tuşun basılı olup olmadığını döndürür.

[boolean](https://gmod.tr/wiki/boolean) CMoveData:[KeyPressed](https://gmod.tr/wiki/CMoveData:KeyPressed)( [number](https://gmod.tr/wiki/number) key )

Tuşa basılıp basılmadığını döndürür. Tuşun basılı tutulup tutulmadığını kontrol etmek istiyorsanız, CMoveData:KeyDown'ı deneyin.

[boolean](https://gmod.tr/wiki/boolean) CMoveData:[KeyReleased](https://gmod.tr/wiki/CMoveData:KeyReleased)( [number](https://gmod.tr/wiki/number) key )

Tuşun bırakılıp bırakılmadığını döndürür.

[boolean](https://gmod.tr/wiki/boolean) CMoveData:[KeyWasDown](https://gmod.tr/wiki/CMoveData:KeyWasDown)( [number](https://gmod.tr/wiki/number) key )

Tuşun basılı olup olmadığını döndürür. CMoveData:KeyDown'dan farklı olarak, CMoveData:KeyPressed doğru ise yanlış, CMoveData:KeyReleased doğru ise doğru döndürür.

CMoveData:[SetAbsMoveAngles](https://gmod.tr/wiki/CMoveData:SetAbsMoveAngles)( [Angle](https://gmod.tr/wiki/Angle) ang )

Mutlak hareket açılarını ayarlar. ( ? ) Herhangi bir şey yapıyor gibi görünmüyor.

CMoveData:[SetAngles](https://gmod.tr/wiki/CMoveData:SetAngles)( [Angle](https://gmod.tr/wiki/Angle) ang )

Açıları ayarlar. Bu fonksiyon hiçbir şey yapmaz. Hata Takipçisi: 2382

CMoveData:[SetButtons](https://gmod.tr/wiki/CMoveData:SetButtons)( [number](https://gmod.tr/wiki/number) buttons )

Hareket verisi üzerindeki basılı tuşları ayarlar.

CMoveData:[SetConstraintCenter](https://gmod.tr/wiki/CMoveData:SetConstraintCenter)( [Vector](https://gmod.tr/wiki/Vector) pos )

Oyuncu hareket kısıtlamasının merkezini ayarlar. Bakınız: CMoveData:SetConstraintRadius.

CMoveData:[SetConstraintRadius](https://gmod.tr/wiki/CMoveData:SetConstraintRadius)( [number](https://gmod.tr/wiki/number) radius )

Oyuncuların hareketini kısıtlayan yarıçapı ayarlar. Şunlarla birlikte çalışır: CMoveData:SetConstraintWidth CMoveData:SetConstraintSpeedScale CMoveData:SetConstraintCenter

CMoveData:[SetConstraintSpeedScale](https://gmod.tr/wiki/CMoveData:SetConstraintSpeedScale)( [number](https://gmod.tr/wiki/number) )

Oyuncu hareket kısıtlaması hız ölçeğini ayarlar. Bu, kısıtlama yarıçapı içindeki oyuncuya kenarına yaklaşırken uygulanacaktır.

CMoveData:[SetConstraintWidth](https://gmod.tr/wiki/CMoveData:SetConstraintWidth)( [number](https://gmod.tr/wiki/number) )

Gerçek hareket kısıtlamasının işlev gördüğü genişliği (yarıçapın kenarından içeriye doğru olan mesafe) ayarlar.

CMoveData:[SetFinalIdealVelocity](https://gmod.tr/wiki/CMoveData:SetFinalIdealVelocity)( [Vector](https://gmod.tr/wiki/Vector) idealVel )

Dahili bir oyuncu hareketi değişkeni olan m_outWishVel'i ayarlar.

CMoveData:[SetFinalJumpVelocity](https://gmod.tr/wiki/CMoveData:SetFinalJumpVelocity)( [Vector](https://gmod.tr/wiki/Vector) jumpVel )

Dahili bir oyuncu hareketi değişkeni olan m_outJumpVel'i ayarlar.

CMoveData:[SetFinalStepHeight](https://gmod.tr/wiki/CMoveData:SetFinalStepHeight)( [number](https://gmod.tr/wiki/number) stepHeight )

Dahili bir oyuncu hareketi değişkeni olan m_outStepHeight'i ayarlar.

CMoveData:[SetForwardSpeed](https://gmod.tr/wiki/CMoveData:SetForwardSpeed)( [number](https://gmod.tr/wiki/number) speed )

Oyuncunun ileriye doğru hızını ayarlar.

CMoveData:[SetImpulseCommand](https://gmod.tr/wiki/CMoveData:SetImpulseCommand)( [number](https://gmod.tr/wiki/number) impulse )

Impulse komutunu ayarlar. Bu, aslında motorun hiçbir yerinde kullanılmaz.

CMoveData:[SetMaxClientSpeed](https://gmod.tr/wiki/CMoveData:SetMaxClientSpeed)( [number](https://gmod.tr/wiki/number) maxSpeed )

Maksimum oyuncu hızını ayarlar. Oyuncu bu değerden daha hızlı koşamaz veya depar atamaz. Bu aynı zamanda GM:SetupMove kancasında (hook) kullanıldığında CMoveData:SetMaxSpeed'i otomatik olarak ayarlar. GM:Move kancasında ise manuel olarak ayarlamanız gerekir. Tahmin (prediction) hatalarını önlemek için hem istemcide hem de sunucuda çağrılmalıdır. Havadaki hızı düşürmez. Bunu 0 olarak ayarlamak oyuncuyu hareketsiz kılmaz. Hiçbir şey yapmaz.

CMoveData:[SetMaxSpeed](https://gmod.tr/wiki/CMoveData:SetMaxSpeed)( [number](https://gmod.tr/wiki/number) maxSpeed )

Oyuncunun maksimum hızını ayarlar. Bu, hem sunucuda hem de istemcide CMoveData:SetMaxClientSpeed ile eşleşmelidir. Tek başına bir şey yapıyor gibi görünmüyor, bunun yerine CMoveData:SetMaxClientSpeed'i kullanın.

CMoveData:[SetMoveAngles](https://gmod.tr/wiki/CMoveData:SetMoveAngles)( [Angle](https://gmod.tr/wiki/Angle) dir )

Sunucu tarafı hareket açılarını ayarlar, bu da hareket tuşlarının oyuncu o yöne bakıyormuş gibi davranmasını sağlar. Bu fonksiyon tahmin edilir (predicted) ve istemci ile sunucuda eşleşen verilerle paylaşımlı olarak çağrılmalıdır.

CMoveData:[SetOldAngles](https://gmod.tr/wiki/CMoveData:SetOldAngles)( [Angle](https://gmod.tr/wiki/Angle) aimAng )

Eski nişan alma açılarını ayarlar. ( ? ) Herhangi bir şey yapıyor gibi görünmüyor.

CMoveData:[SetOldButtons](https://gmod.tr/wiki/CMoveData:SetOldButtons)( [number](https://gmod.tr/wiki/number) buttons )

Hareket verisindeki 'eski' basılı tuşları ayarlar. Bu tuşlar, hangi tuşların bırakıldığını, hangilerine yeni basıldığını ve hangilerinin basılı tutulduğunu hesaplamak için kullanılır.

CMoveData:[SetOrigin](https://gmod.tr/wiki/CMoveData:SetOrigin)( [Vector](https://gmod.tr/wiki/Vector) pos )

Oyuncunun pozisyonunu ayarlar.

CMoveData:[SetSideSpeed](https://gmod.tr/wiki/CMoveData:SetSideSpeed)( [number](https://gmod.tr/wiki/number) speed )

Oyuncunun yana kayma (strafe) hızını ayarlar.

CMoveData:[SetUpSpeed](https://gmod.tr/wiki/CMoveData:SetUpSpeed)( [number](https://gmod.tr/wiki/number) speed )

Oyuncunun dikey hızını ayarlar. ( CMoveData:SetVelocity'nin Z ekseni )

CMoveData:[SetVelocity](https://gmod.tr/wiki/CMoveData:SetVelocity)( [Vector](https://gmod.tr/wiki/Vector) velocity )

Oyuncunun hızını ayarlar.

- [GMod Wiki ana sayfası](https://gmod.tr/wiki)

---

[Tüm sunucular](https://gmod.tr/) · [GmodTR Launcher](https://gmod.tr/launcher) · [Rehber](https://gmod.tr/rehber) · [GMod Wiki](https://gmod.tr/wiki) · [GmodTR nedir?](https://gmod.tr/hakkinda) · [Sunucu ekle](https://gmod.tr/sunucu-ekle) · [Discord](https://discord.gg/gmodtr)

Kaynak: https://gmod.tr/wiki/CMoveData
