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

Add more rope related features

Open gta191977649 opened this issue 3 years ago • 3 comments

This PR attempt to implement some additional roped related feature in CObjects:

  • 0796: GET_ROPE_HEIGHT_FOR_OBJECT - Object.GetRopeHeight(self: Object, var height: float)
  • 0797: SET_ROPE_HEIGHT_FOR_OBJECT - Object.SetRopeHeight(self: Object, height: float)

working in progress

gta191977649 avatar Apr 02 '22 14:04 gta191977649

You might be interested: https://github.com/lopezloo/mtasa-blue/tree/ropes https://github.com/lopezloo/mtasa-blue/commits/ropes?author=lopezloo https://github.com/lopezloo/mtasa-blue/blob/ropes/MTA10/game_sa/CRopeSA.h https://github.com/lopezloo/mtasa-blue/blob/ropes/MTA10/game_sa/CRopeSA.cpp https://github.com/lopezloo/mtasa-blue/blob/ropes/MTA10/game_sa/CRopesSA.h https://github.com/lopezloo/mtasa-blue/blob/ropes/MTA10/game_sa/CRopesSA.cpp

I have implemented ropes in this branch. I'm not sure though if there is point in adding this to MTA since it can be implemented in Lua.

lopezloo avatar Apr 02 '22 17:04 lopezloo

now the GetRopeHeight and SetRopeHeight should work the reset is to figure out how does the height exactly works, seems setting it to 1 will cause the magnet to fall off. NOTE: test it with object 1382, other object id seems will crash the client, I haven't made the check in code yet.

gta191977649 avatar Apr 02 '22 17:04 gta191977649

You might be interested: https://github.com/lopezloo/mtasa-blue/tree/ropes https://github.com/lopezloo/mtasa-blue/commits/ropes?author=lopezloo

I have implemented ropes in this branch. I'm not sure though if there is point in adding this to MTA since it can be implemented in Lua.

You might be interested: https://github.com/lopezloo/mtasa-blue/tree/ropes https://github.com/lopezloo/mtasa-blue/commits/ropes?author=lopezloo

I have implemented ropes in this branch. I'm not sure though if there is point in adding this to MTA since it can be implemented in Lua.

maybe for someone who wants to re-create the crane, like in single-player, I know it can be done in pain Lua, but this is the vanllia sa methods :p

gta191977649 avatar Apr 02 '22 17:04 gta191977649

This draft pull request is stale because it has been open for at least 90 days with no activity. Please continue on your draft pull request or it will be closed in 30 days automatically.

github-actions[bot] avatar Oct 03 '22 02:10 github-actions[bot]

This draft pull request was closed because it has been marked stale for 30 days with no activity.

github-actions[bot] avatar Nov 02 '22 02:11 github-actions[bot]