# AmmoData

- **Ortam:** İstemci, Sunucu
- **İngilizce aslı:** https://wiki.facepunch.com/gmod/Structures/AmmoData
- **Çeviri tarihi:** 2025-10-05

## Açıklama

Bir Source Engine mermi türünü tanımlayan tablo yapısıdır.

[game.AddAmmoType](https://gmod.tr/wiki/game.AddAmmoType) ve [game.GetAmmoData](https://gmod.tr/wiki/game.GetAmmoData) sayfalarına göz atın.

## Üyeler

- [DMG enum](https://gmod.tr/wiki/Enums/DMG)'u ile [number](https://gmod.tr/wiki/number) **dmgtype**

  [DMG enum](https://gmod.tr/wiki/Enums/DMG)'u kullanan hasar türü.

  İlgili fonksiyon [game.GetAmmoDamageType](https://gmod.tr/wiki/game.GetAmmoDamageType)'dır.

  **Varsayılan:** `DMG_BULLET`

- [number](https://gmod.tr/wiki/number) **force**

  Merminin gücü.

  İlgili fonksiyon [game.GetAmmoForce](https://gmod.tr/wiki/game.GetAmmoForce)'dır.

  **Varsayılan:** `1000`

- [number](https://gmod.tr/wiki/number) **maxsplash**

  Maksimum su sıçrama boyutu.

  **Varsayılan:** `0`

- [number](https://gmod.tr/wiki/number) **minsplash**

  Minimum su sıçrama boyutu.

  **Varsayılan:** `0`

- [string](https://gmod.tr/wiki/string) **name**

  Merminin adı.

  İlgili fonksiyonlar [game.GetAmmoName](https://gmod.tr/wiki/game.GetAmmoName) ve [game.GetAmmoID](https://gmod.tr/wiki/game.GetAmmoID)'dir.

- [number](https://gmod.tr/wiki/number) **npcdmg**

  NPC'lere verilen hasar.

  İlgili fonksiyon [game.GetAmmoNPCDamage](https://gmod.tr/wiki/game.GetAmmoNPCDamage)'dır.

  Ayrıca bir [convar](https://gmod.tr/wiki/ConVar) adını içeren bir string de olabilir. Değer, convar'ın değeriyle otomatik olarak güncellenecektir.

  **Varsayılan:** `10`

- [number](https://gmod.tr/wiki/number) **plydmg**

  Oyunculara verilen hasar.

  İlgili fonksiyon [game.GetAmmoPlayerDamage](https://gmod.tr/wiki/game.GetAmmoPlayerDamage)'dır.

  Ayrıca bir [convar](https://gmod.tr/wiki/ConVar) adını içeren bir string de olabilir. Değer, convar'ın değeriyle otomatik olarak güncellenecektir.

  **Varsayılan:** `10`

- [TRACER enum](https://gmod.tr/wiki/Enums/TRACER)'u ile [number](https://gmod.tr/wiki/number) **tracer**

  [TRACER enum](https://gmod.tr/wiki/Enums/TRACER)'u kullanan izli mermi (tracer) türü.

  **Varsayılan:** `TRACER_NONE`

- [number](https://gmod.tr/wiki/number) **maxcarry**

  Oyuncunun yedekte taşıyabileceği bu türdeki maksimum mermi miktarı. `-2` değeri bu mermi türünü sonsuz yapar.

  İlgili fonksiyon [game.GetAmmoMax](https://gmod.tr/wiki/game.GetAmmoMax)'dır.

  Ayrıca bir [convar](https://gmod.tr/wiki/ConVar) adını içeren bir string de olabilir. Değer, convar'ın değeriyle otomatik olarak güncellenecektir.

  > **UYARI:** Eğer 0'dan büyük bir değere ayarlanırsa, `gmod_maxammo` convar'ı bu değeri geçersiz kılacaktır. **Bu, varsayılan olarak böyledir**.

  **Varsayılan:** `9999`

- [AMMO enum](https://gmod.tr/wiki/Enums/AMMO)'u ile [number](https://gmod.tr/wiki/number) **flags**

  [AMMO enum](https://gmod.tr/wiki/Enums/AMMO)'u kullanan mermi türü bayrakları.

  **Varsayılan:** `0`

- [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/Structures/AmmoData
