mtasa-blue
mtasa-blue copied to clipboard
Weapons (minigun, m4, ak, flamethrower etc.) causing game breaking glitches
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
- Give the ped any high firing rate weapon
- Use setPedControlState(ped, "fire", true)
- Go into the game get in a vehicle and startup your script
- 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.
Does not seem to happen when the ped is in somewhere on the normal gta sa
https://www.youtube.com/watch?v=Z24GbORQaks
after further investigation this only happens whenever you are in a vehicle https://www.youtube.com/watch?v=4Xdteh--Evw
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.
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
Try version r23124
Try version r23124
issue remains
So it's not caused by #4149
version r23115 works fine without the weapons causing that glitch Maybe related to #4145 , I'm just guessing here tho
issue is related with the bug described in #4163
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
Does not seem to happen anymore in newest release r23167
Try that bug without being in a vehicle. If you go invisible instead, then it's a duplicate of #4163
Fixed in #4174