Mtasa-blue: setCameraShakeLevel(0) setting wrong camera shake level

Created on 3 Dec 2018  路  10Comments  路  Source: multitheftauto/mtasa-blue

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

  1. crun setCameraShakeLevel(255)
  2. crun setCameraShakeLevel(0)
  3. Repeat points 1 and 2 multiple times until when setting camera shake level 0 the camera will start shaking again.
  4. crun getCameraShakeLevel() will return 0 when it's obvious the camera isn't steady, but still shaking.

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!

bug

All 10 comments

I have discovered the same issue a long time ago, i never reported it tho... Thanks.

  • Seems that srun setElementDimension(plr, 1) actually resets the camera to the actual shake level. Works for any other dimension.

  • Player's death seems to cause bugging of the effect most of times.

I can confirm the player death bugs this very often

I can't reproduce it, maybe a video or something?

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

@Unde-R https://streamable.com/bz3hdr

how did you manage to get it stuck, so I can test?

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.
The script checks and overwrites it in every 15 seconds, and after a short time gets bugged.

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.
The script checks and overwrites it in every 15 seconds, and after a short time gets bugged.

oh alright, gonna check

Was this page helpful?
0 / 5 - 0 ratings