Intosia 0 Posted January 6, 2009 Share Posted January 6, 2009 well... i understand how ppl rush releases with gtabut isnt that somn' the author should do? What? Compile? No, its a hook, so you need to add your own code. So without sourcecode its useless Link to post Share on other sites
GAK 0 Posted January 6, 2009 Share Posted January 6, 2009 I will try in a few days to use the C++ hook to enable the Ragdoll. So we'll have to wait unless someone else knows the C++ and can do it before me? Link to post Share on other sites
HippieCommunist 28 Posted January 6, 2009 Share Posted January 6, 2009 gimmie G gimmie A gimmie K goooooooooo GAK! Link to post Share on other sites
Demonith 0 Posted January 6, 2009 Share Posted January 6, 2009 This will be nice Link to post Share on other sites
SaintJimmy 161 Posted January 7, 2009 Author Share Posted January 7, 2009 what exactly did you intend by making this post? there already is enough useless spam here. excellent work on the progress, modders. Link to post Share on other sites
Scortch 0 Posted January 7, 2009 Share Posted January 7, 2009 Hey Im new here, and i have never ever coded anything if thats what it's called xD But i saw this on, side... 4 i think : PLAYER_ID, PLAYER_INDEX, PLAYER_CHAR, SAVEDONE, TIMER = 0 function InitScript() -- blah-blah-blah Wait(10000) end function WaitForPlayerPoolCreation() while (IsPlayerPoolCreated() == 0) do Wait(2000) end end function WaitForValidPlayer() PLAYER_CHAR = 0 repeat CallNative("GET_PLAYER_ID") PLAYER_ID = GetIntResult() if (PLAYER_ID >= 0) then PushInt(PLAYER_ID) CallNative("CONVERT_INT_TO_PLAYERINDEX") PLAYER_INDEX = GetIntResult() PushInt(PLAYER_INDEX) PushVarPtr() CallNative("GET_PLAYER_CHAR") PLAYER_CHAR = GetIntParam(1) if (PLAYER_CHAR <= 0) then Wait(1000) end end until (PLAYER_CHAR > 0) end function main() InitScript() while true do if (IsKeyPressed(35) == 1) then WaitForPlayerPoolCreation() if (IsKeyPressed(35) == 1) then WaitForValidPlayer() PushInt(PLAYER_CHAR) CallNative("START_CHAR_FIRE") Wait(20) PushInt(PLAYER_CHAR) CallNative("EXTINGUISH_CHAR_FIRE") end end Wait(300) end end -- start main(); And i have heard frome some1 that this can do the trick, i just wonder where to put it? Link to post Share on other sites
LiFe161 0 Posted January 7, 2009 Share Posted January 7, 2009 when you have alice ... go to the lua folder and create a *.lua file where you add this code Link to post Share on other sites
L0uNGeR 0 Posted January 7, 2009 Share Posted January 7, 2009 I don't know how to go back to normal, I think it has something to do with SWITCH_PED_TO_ANIMATED. I also don't know if it works on Niko. function IsPedRagdoll(ped) --** IS_PED_RAGDOLL --** Params:1 Return:True PushInt(ped) -- 0: (int) Target ped CallNative("IS_PED_RAGDOLL") -------------- NATIVE CALL return GetIntResult() ------ (int) Is ped a ragdoll? 1/0 yes/noendfunction RagdollPed(ped) if IsPedRagdoll(ped) == 0 then --** CLEAR_CHAR_TASKS_IMMEDIATELY --** Params:1 Return:False PushInt(ped) -- 0: (int) Target char CallNative("CLEAR_CHAR_TASKS_IMMEDIATELY") -------------- NATIVE call --** SWITCH_PED_TO_RAGDOLL --** Params:7 Return:True PushInt(ped) -- 0: (int) Target ped PushInt(20000) -- 1: (int) ??? PushInt(30000) -- 2: (int) ??? PushInt(0) -- 3: (int) ??? PushInt(0) -- 4: (int) ??? PushInt(0) -- 5: (int) ??? PushInt(0) -- 6: (int) ??? CallNative("SWITCH_PED_TO_RAGDOLL") -------------- NATIVE call endend Oh and don't try to run it on a char that is already a ragdoll, it will crash. Have fun. Link to post Share on other sites
Scortch 0 Posted January 7, 2009 Share Posted January 7, 2009 when you have alice ... go to the lua folder and create a *.lua file where you add this code I have the alice folder, and iguess the lua thing is the file inside the alice map? And, after i have opened the alice folder, what do u then wan't me 2 do next? Link to post Share on other sites
Scortch 0 Posted January 7, 2009 Share Posted January 7, 2009 I don't know how to go back to normal, I think it has something to do with SWITCH_PED_TO_ANIMATED.I also don't know if it works on Niko. function IsPedRagdoll(ped) --** IS_PED_RAGDOLL --** Params:1 Return:True PushInt(ped) -- 0: (int) Target ped CallNative("IS_PED_RAGDOLL") -------------- NATIVE CALL return GetIntResult() ------ (int) Is ped a ragdoll? 1/0 yes/noendfunction RagdollPed(ped) if IsPedRagdoll(ped) == 0 then --** CLEAR_CHAR_TASKS_IMMEDIATELY --** Params:1 Return:False PushInt(ped) -- 0: (int) Target char CallNative("CLEAR_CHAR_TASKS_IMMEDIATELY") -------------- NATIVE call --** SWITCH_PED_TO_RAGDOLL --** Params:7 Return:True PushInt(ped) -- 0: (int) Target ped PushInt(20000) -- 1: (int) ??? PushInt(30000) -- 2: (int) ??? PushInt(0) -- 3: (int) ??? PushInt(0) -- 4: (int) ??? PushInt(0) -- 5: (int) ??? PushInt(0) -- 6: (int) ??? CallNative("SWITCH_PED_TO_RAGDOLL") -------------- NATIVE call endend Oh and don't try to run it on a char that is already a ragdoll, it will crash. Have fun. I don'r really know what i have to do with these codes? I tryed open the alice folder, and then i opened the "PUT YOUR ALICE LUA SCRIPTS HERE" and droped the code in there, startet the game and pressed end and page up and page down, nottin' happend... Is it me who are doin' sommin wrong? Link to post Share on other sites
HippieCommunist 28 Posted January 8, 2009 Share Posted January 8, 2009 I don't know how to go back to normal, I think it has something to do with SWITCH_PED_TO_ANIMATED.I also don't know if it works on Niko. same as always Oh and don't try to run it on a char that is already a ragdoll, it will crash. Have fun. this dosnt work on niko - CONFIRMED Link to post Share on other sites
Demonith 0 Posted January 8, 2009 Share Posted January 8, 2009 Keep up guys god work Link to post Share on other sites
HippieCommunist 28 Posted January 8, 2009 Share Posted January 8, 2009 have another possitive confirmation that its STABLE with the C++ hook!! lets hope some saint upload a rdy .ASI Link to post Share on other sites
HippieCommunist 28 Posted January 8, 2009 Share Posted January 8, 2009 another amusing thing: function IsPedRagdoll(ped) --** IS_PED_RAGDOLL --** Params:1 Return:True PushInt(ped) -- 0: (int) Target ped CallNative("IS_PED_RAGDOLL") -------------- NATIVE CALL return GetIntResult() ------ (int) Is ped a ragdoll? 1/0 yes/noend Oh and don't try to run it on a char that is already a ragdoll, it will crash.Have fun. why? Link to post Share on other sites
L0uNGeR 0 Posted January 8, 2009 Share Posted January 8, 2009 That is amusing actually. I meant to say that you shouldn't use SWITCH_PED_TO_RAGDOLL on a ragdoll, cause it will crash. This comment doesn't apply to my RagdollPed() function. Link to post Share on other sites
HippieCommunist 28 Posted January 8, 2009 Share Posted January 8, 2009 MY MOD reply guys plz Link to post Share on other sites
HippieCommunist 28 Posted January 9, 2009 Share Posted January 9, 2009 [Q] Togglable Ragdoll Mode (Pages 1 2 3 ...6 )I think it would be ... easy? 6 pages, YOU tell me... Link to post Share on other sites
iristrauma 0 Posted January 9, 2009 Share Posted January 9, 2009 That is amusing actually.I meant to say that you shouldn't use SWITCH_PED_TO_RAGDOLL on a ragdoll, cause it will crash. This comment doesn't apply to my RagdollPed() function. How did you do that ped smashing dude..? Looks fun.. HippieCommunist Can you make a version with bindable keys or is it possible to change it to something we prefer..? Link to post Share on other sites
Intosia 0 Posted January 9, 2009 Share Posted January 9, 2009 That is amusing actually.I meant to say that you shouldn't use SWITCH_PED_TO_RAGDOLL on a ragdoll, cause it will crash. This comment doesn't apply to my RagdollPed() function. How did you do that ped smashing dude..? Looks fun.. HippieCommunist Can you make a version with bindable keys or is it possible to change it to something we prefer..? if ((GetAsyncKeyState(VK_F5) & 1) != 0){ bEnabled = !bEnabled;}if ((bEnabled) || ((GetAsyncKeyState(VK_F6) & 1) != 0) ){ Char c; Car car; u32 playerIndex = ConvertIntToPlayerIndex(GetPlayerId()); GetPlayerChar(playerIndex, &c); f32 x,y,z; GetCharCoordinates(c, &x, &y, &z); car = GetClosestCar(x, y, z, 10.0, false, 60); ApplyForceToCar(car, 3, 30.0, -20.0, 0.0, 0.0, 0.0, 0.0, 0, 1, 1, 1);} in C++ for Hook, happy now? Link to post Share on other sites
iristrauma 0 Posted January 9, 2009 Share Posted January 9, 2009 That is amusing actually.I meant to say that you shouldn't use SWITCH_PED_TO_RAGDOLL on a ragdoll, cause it will crash. This comment doesn't apply to my RagdollPed() function. How did you do that ped smashing dude..? Looks fun.. HippieCommunist Can you make a version with bindable keys or is it possible to change it to something we prefer..? if ((GetAsyncKeyState(VK_F5) & 1) != 0){ bEnabled = !bEnabled;}if ((bEnabled) || ((GetAsyncKeyState(VK_F6) & 1) != 0) ){ Char c; Car car; u32 playerIndex = ConvertIntToPlayerIndex(GetPlayerId()); GetPlayerChar(playerIndex, &c); f32 x,y,z; GetCharCoordinates(c, &x, &y, &z); car = GetClosestCar(x, y, z, 10.0, false, 60); ApplyForceToCar(car, 3, 30.0, -20.0, 0.0, 0.0, 0.0, 0.0, 0, 1, 1, 1);} in C++ for Hook, happy now? Sorry dude, that means nothing to me. I have zero knowledge of asi & c++ and hook etc.. Link to post Share on other sites
L0uNGeR 0 Posted January 9, 2009 Share Posted January 9, 2009 If you have the C++ hook up and running, you add this to "CustomThread::RunTick()" bool bEnabled;if ((GetAsyncKeyState(VK_F5) & 1) != 0){bEnabled = !bEnabled;}if ((bEnabled) || ((GetAsyncKeyState(VK_F6) & 1) != 0) ){Char c;Car car;u32 playerIndex = ConvertIntToPlayerIndex(GetPlayerId());GetPlayerChar(playerIndex, &c);f32 x,y,z;GetCharCoordinates(c, &x, &y, &z);car = GetClosestCar(x, y, z, 10.0, false, 60); ApplyForceToCar(car, 3, 30.0, -20.0, 0.0, 0.0, 0.0, 0.0, 0, 1, 1, 1);} Link to post Share on other sites
Intosia 0 Posted January 9, 2009 Share Posted January 9, 2009 That is amusing actually.I meant to say that you shouldn't use SWITCH_PED_TO_RAGDOLL on a ragdoll, cause it will crash. This comment doesn't apply to my RagdollPed() function. How did you do that ped smashing dude..? Looks fun.. HippieCommunist Can you make a version with bindable keys or is it possible to change it to something we prefer..? if ((GetAsyncKeyState(VK_F5) & 1) != 0){ bEnabled = !bEnabled;}if ((bEnabled) || ((GetAsyncKeyState(VK_F6) & 1) != 0) ){ Char c; Car car; u32 playerIndex = ConvertIntToPlayerIndex(GetPlayerId()); GetPlayerChar(playerIndex, &c); f32 x,y,z; GetCharCoordinates(c, &x, &y, &z); car = GetClosestCar(x, y, z, 10.0, false, 60); ApplyForceToCar(car, 3, 30.0, -20.0, 0.0, 0.0, 0.0, 0.0, 0, 1, 1, 1);} in C++ for Hook, happy now? Sorry dude, that means nothing to me. I have zero knowledge of asi & c++ and hook etc.. Then look in the ASI Topic on page 38 or 37, theres is Loungers LUA version of this, Link to post Share on other sites
L0uNGeR 0 Posted January 12, 2009 Share Posted January 12, 2009 I have just managed to create a function for ragdoll niko (on/off toggle), I'll create a video tomorrow. Link to post Share on other sites
Killuminati91 0 Posted January 12, 2009 Share Posted January 12, 2009 I have just managed to create a function for ragdoll niko (on/off toggle), I'll create a video tomorrow. its already out Link to post Share on other sites
aceship 0 Posted January 12, 2009 Share Posted January 12, 2009 i Didnt see it, but i just done the ragdoll Link to post Share on other sites
L0uNGeR 0 Posted January 12, 2009 Share Posted January 12, 2009 Ya it's quite easy and I'm pretty sure I tried the same code on LUA but never worked, it's works with the C++ hook though. When I toggle the Ragdoll off, he just stands up straight in an instant, anyone know how to prevent this? Link to post Share on other sites
HippieCommunist 28 Posted January 12, 2009 Share Posted January 12, 2009 Ya it's quite easy and I'm pretty sure I tried the same code on LUA but never worked, it's works with the C++ hook though.When I toggle the Ragdoll off, he just stands up straight in an instant, anyone know how to prevent this? yeah, when calling the SwithPedToRagdoll func, set the last 4 flags to '0' SwithPedToRagdoll(player, 10000, 10000, 0, 0, 0, 0) like that Link to post Share on other sites
L0uNGeR 0 Posted January 13, 2009 Share Posted January 13, 2009 Thnx, you happen to know what all the params do? Link to post Share on other sites
aceship 0 Posted January 13, 2009 Share Posted January 13, 2009 we need a ragdoll that can attached to car like the one when you go to up of a car and the car moved before going to up of the car. Link to post Share on other sites