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
setCameraShakeLevel(0) setting wrong camera shake level #723
Comments
I have discovered the same issue a long time ago, i never reported it tho... Thanks. |
|
I can confirm the player death bugs this very often |
I can't reproduce it, maybe a video or something? |
I can confirm it, happens really often, next time I record it. |
Oh well I'll see about it |
how did you manage to get it stuck, so I can test? |
I use this camera-shake as "hunger-effect", when player's character is hungry/thirsty. |
oh alright, gonna check |
This may fix multitheftauto#723 since it prevents overwritting the drunk level incase entered same value. Also in addition to what Lpsd said in multitheftauto#1197 I renamed it.
This may fix multitheftauto#723 since it prevents overwritting the drunk level incase entered same value. Also in addition to what Lpsd said in multitheftauto#1197 I renamed it.
It seems that changing dimension resets this effect, so there is a temporary workaround to remove camera shaking: local currDimension = getElementDimension(localPlayer)
setElementDimension(localPlayer, currDimension+1)
setElementDimension(localPlayer, currDimension) Unfortunately this is not the ideal solution, since it has some side effects. For example map objects disappear for a sec and also as I found out, some map objects loose its collision for some reason after using this. And I think you might even disappear for other players for a sec (but I haven't tested that). But yeah, it's something until setCameraShakeLevel gets fixed. |
Describe the bug
When setting setCameraShakeLevel(0) camera will not always stop shaking, instead it will act like if you used setCameraShakeLevel(255).
To reproduce
Expected behaviour
I'm expecting the camera to stop shaking when doing crun setCameraShakeLevel(0)
Version
Executing client-side command: for i, v in pairs(getVersion( )) do outputChatBox(tostring(i)..": "..tostring(v)) end
number: 342
netcode: 474
name: MTA:SA Client
sortable: 1.5.6-9.16068.0
mta: 1.5.6
type: Release
os: Windows
tag: 1.5.6-release-16068
Command executed!
The text was updated successfully, but these errors were encountered: