mtasa-blue icon indicating copy to clipboard operation
mtasa-blue copied to clipboard

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

Open PrimelPrime opened this issue 7 months ago • 12 comments

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

  • [x] I have read and understood the Security Policy and this issue is not security related.

PrimelPrime avatar May 03 '25 02:05 PrimelPrime

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

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

PrimelPrime avatar May 03 '25 03:05 PrimelPrime

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

PrimelPrime avatar May 03 '25 03:05 PrimelPrime

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.

Kermy1 avatar May 03 '25 08:05 Kermy1

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

PrimelPrime avatar May 03 '25 15:05 PrimelPrime

Try version r23124

sacr1ficez avatar May 03 '25 15:05 sacr1ficez

Try version r23124

issue remains

PrimelPrime avatar May 03 '25 15:05 PrimelPrime

So it's not caused by #4149

sacr1ficez avatar May 03 '25 15:05 sacr1ficez

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

PrimelPrime avatar May 03 '25 15:05 PrimelPrime

issue is related with the bug described in #4163

PrimelPrime avatar May 03 '25 19:05 PrimelPrime

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

Ambassador64 avatar May 03 '25 21:05 Ambassador64

Does not seem to happen anymore in newest release r23167

PrimelPrime avatar May 04 '25 18:05 PrimelPrime

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

ArranTuna avatar May 07 '25 09:05 ArranTuna

Fixed in #4174

botder avatar Jul 17 '25 21:07 botder