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

    1. GTANet.com

    1. GTA Online

      1. The Cayo Perico Heist
      2. Find Lobbies & Players
      3. Guides & Strategies
      4. Vehicles
      5. Content Creator
      6. Help & Support
    2. Red Dead Online

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

    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. Grand Theft Auto Series

    2. GTA VI

      1. St. Andrews Cathedral
    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
    6. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
    7. GTA III

      1. Guides & Strategies
      2. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

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

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

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

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

    1. Announcements

    2. Support

    3. Suggestions

[Q] Togglable Ragdoll Mode


SaintJimmy

Recommended Posts

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

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!

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.

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

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

Link to post
Share on other sites

 

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
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
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!

Link to post
Share on other sites

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

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

 

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 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.