Skip to content

UsePlayerPedAnims, SA-MP to MTA skin aliases, other fixes #101

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
May 7, 2025

Conversation

NexiusTailer
Copy link
Contributor

@NexiusTailer NexiusTailer commented May 7, 2025

  1. Implemented UsePlayerPedAnims function which means now, by default, all players have ped walking animation groups like in SA-MP. To use CJ walk on all skins, UsePlayerPedAnims should be called somewhere in the pawn script. ped_anim.lua which has all walking styles for all skins (including MTA specific ones) is based on original peds.ide file (namely 6th field, which is the animGroup and it fully matches walking style IDs).
  2. Added GetPlayerIdleTime function to a_mta.lua and a_amx.inc since there is no true AFK concept in MTA like in SA-MP, so there should be some easy way to detect inactive players.
  3. GetVehicleDriver renamed to GetVehicleOccupant and now takes seatid as the second argument.
  4. Skin replacement system now works as neat as it can, considering all additional skins which exist both in SA-MP and MTA (in this case it just redirects the SA-MP ID to the right one from MTA) and also considering those SA-MP skins (> 299) which were made as custom variants of other ones from GTA:SA, but it's actually SA-MP specific skins (in this case it changes the skin to original GTA:SA model which was initially taken as a basis for that SA-MP specific skin).
  5. a_amx.inc was a bit updated with a more correct syntax of those strings which aren't implied to be changed.
  6. CJ has white singlet! Finally haha

Copy link
Collaborator

@colistro123 colistro123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, thanks for your contribution, I requested some changes, mainly regarding GetVehicleDriver being removed from the codebase. 😊

@colistro123
Copy link
Collaborator

I'm merging this, thank you for your contribution! 🎉

@colistro123 colistro123 merged commit 5083889 into multitheftauto:develop May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants