Mtasa-blue: Jump and climb controls ignore setElementCollidableWith

Created on 26 Oct 2020  路  5Comments  路  Source: multitheftauto/mtasa-blue

Describe the bug
Jump and climb controls/animations ignore setElementCollidableWith function (client-side).

To reproduce

  1. Create an object
  2. Make the object non-collidable with localPlayer
  3. Try to jump while inside the object or climb on it

Expected behaviour
localPlayer shouldn't collide with the object

Version
1.5.8

Video
https://www.youtube.com/watch?v=aNkUXZmpihk

bug

Most helpful comment

Lets make this a feature, and add a note to the wiki that they need to disable it.
It has been like this since forever, it's not something that got introduced with the surface properties PR.

All 5 comments

Thanks for the report.

Can you test if canclimb affects it?

https://wiki.multitheftauto.com/wiki/EngineSetSurfaceProperties

As well, can you provide a test script that resembles what is seen in your video?

Thanks,

Only these two lines were relevant to the issue,

object = createObject(983, 0,0,2,90,90,90)
setElementCollidableWith(localPlayer, object, false)

and engineSetSurfaceProperties(55, "canclimb", false) affected it, cant collide with the object anymore.

Thanks for testing. We can/maybe should force that surface property in conjunction with setElementCollidableWith, but we may not. I'll let others voice their opinions so we can decide a path forward.

Lets make this a feature, and add a note to the wiki that they need to disable it.
It has been like this since forever, it's not something that got introduced with the surface properties PR.

Nice find. We might need a way to change surface properties per object, or more likely, just patch some jumping code to ignore non-collidable objects.

Was this page helpful?
0 / 5 - 0 ratings