* Revert most Movement On/Off Code (#146)
* Revert Native UI
* Revert Emote.lua
* Revert AnimationList.lua
* fix: returns wrong movement flag
* fix: MovementType issues
* feat: add persistent expression (#145)
* Add 2 new moods/expression
* feat: add persistent expression
Add persistent expression, get's loaded just like the walks.
As a sidenote: maybe this should be in it's own file? But the again it's pretty small, so there would't be a "need" for it.
* dev: remove comment
* Delete stream/[Custom Emotes]/Prue颜 directory
* refactor: mood commands (#147)
* refactor: mood commands
* fix: mood menu names
---------
Co-authored-by: Mads <madsleander@outlook.com>
* feat: toggle between moving emotes and not
* Update Emote.lua
* Update Emote.lua
* Update Emote.lua
* Changes:
• removed `EmoteMoving` from `AnimationOptions`, by default its always `true` now and changeble by toggle
• some refactor and logic changes
Shoutout to @iSentrie 🙏
Changes:
• cleaning
• deleted unused code
• indentation fixes
• minor fixes (proper source usage in server side)
• new feature to disable specific emotes from playing inside an vehicle
* refactor: separate out pointing
Separate out and improve pointing.
New version includes:
Better and working configs
More checks
Export
The reason why it's separated into i's own file is to make the mail file less cluttered.
The new checks also solves issues with pointing and aiming guns etc.
* style: whitespace
* fix: only setup +-crouch keys if enabled
Keys only need to be set up if keybinding is enabled.
* dev: move function
* fix: add ragdoll test
* refactor: get player ped after anim loaded
* grammar
* refactor: add return to AttemptCrouch
returns if it was successful
* style: add category name
* feat: add crawling
* fix: added missing config
Config was missing, sorry!
* refactor: use PlayAnimOnce
We should use PlayAnimOnce here as it would lower the complexity and make the code easier to read.
* feat: add exports
Add exports to be used by other developers when creating scripts for their own servers.
* refactor: redo config setup
* refactor: add blendInSpeed to PlayAnimOnce
* refactor: use local function instead of global
local functions are much faster to load then global ones.
* refactor: redo CrouchKeyPressed
Rewrite the entire function to use new configs
* style: remove commented code
* dev: add new version of crawl
A temporary version of crawl, still in development.
* refactor: make isProne a global variable
Add @iSentrie 's suggestion to make isProne a global variable so it can be used in Emotes.lua to prevent animations being played while crawling.
Co-authored-by: iSentrie <xvender7@gmail.com>
* refactor: make global isProne uppercase
* fix: add prone check before playing anim
Add a check to see if we are prone before we play any animations.
TODO: This needs to be translated for all the different languages.
Co-Authored-By: iSentrie <29688478+iSentrie@users.noreply.github.com>
* refactor: add function for idle crawl anim
* refactor: increase blend in speed
* refactor: add ChangeHeadingSmooth func
* feat: add on back rotation anims
* feat: use PlayAnimOnce instead
* style: whitespace
* feat: add config to disable keybinds
* fix: convert to PlayAnimOnce func
We aren't loading anim dict, let's use PlayAnimOnce instead to make it simple.
* Update config default states
* refactor: remove unnecessary variable
keyPressed is just not needed, the command 'crouch' should't be fired at the same time regardless, so this can be safely removed.
* refactor: merge functions
* refactor: increase timer
Increase the amount of time we should wait before we move to the idle state again.
* fix: check if we are in water
Only needs to be in crawl, you should be able to crouch along the waterfront.
ClearPedTasks is also necessary to prevent the player getting stuck in an animation.
* refactor: remove chat message
As @iSentrie pointed out these are annoying in some situations. It's pretty self-explanatory why you can't crouch/crawl when these appear anyway.
Co-Authored-By: iSentrie <29688478+iSentrie@users.noreply.github.com>
* refactor: separate out exit crawl animations
* refactor: better crawl entry anim
* refactor: allow heading input on PlayIdleCrawlAnim
* refactor: use PlayIdleCrawlAnim instead
* fix: add inAction checks
Fixes issues @iSentrie commented on.
This may not cover all situations, needs more testing.
* refactor: flip anim
I've yet to find any good anims for this, this is the best, or least worst I've found so far.
Better to have something then to literately do a flip.
* fix: add point checks
Disable pointing while crawling.
* fix: remove clipsetreset
There should be no reason to reset the clipset/walkstyle. This will only mess with crouching.
* fix: disable weapon switching while prone
* fix: don't play idle anim if we can't crawl
We shouldn't play the anim as it will lead to weird behavior when ragdolling/falling while entry anim is played.
* fix: move inAction
Only set inAction to true when we actually can lay down.
* fix: missing pointing check
I'll just sneak this in here, "nobody will notice".
* fix: check if in animation
We should check if we are in an animation before crawling.
* refactor: remove command args
Remove command args to clean thing up. Suggested by @iSentrie
Co-Authored-By: iSentrie <29688478+iSentrie@users.noreply.github.com>
* refactor: cancel emote on crawl
As suggested by @iSentrie
Co-Authored-By: iSentrie <29688478+iSentrie@users.noreply.github.com>
* Add comments
* fix: add water checks
Add checks, to lazy to type more, read the code.
* fix: correct check statement
Don't juge me, it's late ok
Co-authored-by: iSentrie <xvender7@gmail.com>
Co-authored-by: iSentrie <29688478+iSentrie@users.noreply.github.com>
* 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.
* Major Update
- Convert to RPEmotes.
- Add support for colors on particles.
- Removed an unusual check when using the pay emote function.
- Added config option to change cancel key.
- Changed all keys to lowercase to prevent the "key no worky" bug.
- Changed the open key to f4.
- Improved and cleaner version check.
- Updated events as the usage was deprecated.
- Added a check to remove any unsupported emotes such as ones unsupported from game builds and improved the adult animation removal.
* Fix
* Changes
* Update README.md