# AmmoRegen

This module provides custom ammo regeneration functionality for an item, allowing configuration of regeneration delay, interval, and amount. When the item is shot, the module automatically pauses any ongoing ammo regeneration for a specified duration.

### Configuration

| Value             | Description                                                                                                                          |
| ----------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| `RegenDelay`      | The delay, in seconds, before ammo regeneration resumes after the item is shot. This value dictates how long regeneration is paused. |
| `RegenInterval`   | The time, in seconds, between each ammo regeneration tick. This defines how frequently ammo is added.                                |
| `AmmoPerInterval` | The amount of ammo regenerated per `RegenInterval`. This specifies how much ammo is restored in each tick.                           |

### Example

```yaml
custom_modules:
  AmmoRegen:
  - RegenDelay: 3.0       # Regeneration pauses for 3 seconds after shooting
    RegenInterval: 1.5    # Ammo regenerates every 1.5 seconds
    AmmoPerInterval: 2    # 2 rounds are regenerated per interval
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.uci.ucserver.it/uncomplicatedcustomitems/prerelease-content/custommodules/ammoregen.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
