Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / I'm trying to make a ragdoll script where after the character dies, he/she fades out.

Author
Message
Tyguy80s
15
Years of Service
User Offline
Joined: 6th Apr 2009
Location:
Posted: 28th Aug 2010 23:15
The title says my problem.

What I did:

I took the ragdoll script and the fadecorpse script. From there, I set the ragdoll as the first line of code then I pasted the fade out code and changed the state= number to their appropreite and I test game. I "defeat" the enity I set up then he flows like a ragdoll but then he doesn't fade-out.

Can anyone assist me?
Tyguy80s
15
Years of Service
User Offline
Joined: 6th Apr 2009
Location:
Posted: 28th Aug 2010 23:32
I think it might help if I added the script



I hope this may provide something to work with.
Nbt
14
Years of Service
User Offline
Joined: 11th Oct 2009
Location: Behind you!!
Posted: 29th Aug 2010 02:13
"suspend,coloff" Well you don't need these two bits as your destroying the corpse.

"suspend" tells FPSC to forget about the entity, but there will be none to worry about anyway as it's gone.

"coloff" tells FPSC to ignore collision on the entity, but once again there is none.

You also have the script looping as you added the leave corpse script to the fade corpse ones and now actually have a state=2.

Try this:


Tyguy80s
15
Years of Service
User Offline
Joined: 6th Apr 2009
Location:
Posted: 30th Aug 2010 01:22
THANKS ALOT NBT!

I was making this script for polygon reduction reasons, so people like me (with slow computers, dare I say it.) can make at least somewhat detailed level without going overboard!
Tyguy80s
15
Years of Service
User Offline
Joined: 6th Apr 2009
Location:
Posted: 30th Aug 2010 01:33
Wait a sec? I forgot to actually try out the script. Ok, so I "defeat" the character then all of his limbs just fly around and hurt me.
Nbt
14
Years of Service
User Offline
Joined: 11th Oct 2009
Location: Behind you!!
Posted: 30th Aug 2010 01:38
Maximum Gibs attack on death mode lol

You could try moving the "ragdoll" to the last line after the destroy bit ??

":state=1,alphafadeequal=0:state=2,destroy,ragdoll" ??

To be honest I have not messed that much with ragdoll.

Tyguy80s
15
Years of Service
User Offline
Joined: 6th Apr 2009
Location:
Posted: 30th Aug 2010 02:10
Alright, I'm trying that out right now.
Tyguy80s
15
Years of Service
User Offline
Joined: 6th Apr 2009
Location:
Posted: 30th Aug 2010 03:08
Dang it. The character fades away but I needed the ragdoll to goe first.

Extra help:

I need for the character to go through ragdoll phase then when his/her body finishes falling, the body fades away.
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 30th Aug 2010 03:12
Nbt's first script should have done it just fine. Sounds like a bug to me, what with the limbs flying around for no apparent reason.


The one and only,


Tyguy80s
15
Years of Service
User Offline
Joined: 6th Apr 2009
Location:
Posted: 30th Aug 2010 03:48
Hold on, I wanna see what happens when I used this.

Tyguy80s
15
Years of Service
User Offline
Joined: 6th Apr 2009
Location:
Posted: 30th Aug 2010 03:53
That didn't work, It went ragdoll but didn't fade out.
Tyguy80s
15
Years of Service
User Offline
Joined: 6th Apr 2009
Location:
Posted: 30th Aug 2010 03:55
I don't want to figure this out right now. I'll get off this case until tomorrow.
Tyguy80s
15
Years of Service
User Offline
Joined: 6th Apr 2009
Location:
Posted: 30th Aug 2010 03:58
Nevermind, I'll a couple of more things.
Tyguy80s
15
Years of Service
User Offline
Joined: 6th Apr 2009
Location:
Posted: 30th Aug 2010 04:04
One last thing I'm gonna try!
Tyguy80s
15
Years of Service
User Offline
Joined: 6th Apr 2009
Location:
Posted: 30th Aug 2010 04:07
This case is closed, I can't make the fade work so I'm going to leave it as the ragdoll script was not meant to be used in this manner so unless someone wants to mod the ragdoll script this will not work.
Conjured Entertainment
AGK Developer
18
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 2nd Sep 2010 18:51 Edited at: 2nd Sep 2010 19:48
Quote: "This case is closed, I can't make the fade work so I'm going to leave it as the ragdoll script was not meant to be used in this manner so unless someone wants to mod the ragdoll script this will not work. "

Yeah, the ragdoll doesn't seem to want to work right unless you use the suspend before it.
Unfortunately, that disables anything that follows because it permanently disables the character so the other states never execute.

I tried replacing the suspend with a freeze action, and got something really wild.
This is not what you are after, but it would be a nice effect for a ghost in a spooky kind of game.

Try this...



EDIT
I played with this some more and got the following effect... (see attached video)
I have been trying everything to get a ragdoll fade, and finally got it to work.

If this is what you are after, then let me know and I'll post the script.

Just kidding

Here ya' go, try this  
  .

I've added this to the script list since it should come in handy for lots of people, so now "the case is closed".

   Conjured Entertainment

 WARNING: Intense Madness

Attachments

Login to view attachments
Nbt
14
Years of Service
User Offline
Joined: 11th Oct 2009
Location: Behind you!!
Posted: 2nd Sep 2010 23:08
Nice one CE

I had everything the same when I played with it as yours except for the floatrate action. I would never have thought to use floatrate to solve the willow the wisp flying corpse

Not many scripting problems ever beat you CE (yet to find one to be honest) ^_^

Tyguy80s
15
Years of Service
User Offline
Joined: 6th Apr 2009
Location:
Posted: 4th Sep 2010 01:12
YOUR AMAZING AT FPSC SCRIPT C.E !

I loved this effect and I needed this script because I wanted to have ragdolls but I didn't want the frame rate drop of everyone's stinky corpses EWW!!!
Tyguy80s
15
Years of Service
User Offline
Joined: 6th Apr 2009
Location:
Posted: 4th Sep 2010 01:35
I watched the video but I test this out in game then I have the guy down but he doesn't go ragdoll.

I tried swicthing the "floatrate" or whatever it said to "suspend to see what happends right now.
Tyguy80s
15
Years of Service
User Offline
Joined: 6th Apr 2009
Location:
Posted: 4th Sep 2010 01:42


Ok, so the guy goes through the fade but I still need a ragdoll. I'll try some more experimenting.
Tyguy80s
15
Years of Service
User Offline
Joined: 6th Apr 2009
Location:
Posted: 4th Sep 2010 02:05


I didn't copy the whole entire script. Silly me, THANKS CE I GOT THE SCRIPT I WANTED!
syj productions
13
Years of Service
User Offline
Joined: 15th Jun 2010
Location:
Posted: 5th Sep 2010 18:53
please all the users , i need a ragdoll with keepalive please help me

weapon´s creator
Conjured Entertainment
AGK Developer
18
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 5th Sep 2010 19:55
Quote: "please all the users , i need a ragdoll with keepalive please help me"


Try this


   Conjured Entertainment

 WARNING: Intense Madness
Tyguy80s
15
Years of Service
User Offline
Joined: 6th Apr 2009
Location:
Posted: 6th Sep 2010 05:04
I think he meant what this poor drawn diagram meant (Yes I can draw better than this)

Attachments

Login to view attachments
Tyguy80s
15
Years of Service
User Offline
Joined: 6th Apr 2009
Location:
Posted: 6th Sep 2010 05:49 Edited at: 6th Sep 2010 05:52
Here's my script so far.



Here's how I want it to work

run "fpi_langauge_to_words.exe" LOL

Task 1, activate ragdoll physics
Task 2, set a timer for 5000 milliseconds (a character should find resting point by now)
Task 3, when timer goes off, allow character to a predeterimend get up animation.

It doesn't work so far.
syj productions
13
Years of Service
User Offline
Joined: 15th Jun 2010
Location:
Posted: 6th Sep 2010 14:14
thanks conjured and special thks to tyguy but my script makes when the entity deads and you shoot it moves with bullet efects

weapon´s creator
syj productions
13
Years of Service
User Offline
Joined: 15th Jun 2010
Location:
Posted: 6th Sep 2010 14:16
but very thks i will use the three scripts

weapon´s creator
syj productions
13
Years of Service
User Offline
Joined: 15th Jun 2010
Location:
Posted: 6th Sep 2010 14:22
ah and how can i put weapon mellee atack for the player in 1.17

weapon´s creator
Tyguy80s
15
Years of Service
User Offline
Joined: 6th Apr 2009
Location:
Posted: 6th Sep 2010 21:16
Give the character no weapon and either give it Dark AI (be sure to give the appear script as well), a script that uses the melee animation (such as the default "melee" scripts in the "people" folder

Login to post a reply

Server time is: 2024-04-19 17:39:06
Your offset time is: 2024-04-19 17:39:06