h1z1-server
    Preparing search index...
    Index
    ammoCount: number

    Amount of ammo in the weapon

    currentFiregroupIndex: number = 0

    Selected firegroup - index into the weapon definition's FIRE_GROUPS array. For multi-firegroup weapons (e.g. the crossbow: 0=wooden, 1=flaming, 2=explosive arrow) the client cycles this with "B" and notifies the server via Weapon.SwitchFireModeRequest (0x830c); it drives which ammo/projectile is used. Single-firegroup weapons stay at 0 and behave exactly as before.

    currentFiremodeIndex: number = 0

    Selected firemode within the current firegroup (hip 0 / ADS 1). Index into the firegroup's FIRE_MODES.

    currentReloadCount: bigint = 0n

    Required for the reload packet to work every time (especially shotgun)

    itemDefinitionId: number

    Id of the item - See ServerItemDefinitions.json for more information

    itemGuid: string

    Global universal Id of the weapon

    reloadTimer?: Timeout

    Time it takes for a weapon to reload