ToddLLM/luanti-complete-dataset huggingface dataset:
**Title:** Accuracy

**Description:** 

**Details:**
# Does nothing on its own. Do not manually install this.

Accuracy GUI library for all kinds of ranged weapons. Provides a hit indicator and and a circle indicating the amount of accuracy. Accuracy is gained by standing still or sneaking. However you will have most accuracy when standing still. It is lost through moving or quick camera pans.

## accuracy.register(item_name)
Registers your weapon into the system. If your weapon has more than one item and switches between them, register all items. Note that those will still be viewed as different weapons and accuracy will be fully reset as if you just armed it.

## accuracy.hit(player)
Shows hit indicator to player that disappears after half a second. **Please ensure that your player reference is valid.**

## accuracy.get(player)

Gets an accuracy value from 0 to 1.

**0 is the highest accuracy, 1 the lowest.**

## accuracy.reset(player)

Resets accuracy for a player. You can use this after shooting or reloading for example.

**Tags:** library
**Repository:** https://gitgud.io/blut/accuracy
**License:** CC0-1.0