Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. Red Dead Redemption 2

      1. PC
      2. Gameplay
      3. Missions
      4. Help & Support
    2. Red Dead Online

      1. Gameplay
      2. Find Lobbies & Outlaws
      3. Help & Support
      4. Frontier Pursuits
    1. Crews & Posses

      1. Recruitment
    2. Events

    1. GTA Online

      1. Diamond Casino & Resort
      2. DLC
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Grand Theft Auto Series

    3. GTA 6

    4. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    5. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA IV Mods
    6. GTA Chinatown Wars

    7. GTA Vice City Stories

    8. GTA Liberty City Stories

    9. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA SA Mods
    10. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA VC Mods
    11. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA III Mods
    12. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    13. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    3. Featured Mods

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption

    2. Rockstar Games

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Programming
      5. Movies & TV
      6. Music
      7. Sports
      8. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. News

    2. Forum Support

    3. Site Suggestions

Sign in to follow this  
SaintJimmy

[Q] Togglable Ragdoll Mode

Recommended Posts

Indi

 

ah cmon if theres anyone with basic lua knowledge PLEASE i BEG you to create that script sad.gif

I know someone, but she's busy with real life atm. I'll ask her when he comes on MSN next.

Share this post


Link to post
Share on other sites
HippieCommunist
ah cmon if theres anyone with basic lua knowledge PLEASE i BEG you to create that script sad.gif

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! blush.gif

Share this post


Link to post
Share on other sites
Se7oOo0
U play too much Saint's Row 2

!!!!!!

Share this post


Link to post
Share on other sites
Foogooman

God damn we need this script.

Share this post


Link to post
Share on other sites
HippieCommunist

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!

Share this post


Link to post
Share on other sites
Killuminati91
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.

Share this post


Link to post
Share on other sites
HippieCommunist

if the damage/force value is gonna be set to 0.0000000001 the body movement will continue in that direction...

Share this post


Link to post
Share on other sites
sk8er_martz

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!

 

 

 

Oh hey that's my video!

Edited by sk8er_martz

Share this post


Link to post
Share on other sites
HippieCommunist

 

 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 orly.gif

Edited by HippieCommunist

Share this post


Link to post
Share on other sites
-TRASE-
 EPIC

 

 

first sort of ragdoll enabler ^^

check it out!

 

PRESS 'END' to enable ragdoll

 

it comes with a little blind shooting time orly.gif

you should set wait to 1

Share this post


Link to post
Share on other sites
Killuminati91

 

bla

 

 

first sort of ragdoll enabler ^^

check it out!

 

PRESS 'END' to enable ragdoll

 

it comes with a little blind shooting time  orly.gif

doesnt do anything for me?! sad.gif

 

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 smile.gif

Edited by Killuminati91

Share this post


Link to post
Share on other sites
buttermilkchickenpig

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 by buttermilkchickenpig

Share this post


Link to post
Share on other sites
Codey

Try to activate it when you're in the water. It looks like Niko can't swim. biggrin.gif

Share this post


Link to post
Share on other sites
LiFe161

what do I need to file these codes (info) blah .. Insert etc?

Share this post


Link to post
Share on other sites
HippieCommunist

yeah he kinna looks like a retarded epileptic biggrin.gif

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.

Share this post


Link to post
Share on other sites
aceship

 

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

 

 

 

 

Share this post


Link to post
Share on other sites
HippieCommunist

damn it does... sneaky2.gif

why didnt u say anything? dont u know the fire activates ragdoll?

Share this post


Link to post
Share on other sites
aceship

no time to say , and you are not asking me tounge.gif

Share this post


Link to post
Share on other sites
iPetrovic
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!

Share this post


Link to post
Share on other sites
LiFe161

the drunk ragdoll mode is better =)

Edited by LiFe161

Share this post


Link to post
Share on other sites
HippieCommunist

 

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 dozingoff.gif

 

@LiFe161 - so its up to you to find the native that makes niko drunk!

Share this post


Link to post
Share on other sites
LiFe161

hmm i dont know sad.gif otherwise I would be looking for

but i dont say that is sh*t ^^ .. this is cool =) i like the gta iv ragdoll engine

Share this post


Link to post
Share on other sites
Killuminati91

any update on this?

Share this post


Link to post
Share on other sites
GAK

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 by GAK

Share this post


Link to post
Share on other sites
Intosia
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.

Share this post


Link to post
Share on other sites
GAK

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.

Share this post


Link to post
Share on other sites
sk8er_martz

 

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.

Share this post


Link to post
Share on other sites
HippieCommunist

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 by HippieCommunist

Share this post


Link to post
Share on other sites
HippieCommunist

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 dozingoff.gif

Edited by HippieCommunist

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.