mirror of
https://github.com/jimathy/rpemotes.git
synced 2026-07-22 13:43:34 -04:00
* Feat: Add Exit Emotes This would add the option to add "exit emotes" for any emote. The point of adding this would be to allow for more "smooth" or "dynamic" animations to be set up, hopefully improving the "natural flow" when using emotes. Further down the line entry emotes could also be added to build on top of this. This PR only includes getting up (getup) as an example on how it could be used, more emotes could be added as time goes by. I don't think I've seen any other menu with this, so it certainly should be a step ahead of other menus. Here is a video showing it in action: https://youtu.be/uEWAz-xgHlg (sorry for the "low" fps, my pc suddenly decided to not cooperate) * Made Requested Changes Add checks to confirm that both the exit type and emote exists. ExitEmoteType also defaults to "Emotes" if not specified. ExitEmote config have been changed to match the style of other configs. It is now split up into ExitEmote and ExitEmoteType. Added new array in the RP table called "Exits" to allow adding exit emotes without having them appear in the menu, they are still available trough commands.
34 lines
1.0 KiB
Lua
34 lines
1.0 KiB
Lua
-- Emotes you add in the file will automatically be added to AnimationList.lua
|
|
-- If you have multiple custom list files they MUST be added between AnimationList.lua and Emote.lua in fxmanifest.lua!
|
|
-- Don't change 'CustomDP' it is local to this file!
|
|
|
|
local CustomDP = {}
|
|
|
|
CustomDP.Expressions = {}
|
|
CustomDP.Walks = {}
|
|
CustomDP.Shared = {}
|
|
CustomDP.Dances = {}
|
|
CustomDP.AnimalEmotes = {}
|
|
CustomDP.Exits = {}
|
|
CustomDP.Emotes = {}
|
|
CustomDP.PropEmotes = {}
|
|
|
|
|
|
|
|
-----------------------------------------------------------------------------------------
|
|
--| I don't think you should change the code below unless you know what you are doing |--
|
|
-----------------------------------------------------------------------------------------
|
|
|
|
-- Add the custom emotes to RPEmotes main array
|
|
for arrayName, array in pairs(CustomDP) do
|
|
if RP[arrayName] then
|
|
for emoteName, emoteData in pairs(array) do
|
|
RP[arrayName][emoteName] = emoteData
|
|
end
|
|
end
|
|
-- Free memory
|
|
CustomDP[arrayName] = nil
|
|
end
|
|
-- Free memory
|
|
CustomDP = nil
|