mtasa-blue
mtasa-blue copied to clipboard
Add more rope related features
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
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.
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.
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
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.
This draft pull request was closed because it has been marked stale for 30 days with no activity.