Demonith 0 Posted December 27, 2008 Share Posted December 27, 2008 Can u do somthing like this http://au.youtube.com/watch?v=VkcR1rrkSg8&...ynext=1&index=4 Link to post Share on other sites
HippieCommunist 28 Posted December 27, 2008 Share Posted December 27, 2008 ah cmon if theres anyone with basic lua knowledge PLEASE i BEG you to create that script I know someone, but she's busy with real life atm. I'll ask her when he comes on MSN next. dude... whatever whes busy with WE can help! Link to post Share on other sites
Se7oOo0 0 Posted December 28, 2008 Share Posted December 28, 2008 U play too much Saint's Row 2 !!!!!! Link to post Share on other sites
Foogooman 0 Posted December 28, 2008 Share Posted December 28, 2008 God damn we need this script. Link to post Share on other sites
HippieCommunist 28 Posted December 28, 2008 Share Posted December 28, 2008 i have THIS idea... also maybe any1 knows how to create a little explosion on the player's position this might trigger the dam ragdoll! Link to post Share on other sites
Killuminati91 0 Posted December 28, 2008 Share Posted December 28, 2008 i have THIS idea... also maybe any1 knows how to create a little explosion on the player's position this might trigger the dam ragdoll! but that would kinda blast you away, even if it was only little. We want to be able to turn into ragdoll out of movement, so that you fall in the right direction. Link to post Share on other sites
HippieCommunist 28 Posted December 28, 2008 Share Posted December 28, 2008 if the damage/force value is gonna be set to 0.0000000001 the body movement will continue in that direction... Link to post Share on other sites
sk8er_martz 0 Posted December 28, 2008 Share Posted December 28, 2008 (edited) Rather than looking at being hit by a car or damaged, surely it'd be more obvious to look at the scripts revolving going to the bar and getting drunk? Being able to go drunk at the push of the button than actual ragdoll would be the same if not better because the drunk walking is pretty much euphoria trying its best to be an entirely physicalized walking animation. If you could jump and go drunk you'd most likely fall, same with going down stairs, it's be so fun! Can u do somthing like this http://au.youtube.com/watch?v=VkcR1rrkSg8&...ynext=1&index=4 Oh hey that's my video! Edited December 28, 2008 by sk8er_martz Link to post Share on other sites
HippieCommunist 28 Posted December 29, 2008 Share Posted December 29, 2008 (edited) PLAYER_ID, PLAYER_INDEX, PLAYER_CHAR, SAVEDONE, TIMER = 0function InitScript() -- blah-blah-blah Wait(10000)endfunction WaitForPlayerPoolCreation() while (IsPlayerPoolCreated() == 0) do Wait(2000) endendfunction 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-- startmain(); first sort of ragdoll enabler ^^ check it out! PRESS 'END' to enable ragdoll it comes with a little blind shooting time Edited December 29, 2008 by HippieCommunist Link to post Share on other sites
-TRASE- 0 Posted December 29, 2008 Share Posted December 29, 2008 EPIC first sort of ragdoll enabler ^^ check it out! PRESS 'END' to enable ragdoll it comes with a little blind shooting time you should set wait to 1 Link to post Share on other sites
Killuminati91 0 Posted December 29, 2008 Share Posted December 29, 2008 (edited) bla first sort of ragdoll enabler ^^ check it out! PRESS 'END' to enable ragdoll it comes with a little blind shooting time doesnt do anything for me?! E/ Ah i had to disable superman Not bad not bad, now we just need that to be able to trigger in air too and be invincible Edited December 29, 2008 by Killuminati91 Link to post Share on other sites
buttermilkchickenpig 0 Posted December 29, 2008 Share Posted December 29, 2008 (edited) Thanks Hippie. Works good. I have noticed that when you fall off an edge of a building Niko trys to grab things to live. Never seen this without your script. It is compatible with setting a high health via http://www.gtaforums.com/index.php?showtopic=387974&st=20 Edited December 29, 2008 by buttermilkchickenpig Link to post Share on other sites
Codey 0 Posted December 29, 2008 Share Posted December 29, 2008 Try to activate it when you're in the water. It looks like Niko can't swim. Link to post Share on other sites
LiFe161 0 Posted December 29, 2008 Share Posted December 29, 2008 what do I need to file these codes (info) blah .. Insert etc? Link to post Share on other sites
HippieCommunist 28 Posted December 30, 2008 Share Posted December 30, 2008 yeah he kinna looks like a retarded epileptic damn i wish sum1 would come up with some euphoria modding tool soon... ive added PushInt(PLAYER_CHAR)PushInt(1000)CallNative("SET_CHAR_HEALTH") to the code to play with it, it restores ur health. Link to post Share on other sites
aceship 0 Posted December 30, 2008 Share Posted December 30, 2008 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(); Hey, this is Kinda like mine! Check:http://www.gtaforums.com/index.php?showtopic=387534&hl=fire Link to post Share on other sites
HippieCommunist 28 Posted December 30, 2008 Share Posted December 30, 2008 damn it does... why didnt u say anything? dont u know the fire activates ragdoll? Link to post Share on other sites
aceship 0 Posted December 30, 2008 Share Posted December 30, 2008 no time to say , and you are not asking me Link to post Share on other sites
iPetrovic 0 Posted December 30, 2008 Share Posted December 30, 2008 Would it? All in all just, at the touch of a key, Niko goes into ragdoll-mode for either a set amount of time, or until the button is pressed again, OR he is in ragdoll for as long as the button is held down, but once it is let go it returns back to normal. Is that possible? You, achievements hacker. I saw you got 1000G for GTA IV PC in just a day. Complaint to Xbox LIVE... good luck! Link to post Share on other sites
LiFe161 0 Posted December 30, 2008 Share Posted December 30, 2008 (edited) the drunk ragdoll mode is better =) Edited December 30, 2008 by LiFe161 Link to post Share on other sites
HippieCommunist 28 Posted December 30, 2008 Share Posted December 30, 2008 Would it? All in all just, at the touch of a key, Niko goes into ragdoll-mode for either a set amount of time, or until the button is pressed again, OR he is in ragdoll for as long as the button is held down, but once it is let go it returns back to normal. Is that possible? You, achievements hacker. I saw you got 1000G for GTA IV PC in just a day. Complaint to Xbox LIVE... good luck! now thats pure topic spam! PM dosnt stands for Pre-Mature @LiFe161 - so its up to you to find the native that makes niko drunk! Link to post Share on other sites
LiFe161 0 Posted December 30, 2008 Share Posted December 30, 2008 hmm i dont know otherwise I would be looking for but i dont say that is sh*t ^^ .. this is cool =) i like the gta iv ragdoll engine Link to post Share on other sites
Killuminati91 0 Posted January 1, 2009 Share Posted January 1, 2009 any update on this? Link to post Share on other sites
GAK 0 Posted January 1, 2009 Share Posted January 1, 2009 (edited) Hello, I think this script can do what you want(press F7). ---------- GTA IV Alice "Ragdoll" script -------------------- Majority of code © GAK 2008 ------------global variables PLAYER_ID, PLAYER_INDEX, PLAYER_CHAR = 0function InitScript() -- blah-blah-blah Wait(10000)endfunction WaitForPlayerPoolCreation() while (IsPlayerPoolCreated() == 0) do Wait(2000) endendfunction 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) endend until (PLAYER_CHAR > 0)endfunction WaitForKeyUp(KeyCod)while (IsKeyPressed(KeyCod) == 1) do Wait(200)endendfunction main() InitScript() while true do--If the key F7 is pressif (IsKeyPressed(118) == 1) then --Check if the game is started WaitForPlayerPoolCreation() WaitForValidPlayer() --Wait until key is Up(if not wait the code runs many times) WaitForKeyUp(118) --Switch ragdoll Wait(100) PushInt(PLAYER_CHAR) PushInt(0) PushInt(10000) -- Time to recover if the following line is PushInt(1) PushInt(0) PushInt(0) PushInt(0) PushInt(0) CallNative("SWITCH_PED_TO_RAGDOLL")endWait(200) endend-- startmain(); EDIT : Supress "fadescreen" error. Edited January 1, 2009 by GAK Link to post Share on other sites
Intosia 0 Posted January 1, 2009 Share Posted January 1, 2009 Hello,I think this script can do what you want(press F7). --SNIP-- Doesnt work... First off FadeScreen doesnt exist. And second it does nothing, and if pressed 3 times game crashes. Link to post Share on other sites
GAK 0 Posted January 1, 2009 Share Posted January 1, 2009 Sorry for the error and for me it's work some time but it's actually strangely crash at some point it all depends on what we do. I try UNLOCK_RAGDOLL function but it's only blocking the activation of the ragdoll when the player comes into collision with a car or something else that active ragdoll. Link to post Share on other sites
sk8er_martz 0 Posted January 1, 2009 Share Posted January 1, 2009 Sorry for the error and for me it's work some time but it's actually strangely crash at some point it all depends on what we do. I try UNLOCK_RAGDOLL function but it's only blocking the activation of the ragdoll when the player comes into collision with a car or something else that active ragdoll. Now my fps goes low and then it crashes after a few seconds, nothing hapens to Niko or anything. Link to post Share on other sites
HippieCommunist 28 Posted January 1, 2009 Share Posted January 1, 2009 (edited) yeah ive been trying all day here is my code PLAYER_ID, PLAYER_INDEX, PLAYER_CHAR, SAVEDONE, TIMER = 0function InitScript()-- blah-blah-blahWait(10000)endfunction WaitForPlayerPoolCreation()while (IsPlayerPoolCreated() == 0) do Wait(2000)endendfunction WaitForValidPlayer()PLAYER_CHAR = 0repeat 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 enduntil (PLAYER_CHAR > 0) endfunction start() PushInt(PLAYER_CHAR) PushInt(1) PushInt(65534) PushInt(1) PushInt(1) PushInt(1) PushInt(0) CallNative("SWITCH_PED_TO_RAGDOLL")Wait(30) PushInt(1) PushInt(79) CallNative("CREATE_NM_MESSAGE") PushInt(1) PushInt(95) CallNative("SET_NM_MESSAGE_BOOL") PushInt(85) PushInt(65535) CallNative("SET_NM_MESSAGE_INT") PushInt(PLAYER_CHAR) CallNative("SEND_NM_MESSAGE") PushInt(PLAYER_ID) PushInt(1) CallNative("GIVE_PLAYER_RAGDOLL_CONTROL")endfunction stop() PushInt(PLAYER_CHAR) CallNative("CLEAR_CHAR_TASKS") PushInt(0) PushInt(79) CallNative("CREATE_NM_MESSAGE") PushInt(PLAYER_CHAR) CallNative("SEND_NM_MESSAGE") PushInt(PLAYER_CHAR) PushInt(0) CallNative("SWITCH_PED_TO_ANIMATED") PushInt(PLAYER_CHAR) PushInt(PLAYER_ID) PushInt(0) CallNative("GIVE_PLAYER_RAGDOLL_CONTROL")Wait(100)endfunction main()InitScript()while true do WaitForPlayerPoolCreation() WaitForValidPlayer() if (IsKeyPressed(34) == 1) thenstart()Wait(300)end if (IsKeyPressed(33) == 1) thenstop()Wait(300)endWait(300)endend-- startmain(); press PGDN to ragdoll drunk press PGUP to get up it makes niko drunk balanced while ragdolled but it only works if player is idle (holding the phone before u press PGDN helps load anims maybe) -also notice that the function (switch to ped) returns a value, probably the is_ped_ragdoll. theres a pop after the line is called Edited January 1, 2009 by HippieCommunist Link to post Share on other sites
HippieCommunist 28 Posted January 1, 2009 Share Posted January 1, 2009 (edited) i think something needs to be loaded before like... anims... or some sort of NM_FEEDBACK ?_? dunno -edit i found ragdoll_trans.wad/ragdoll_trans_back.wad that probably needs preloading, and for that i think we need Alice 0.2 for string support Edited January 2, 2009 by HippieCommunist Link to post Share on other sites
HippieCommunist 28 Posted January 2, 2009 Share Posted January 2, 2009 sry double bumping post calling all LUA experts to make this one a bounty Link to post Share on other sites