Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SetPedToRagdoll issue when hitting/shooting at a player #2685

Open
mcNuggets1 opened this issue Jul 30, 2024 · 0 comments
Open

SetPedToRagdoll issue when hitting/shooting at a player #2685

mcNuggets1 opened this issue Jul 30, 2024 · 0 comments
Labels
bug triage Needs a preliminary assessment to determine the urgency and required action

Comments

@mcNuggets1
Copy link

What happened?

When a player is put to ragdoll and kept there with ResetPedRagdollTimer and then GET's damaged by your local player (eg shot at), the ragdoll begins to dance around and flinch and doesn't stop that behaviour.
I don't know why it happens or how I can make it stop.

It even bugs for the local player itself.

Using SetBoundAnkles removes this behaviour but introduces a lot of new animation issues down the line.
Too much to describe, but players will prefer hands to be in a tied position and the ragdolling is more restrictive.

Expected result

A non bugged ragdoll

Reproduction steps

local playerPed = PlayerPedId()

ClearPedTasks(playerPed ) -- Clear previous tasks
SetPedToRagdoll(playerPed , 1000, 1000, 0, false, false, false)

while IsPedRagdoll(playerPed) do
ResetPedRagdollTimer(playerPed)
Wait(0)
end

-- Now go hit the second player. After that, they will do weird stuff.

Importancy

Slight inconvenience

Area(s)

FiveM, FXServer

Specific version(s)

FiveM

Additional information

No response

@mcNuggets1 mcNuggets1 added bug triage Needs a preliminary assessment to determine the urgency and required action labels Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug triage Needs a preliminary assessment to determine the urgency and required action
Projects
None yet
Development

No branches or pull requests

1 participant