Skip to content

Weapons (minigun, m4, ak, flamethrower etc.) causing game breaking glitches #4190

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

Open
1 task done
PrimelPrime opened this issue May 3, 2025 · 12 comments
Open
1 task done
Labels
bug Something isn't working

Comments

@PrimelPrime
Copy link

PrimelPrime commented May 3, 2025

Describe the bug

https://www.youtube.com/watch?v=Z24GbORQaks

As you can see in the video whenever using setPedControlState() it causes the game to glitch out completely throwing the camera around etc.

Steps to reproduce

  1. Give the ped any high firing rate weapon
  2. Use setPedControlState(ped, "fire", true)
  3. Go into the game get in a vehicle and startup your script
  4. See your game struggling

Alternatively you can download this map and run it in race gamemode:
https://mtaupload.com/download/dm-under-wonderland/

Version

Client: Multi Theft Auto v1.6-release-23147
Server: Unknown

Additional context

Relevant log output

Security Policy

  • I have read and understood the Security Policy and this issue is not security related.
@PrimelPrime PrimelPrime added the bug Something isn't working label May 3, 2025
@PrimelPrime PrimelPrime changed the title setPedAimTarget() with setPedControlState() causing game breaking glitches setPedControlState() causing game breaking glitches May 3, 2025
@PrimelPrime
Copy link
Author

Does not seem to happen when the ped is in somewhere on the normal gta sa

https://www.youtube.com/watch?v=Z24GbORQaks

@PrimelPrime
Copy link
Author

PrimelPrime commented May 3, 2025

after further investigation this only happens whenever you are in a vehicle
https://www.youtube.com/watch?v=4Xdteh--Evw

@Kermy1
Copy link

Kermy1 commented May 3, 2025

I also ran into this bug. Not all weapons trigger the camera bug. Melee weapons and the rifle and sniper seem fine but weapons like the flamethrower, minigun, ak-47 and other fast shooting weapons are problematic.

@PrimelPrime
Copy link
Author

PrimelPrime commented May 3, 2025

Yeah seems its not related to setPedControlState() but has more to do with weapons in general
Tested it with another client whos firing the weapon

@sacr1ficez
Copy link
Contributor

Try version r23124

@PrimelPrime PrimelPrime changed the title setPedControlState() causing game breaking glitches Weapons (minigun, m4, ak, flamethrower etc.) causing game breaking glitches May 3, 2025
@PrimelPrime
Copy link
Author

Try version r23124

issue remains

@sacr1ficez
Copy link
Contributor

So it's not caused by #4149

@PrimelPrime
Copy link
Author

PrimelPrime commented May 3, 2025

version r23115 works fine without the weapons causing that glitch
Maybe related to #4145 , I'm just guessing here tho

@PrimelPrime
Copy link
Author

PrimelPrime commented May 3, 2025

issue is related with the bug described in #4163

@Ambassador64
Copy link
Contributor

All 4145 does is just clamp values to normalize them so the firing target vector doesn't become NaN as well at the arm aim vector. It doesn't do much

@PrimelPrime
Copy link
Author

Does not seem to happen anymore in newest release r23167

@ArranTuna
Copy link
Collaborator

Try that bug without being in a vehicle. If you go invisible instead, then it's a duplicate of #4163

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants