Skip to content

Weapons V4

Michal Mikulec edited this page Aug 29, 2022 · 1 revision

class siegeapi.Weapons()

Attributes

  • all WeaponsRole
  • casual WeaponsRole
  • ranked WeaponsRole
  • unranked WeaponsRole
  • newcomer WeaponsRole

Methods

  • get_timespan_dates() -> dict[str: str]

    • Gets start & end dates that get returned by the API
    • Updated with every call

    Returns {'start_date': '20211205', 'end_date': '20220405'}

    Added in v2.1.2


class siegeapi.WeaponsRole()

Attributes

  • attacker WeaponsGamemode

  • defender WeaponsGamemode

    Added in v4.0.0


class siegeapi.WeaponsGameMode()

Attributes

  • primary list[Weapon]
  • secondary list[Weapon]

class siegeapi.Weapon()

  • name str ⇒ E.g.: 'FMG-9'
  • kills int
  • headshots int
  • hs_accuracy float
  • rounds_played int ⇒ Percentage from the total rounds played
  • rounds_won int ⇒ Percentage from the total rounds played
  • rounds_lost float ⇒ Percentage from the total rounds played
  • rounds_with_kill float ⇒ Percentage from the total rounds played
  • rounds_with_multi_kill float ⇒ Percentage from the total rounds played
  • image_url str E.g.: https://staticctf.akamaized.net/.../AUG_A3.png
  • type str ⇒ E.g.: 'Submachine Gun'