TheSangheili Posted March 19, 2018 Share Posted March 19, 2018 (edited) So madleg's ragdoll mod looks good, it makes SA more like IV, but it does not work for everyone and we don't have the source to fix it. And it is not compatible with all mods. Sadly madleg has not been active for 3 months or so, asking him for the source code is a long shot. I want to duplicate his work in pure C++, no cleo bull-poop. What I know: - Assembly - C++ - https://github.com/DK22Pac/plugin-sdk(Thanks to DK22Pac) What I don't know: - How to control the Ped, i.e. send the arms and legs flying around their joints, the limits of the joints...etc. - The physics of ragdoll. - I don't know the SDK very well. What I want: - Make dead bodies solid like IV. - When you run some fool over, your car slows down as if he weighs at least 400 kg. I want to correct that. - Add ragdoll simulation when the ped is dead or flying - Add ragdoll simulation when the ped is shot with a big gun (Shotgun, AK...) Can you give me some pointers (pun intended)? any help would be appreciated. Edited March 21, 2018 by TheSangheili kkjj, Hovac, Eny 437 and 3 others 6 Link to comment Share on other sites More sharing options...
4Arty Posted March 20, 2018 Share Posted March 20, 2018 Ask dk, only one of us can help you) TheSangheili 1 Link to comment Share on other sites More sharing options...
thalilmythos Posted March 20, 2018 Share Posted March 20, 2018 I still got the release he made Before the last, which is made purely on cleo, no asi maybe you could get the source from there? let me know if you want me to send it. TheSangheili 1 Link to comment Share on other sites More sharing options...
TheSangheili Posted March 20, 2018 Author Share Posted March 20, 2018 I still got the release he made Before the last, which is made purely on cleo, no asi maybe you could get the source from there? let me know if you want me to send it. Please do. Hopefully it won't have any custom opcodes. thalilmythos 1 Link to comment Share on other sites More sharing options...
Davve95 Posted March 20, 2018 Share Posted March 20, 2018 Will you relase it if you were allowed to? If it's done and be something kkjj 1 Link to comment Share on other sites More sharing options...
TheSangheili Posted March 20, 2018 Author Share Posted March 20, 2018 (edited) Will you relase it if you were allowed to? If it's done and be something That's the point, to release it, and to make it open source. And I don't think he would mind. I'll give him credit if I use his source, and I will give him credit for the idea. EDIT: I just realized you misspelled release, I would let it slide but grammar is very important to the Nazi party. Edited March 20, 2018 by TheSangheili Davve95 1 Link to comment Share on other sites More sharing options...
thalilmythos Posted March 21, 2018 Share Posted March 21, 2018 http://www.mediafire.com/file/sts4oueil6bk96u/RagDoll_physics%20before%20final%20release.rar Good luck man TheSangheili 1 Link to comment Share on other sites More sharing options...
Junior_Djjr Posted March 21, 2018 Share Posted March 21, 2018 (edited) which is made purely on cleo, no asi maybeBut... .cleo = .asi = .dllYou can also rename .cleo to .asi that you work. You will definitely need the source code. Edited March 21, 2018 by Junior_Djjr TheSangheili, kkjj and Grinch_ 3 Link to comment Share on other sites More sharing options...
TheSangheili Posted March 21, 2018 Author Share Posted March 21, 2018 (edited) http://www.mediafire.com/file/sts4oueil6bk96u/RagDoll_physics%20before%20final%20release.rar Good luck man Thank you. which is made purely on cleo, no asi maybe But... .cleo = .asi = .dllYou can also rename .cleo to .asi that you work. You will definitely need the source code. Ah! yes, there is a '.cleo' file. Not cleo scripts only... (A cleo plugin) He added some opcodes the the cleo library... It won't be the same as the source, but it is better that nothing. I just read the cleo sdk, I should be able to find out what opcodes were added, and by looking at what their callbacks do to gta_sa.exe, I should be able to understand what their functions are. Edited March 21, 2018 by TheSangheili Link to comment Share on other sites More sharing options...
thalilmythos Posted March 21, 2018 Share Posted March 21, 2018 (edited) http://www.mediafire.com/file/sts4oueil6bk96u/RagDoll_physics%20before%20final%20release.rar Good luck man Thank you. which is made purely on cleo, no asi maybe But... .cleo = .asi = .dllYou can also rename .cleo to .asi that you work. You will definitely need the source code. Ah! yes, there is a '.cleo' file. Not cleo scripts only... (A cleo plugin) He added some opcodes the the cleo library... It won't be the same as the source, but it is better that nothing. I just read the cleo sdk, I should be able to find out what opcodes were added, and by looking at what their callbacks do to gta_sa.exe, I should be able to understand what their functions are. Still, callbacks or not, it is purely cleo, and there are more tools for it so, you can get the information you need, like you just said so i'm glad i was helpfull, i do want to see what you are promissing happen Edited March 21, 2018 by thalilmythos Link to comment Share on other sites More sharing options...
TheSangheili Posted March 21, 2018 Author Share Posted March 21, 2018 (edited) Still, callbacks or not, it is purely cleo, and there are more tools for it so, you can get the information you need, like you just said so i'm glad i was helpfull, i do want to see what you are promissing happen It's so easy. All I have to do is find out where he called this (the debugger will do that for me): BOOL WINAPI CLEO_RegisterOpcode(WORD opcode, _pOpcodeHandler callback) Then I can read the code to get the Opcode (16bit integer) and the address of the function. Then I can jump to the address of the function to find out the number of parameters and their types: DWORD WINAPI CLEO_GetIntOpcodeParam(CScriptThread* thread);float WINAPI CLEO_GetFloatOpcodeParam(CScriptThread* thread);void WINAPI CLEO_SetIntOpcodeParam(CScriptThread* thread, DWORD value);void WINAPI CLEO_SetFloatOpcodeParam(CScriptThread* thread, float value);LPSTR WINAPI CLEO_ReadStringOpcodeParam(CScriptThread* thread, LPSTR buf, int size);void WINAPI CLEO_WriteStringOpcodeParam(CScriptThread* thread, LPCSTR str); Then I can add the opcodes to SannyBuilder (No, Tommy killed Sunny, not Sanny) and decompile the script. And there you go, Now I know what the parameters are. I can go back to the callbacks and try to guess what they are doing, Thanks to DK22Pac, I have the addresses of so many functions and structures I can find out what he is doing and rewrite the mod. It's only a matter of time. also this version is better that the last one because it is simpler. Edited March 21, 2018 by TheSangheili thalilmythos, † Death_Wolf 999 and 4Arty 3 Link to comment Share on other sites More sharing options...
DK22Pac Posted March 21, 2018 Share Posted March 21, 2018 (edited) Why do you strictly depend on this mod? I think you can learn some basics of bullet library and make your own mod. Also, I offered to help madleg, but he kinda ignored it. So I don't think it's a good idea to dig in his work. Edited March 21, 2018 by DK22Pac Grinch_, TheSangheili, kkjj and 1 other 4 Link to comment Share on other sites More sharing options...
TheSangheili Posted March 21, 2018 Author Share Posted March 21, 2018 (edited) Why do you strictly depend on this mod? I have no idea how to make the Ped 'floppy' and toss them around. And I know that If you set the ped's velocity to something small, the game will not send them flying unless they are already in the air. (I could be wrong or oblivious to the trick, should I NOP something?). And I don't know how to make the Ped solid when they're dead. I think you can learn some basics of bullet library and make your own mod. What do you mean bullet library? do you mean how bullets work in gta_sa? I am writing an asi plugin to make all bullets like the sniper bullet, i.e. delayed bullets not "instant_hit, created and destroyed in the same frame". It is still WIP. I did not finish the simulated M4 bullet. I also changed the limit to 4096 or whatever I want, and all bullets have traces. Also big bullets go through Peds and Cars (Not Tanks). But I don't want it to be just for bullets, I want SA to become like IV, dead bodies have mass & collision. And you can move them around with your car or if you kick them. I used to go to that building facing the apartment Niko & Roman fled to. and take cover at the end of the stairs just under the roof with the cops on my tail. I used to kill so many, the game can't load anymore peds. And when I try to get out I can't because the dead bodies are blocking Niko's big feet. That's what I want to do for SA. In gta_iv I used to alter the guns to have higher damage and force. When you blast a fool with the shotgun he would fly 2 meters. one time I shot a fat pin and he dropped his shotgun and it went off and hit his partner, IT WAS AWESOME! AND I WANT IT IN GTA_SA. Edited March 21, 2018 by TheSangheili kkjj, † Death_Wolf 999 and iAbokai 3 Link to comment Share on other sites More sharing options...
4Arty Posted March 21, 2018 Share Posted March 21, 2018 Why do you strictly depend on this mod? I have no idea how to make the Ped 'floppy' and toss them around. And I know that If you set the ped's velocity to something small, the game will not send them flying unless they are already in the air. (I could be wrong or oblivious to the trick, should I NOP something?). And I don't know how to make the Ped solid when they're dead. I think you can learn some basics of bullet library and make your own mod. What do you mean bullet library? do you mean how bullets work in gta_sa? I am writing an asi plugin to make all bullets like the sniper bullet, i.e. delayed bullets not "instant_hit, created and destroyed in the same frame". It is still WIP. I did not finish the simulated M4 bullet. I also changed the limit to 4096 or whatever I want, and all bullets have traces. Also big bullets go through Peds and Cars (Not Tanks). But I don't want it to be just for bullets, I want SA to become like IV, dead bodies have mass & collision. And you can move them around with your car or if you kick them. he means bullet physics library engine TheSangheili 1 Link to comment Share on other sites More sharing options...
TheSangheili Posted March 21, 2018 Author Share Posted March 21, 2018 (edited) This: https://github.com/bulletphysics/bullet3? Edited March 21, 2018 by TheSangheili kkjj 1 Link to comment Share on other sites More sharing options...
kkjj Posted March 21, 2018 Share Posted March 21, 2018 (edited) Yep. Edited March 21, 2018 by kkjj TheSangheili 1 Link to comment Share on other sites More sharing options...
Davve95 Posted March 21, 2018 Share Posted March 21, 2018 (edited) I also think you should create your own one because of what DK22Pac said. But maybe it will work anyway with madlegs work. Maybe you could come in contact with him at his YouTube channel in the comments. And if you not decide to use his work, you could just use his script for inspirations and help if you would get stuck. Edited March 21, 2018 by Davve95 Link to comment Share on other sites More sharing options...
TheSangheili Posted March 21, 2018 Author Share Posted March 21, 2018 Ok. I will start form scratch then... I hate cleo anyway. Eny 437 and kkjj 2 Link to comment Share on other sites More sharing options...
Junior_Djjr Posted March 22, 2018 Share Posted March 22, 2018 (edited) I also think you should create your own one because of what DK22Pac said.Idem. If you at least had the source code... but editing it this way is crazy. (and someone need to move this thread to the correct area) Edited March 22, 2018 by Junior_Djjr kkjj and TheSangheili 2 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now