Scripts / Recover from Ragdoll

Author
Message
Teabone
Forum Support
17
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Earth
Posted: 24th Oct 2018 05:41
Is it possible for a character entity to recover from ragdoll?

I would like to have it so when my characters die. They can respawn later. Is this possible? Or does this require me to run a death animation and then hide the entity and move it? Is it not possible to have an entity get hurt to the point it ragdolls and then disappears and reappears elsewhere with recovered health?
Twitter - Teabone3 | Youtube - Teabone3 | Twitch - Teabone3 | TGC Assets - Store Link | Patreon - Teabone3

i7 -2600 CPU @ 3.40GHz - Windows 7 - 8GB RAM - Nivida GeForce GTX 960
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 24th Oct 2018 09:34
If you don't mean for it to physically get back up can you not Spawn it again?
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
Teabone
Forum Support
17
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Earth
Posted: 25th Oct 2018 02:52 Edited at: 25th Oct 2018 03:37
It would be so handy if someone could develop a Respawn(e) command to hand it lol

Though i feel once an entity dies and ragdolls when reaching its exit function there is no way to recover internally to teleport it back to the respawn location with full health.
Twitter - Teabone3 | Youtube - Teabone3 | Twitch - Teabone3 | TGC Assets - Store Link | Patreon - Teabone3

i7 -2600 CPU @ 3.40GHz - Windows 7 - 8GB RAM - Nivida GeForce GTX 960
PCS
7
Years of Service
User Offline
Joined: 7th Jul 2016
Playing:
Posted: 25th Oct 2018 13:06 Edited at: 25th Oct 2018 13:11
" If you don't mean for it to physically get back up can you not Spawn it again?"

By saying this Smallg does it mean you can get the NPC to get back up after ragdoll? And carry on as normal or not.?
Windows 7 Professional 64-bit
Intel(R) Pentium(R) CPU G3260 @ 3.30GHz (2 CPUs), ~3.3GHz RAM 16GB NVIDIA GeForce GT 730
DirectX Version: DirectX 11
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 25th Oct 2018 14:17
Quote: "By saying this Smallg does it mean you can get the NPC to get back up after ragdoll? And carry on as normal or not.?"

you can't make it smoothly animate to stand up no, the ragdoll is not an animation and so you would need to move all the limbs manually to recover from ragdoll as the limbs would always be in a different location each death (vs an animation which is predetermined and could be reversed easily)... you could in theory make an animation to stand up from lying on the floor and before you started it move all the limbs to the animations starting position - but while there are some limb commands available i don't think there's enough to achieve it.
it would be much easier to do this with some predetermined death animations.

Quote: "It would be so handy if someone could develop a Respawn(e) command to hand it lol"

as i said, you can use the Spawn(e) command to magically make the entity alive again as if nothing happened - i.e. standing and ready to go.
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
Teabone
Forum Support
17
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Earth
Posted: 25th Oct 2018 22:29 Edited at: 26th Oct 2018 02:29
Quote: "you could in theory make an animation to stand up from lying on the floor and before you started it move all the limbs to the animations starting position"


this is what i see happening in Fallout and Skyrim where enemies are unconscious after being stunned and then they get up. There is usually a big flinch in the animations that forces them into a get up animation after ragdolling.

Quote: "as i said, you can use the Spawn(e) command to magically make the entity alive again as if nothing happened - i.e. standing and ready to go."


When using Spawn(e) does this return the entity to its int function? or does it return it to the very first line in the lua script?
Twitter - Teabone3 | Youtube - Teabone3 | Twitch - Teabone3 | TGC Assets - Store Link | Patreon - Teabone3

i7 -2600 CPU @ 3.40GHz - Windows 7 - 8GB RAM - Nivida GeForce GTX 960
Teabone
Forum Support
17
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Earth
Posted: 26th Oct 2018 05:58
Looks like Im no alone on this issue :/

https://steamcommunity.com/app/266310/discussions/0/610573751157196882/
Twitter - Teabone3 | Youtube - Teabone3 | Twitch - Teabone3 | TGC Assets - Store Link | Patreon - Teabone3

i7 -2600 CPU @ 3.40GHz - Windows 7 - 8GB RAM - Nivida GeForce GTX 960
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 26th Oct 2018 18:54 Edited at: 26th Oct 2018 18:55
If it helps any here are my re-writes of smallg's original respawning scripts.

They are specifically written for slaur3n's cowboy game but you might be able to compare them to the way you are doing it to see what is different because I tested these today and they worked.
Been there, done that, got all the T-Shirts!

Attachments

Login to view attachments
PM

Login to post a reply

Server time is: 2024-04-20 07:17:26
Your offset time is: 2024-04-20 07:17:26