# Config

## Functions

### add\_item

adds a [value](/fatality/datatypes/config-value.md) to the config map

`config:add_item( item_name, default_value )`

|    Parameter   |      Data type     |          Description         |
| :------------: | :----------------: | :--------------------------: |
|   item\_name   |       string       |  name of config item to add  |
| default\_value | int - float - bool | initial value of config item |

### get\_item

returns a [config value](/fatality/datatypes/config-value.md) from the config map

`config:get_item( item_name )`

|  Parameter | Data type |         Description        |
| :--------: | :-------: | :------------------------: |
| item\_name |   string  | name of config item to get |

### get\_weapon\_setting

returns a [config value](/fatality/datatypes/config-value.md) for a weapon setting

`config:get_weapon_setting( weapon_name, item_name )`

|   Parameter  | Data type |         Description        |
| :----------: | :-------: | :------------------------: |
| weapon\_name |   string  |    name of weapon to use   |
|  item\_name  |   string  | name of config item to get |

#### weapon names

* autosniper
* scout
* awp
* heavy\_pistol
* pistol
* other

#### item names

* hitchance
* pointscale
* mindmg
  * mindmg\_override\_enabled
  * mindmg\_override
* damage\_accuracy
* `additional hitscan`
  * hitboxes.neck
  * hitboxes.legs
  * hitboxes.feet
  * hitboxes.arms
* `additional points`
  * pointscales.neck
  * pointscales.legs
  * pointscales.feet
  * pointscales.arms
* autostop
  * autostop\_on\_key
  * predictive\_autostop
* autoscope
* fallback\_mode `safepoint mode`
  * `force safepoint`
    * baim.air&#x20;
    * baim.lethal
    * fallback\_when.moving
    * fallback\_when.standing
    * fallback\_when.limbs
* ignore\_limbs
* refine\_shot
* autorevolver
* scout\_jumpshot


---

# 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://lua.legacy.fatality.win/fatality/config.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.
