Описание
## RU
Данные аддон представляет из себя удобную прослойку для совмещения фигуры с популярными модами.
В данный момент реализована поддержка таких модов как:
- plasmo voice
- emote craft
Работоспособность проверялась на 1.20.1, но должно работать и на версиях выше.
Примеры:
emotecraft
**emotes:getEmotes()**
```
local listEmotes = emotes:getEmotes() -- получить список всех эмоций
for _, emote in ipairs(listEmotes) do
emote:getUUID() -- получить uuid эмоции
emote:getName() -- получить имя эмоции
emote:getDescription() -- получить описание эмоции
emote:getAuthor() -- получить автора эмоции
emote:isNsfw() -- является ли эмоция nsfw характера
end
```
**emotes:playEmote()**
```
emotes:playEmote(stringUUID) -- проигрывание эмоции по uuid
```
**emotes:stopEmote()**
```
emotes:stopEmote() -- останавливает проигрывание эмоции
```
plasmo voice
**plasmovoice:getVoiceLevel()**
```
plasmovoice:getVoiceLevel(stringUUID) -- получить громкость речи игрока
```
```
--пример
function events.tick()
local uuid = player:getUUID()
local voiceLevel = plasmovoice:getVoiceLevel(uuid)
if voiceLevel > 0 then
log(voiceLevel)
end
end
```
```
-- так же можно проверить говорит ли игрок путём ивента
events["FIGEXTRA.PLASMOVOICE_PLAYER_SPEAK"]:register(function(uuid, distance)
end, "microphone")
```
**plasmovoice:isMuted()**
```
plasmovoice:isMuted(stringUUID) -- проверить в муте ли игрок
```
**plasmovoice:getVersion()**
```
plasmovoice:getVersion() -- получить версию plasmo voice
```
**plasmovoice:renderDistanceVisualizer()**
```
-- я добавил это забавы ради, может кто найдёт этому интересное применение
plasmovoice:renderDistanceVisualizer(radius, stringHex, x, y, z)
plasmovoice:renderDistanceVisualizer(radius, stringHex, vec(x, y, z))
```
## EN
This addon is a convenient layer for combining the figura with popular mods.
Currently implemented support for such mods as:
- plasmo voice
- emote craft
Workability was tested on 1.20.1, but should work on versions above.
Examples:
emotecraft
**emotes:getEmotes()**
```
local listEmotes = emotes:getEmotes() -- get a list of all emotions
for _, emote in ipairs(listEmotes) do
emote:getUUID() -- get emote's uuid
emote:getName() -- get the name of the emotion
emote:getDescription() -- get the description of the emotion
emote:getAuthor() -- get the author of the emotion
emote:isNsfw() -- whether the emotion is a nsfw character
end
```
**emotes:playEmote()**
```
emotes:playEmote(stringUUID) -- playing an emotion by uuid
```
**emotes:stopEmote()**
```
emotes:stopEmote() -- stops playing the emotion
```
plasmo voice
**plasmovoice:getVoiceLevel()**
```
plasmovoice:getVoiceLevel(stringUUID) -- get the player's voice volume
```
```
--example
function events.tick()
local uuid = player:getUUID()
local voiceLevel = plasmovoice:getVoiceLevel(uuid)
if voiceLevel > 0 then
log(voiceLevel)
end
end
```
```
-- it is also possible to check if the player speaks through an event
events[“FIGEXTRA.PLASMOVOICE_PLAYER_SPEAK”]:register(function(uuid, distance)
end, “microphone”)
```
**plasmovoice:isMuted()**
```
plasmovoice:isMuted(stringUUID) -- check if the player is muted.
```
**plasmovoice:getVersion()**
```
plasmovoice:getVersion() -- get the version of plasmo voice
```
**plasmovoice:renderDistanceVisualizer()**
```
-- I added this for fun, maybe someone will find an interesting use for it.
plasmovoice:renderDistanceVisualizer(radius, stringHex, x, y, z)
plasmovoice:renderDistanceVisualizer(radius, stringHex, vec(x, y, z))
```