Skip to content
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

Fix #3037: Add ResetPedVoice function - Bug fix #3129

Conversation

TracerDS
Copy link
Contributor

The function was bugged; it was never actually resetting ped's voice due to internal mta's logic.
Now should be fixed, function returns true when the voice was successfully reset, returns false if the voice was not changed (ie. player joins the server, player executes resetPedVoice without ever calling setPedVoice)

The old PR (#3042) was merged, so I had to make new PR

Client/game_sa/CPedSA.h Outdated Show resolved Hide resolved
@lopezloo lopezloo added the bug Something isn't working label Jul 29, 2023
Client/game_sa/CPedSoundSA.h Outdated Show resolved Hide resolved
Client/game_sa/CPedSA.cpp Outdated Show resolved Hide resolved
@StrixG StrixG added bugfix Solution to a bug of any kind and removed bug Something isn't working labels Dec 21, 2023
@TracerDS TracerDS marked this pull request as draft February 5, 2024 17:38
Im done doing all the CPedSoundSA mess.
Instead I do a bit of a trickery and manually create default voice type and id variables and set them on initialisation.
Only small refactors but it will make it easier for future refactors
@TracerDS TracerDS force-pushed the 250523_Add_resetPedVoice_function_#3037 branch from b6eafa3 to f384481 Compare April 29, 2024 17:58
@TracerDS TracerDS requested review from tederis and sbx320 April 29, 2024 17:59
@TracerDS TracerDS marked this pull request as ready for review April 29, 2024 17:59
TracerDS and others added 3 commits April 29, 2024 20:04
In order to change that, everything else should be refactored.
There are ~32 classes that inherit GetType() from CClientEntity.
Its just better to leave it for future refactoring
@Dutchman101 Dutchman101 merged commit 3d8bd50 into multitheftauto:master May 25, 2024
6 checks passed
@TracerDS TracerDS deleted the 250523_Add_resetPedVoice_function_#3037 branch May 26, 2024 09:23
MegadreamsBE pushed a commit to MegadreamsBE/mtasa-blue that referenced this pull request Jun 6, 2024
…heftauto#3129)

The function ResetPedVoice never worked (it was added in PR multitheftauto#3037) but now it does.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Solution to a bug of any kind
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants