• Feign Death
    105 replies, posted
This is done by a request found in [url=http://forums.facepunchstudios.com/showthread.php?t=513898]this[/url] thread! [B][u]What does this do?[/u][/B] The most of you may know the feign death function of Unreal Tournament 3, that is what this script does. It turns you into a rag doll and back, by pressing a specified key. You can also be shot when you are rag dolled! [B][u]How to use?[/u][/B] [B]The following are the default settings and can be changed in the script itself or with console commands!:[/B] [LIST] [*]The default key is ALT ( walk ) to turn in to feign death mode and back. [*]You don't get damaged when you hit the ground walls or any brushes ( unremovable things ) of the map, except it is an entity. [*]You will get damaged by entities bullets or other things like fire etc. [/LIST] [B][u]Download:[/u][/B] ( ReadMe.txt included! ) [highlight]Delet the old version first ( if you installed one )![/highlight] [url=http://www.garrysmod.org/downloads/?a=view&id=37616][img]http://www.garrysmod.org/img/?t=dll&id=37616[/img][/url] [B]And please [highlight]READ THE ReadMe.txt!![/highlight] for more information and problems![/B] If your problem is not listed, post in this thread and I will see what I can do! [U]List with console commands:[/U] [lua] FD_Enable // 1 or 0 to enable/disable the script FD_WorldDamage // A value between 0 and 2 that multiplicates the damageamount or lowers it down. FD_OtherDamage //A value between 0 and 5 that multiplicates the damageamount or lowers it down. FD_RespawnTime // A value between 0 and 5, the respawn time in seconds. [/lua] [B][U]Changelog:[/U][/B] [U][B]Version 1.3:[/B][/U] [LIST] [*] You can now bind the feign death to a key [*] 3rd person working again [/LIST] [B]Version 1.2:[/B] [LIST] [*] Added console commands! ( Look in ReadMe.txt for further information! ) [*] Added time between feign deaths [*] Added "NoTarget" to NPCs [*] Added BlackNecros idea ( look at first page and scroll down ) [*] Added ability to body slam NPCs ( needs a bit training ) [*] Fixed the weapon table bug [*] Fixed the Godmode thing [/LIST] [B]Version 1.1:[/B] [LIST] [*] Player is now getting back all of the weapons he had before [*] Ragdoll can't be remove with the remover [*] Ragdoll gets removed on player disconnect [*] File was in wrong folder [/LIST] [B][U]"Todo"-List:[/U][/B] [LIST] [*] Add first person view [/LIST] [B][u]Bugs:[/u][/B] [LIST] [*] None at the moment [/LIST] [U][B]Media:[/B][/U] Awesome video by diwako [media]http://youtube.com/watch?v=jB-kep23o1c;fmt=18[/media] Thanks zu Luzifer for the great video! [media]http://www.youtube.com/watch?v=SNIyV9FpaR0;fmt=18[/media] Have fun with this :D
Thank you! I've been waiting for something like this. Pretty nifty.
I try to make a vid for you.
Looks awesome. dead .. alive.. alive. dead. :D
clientside or serverside?
Oh yes. This is very nice! :D I try to make a video for you, too.
[QUOTE=FalcoPtje]clientside or serverside?[/QUOTE] This is Serverside.
[QUOTE=FalcoPtje]clientside or serverside?[/QUOTE] Serverside, presumably. Possible solution to the Loses-Weapons bug: Make a table of all the weapons the player is carrying, and then look through the table and give them the weapons on revival. I don't know whether that's possible to do, though.
[QUOTE=Luzifer]Oh yes. This is very nice! :D I try to make a video for you, too.[/QUOTE] if you are the guy from the german forums. don't even dare to try.
[QUOTE=Vir]Serverside, presumably. Possible solution to the Loses-Weapons bug: Make a table of all the weapons the player is carrying, and then look through the table and give them the weapons on revival.[/QUOTE] Tried that already but it's not working :/ This was the way I used ( similar ): [lua] local weps = {} for k, v in pairs ( ply:GetWeapons() ) do table.insert( weps, v:GetClass() ) end //.....turning back normal.... for k, v in pairs( weps ) do ply:Give( v ) end [/lua] [B]EDIT:[/B] Bug fixed!
Awesome! Thanks man.
[QUOTE=Pac_187][Stuff][/QUOTE] What error do you get? That's looks OK.
You mean the fake death in UT3?
[QUOTE=ray243]You mean the fake death in UT3?[/QUOTE] yes.
[QUOTE=diwako]if you are the guy from the german forums. don't even dare to try.[/QUOTE] Yes, i'm. And it's too late. [url]http://de.youtube.com/watch?v=SNIyV9FpaR0[/url]
haha that's cool
[B]UPDATE![/B] [B]Fixed Bugs:[/B] [LIST] [*] Player is now getting back all of the weapons he had before [*] Ragdoll can't be remove with the remover [*] Ragdoll gets removed on player disconnect [*] File was in wrong folder [/LIST] Delet all old Versions! Look at first post for Download!
[media]http://www.youtube.com/watch?v=IVQ593w1XiE&fmt=18[/media]
does this work on hl2:dm cause this would be useful......
[QUOTE=sammo75]does this work on hl2:dm cause this would be useful......[/QUOTE] This is for Garry's Mod only. HL2: DM does not support Lua.
what is the command? I want to change it to X instead of ALT
[QUOTE=trans]what is the command? I want to change it to X instead of ALT[/QUOTE] Open up the file and read! Everything what you need is documented.
Can you make a version wherein players take fall damage? That would be appreciated very much.
One option which might be nice, instead of a third-person view, keep the eyeangles to the rag's eyes. Then, all you can see depends on how you fell. Heh, and a rag face-down in the water should start to suffocate. ;)
holly shit thanks for making this and answering my request ^^
This is very fun, but there is a problem. I gave myself some SWEPs, then feigned death, then came back to life. I got my weapons back. Then, I killed myself, getting rid of all the SWEPs I gave myself. I then feigned death again. When I revived myself, I still got all the SWEPs that I had before I died.
[QUOTE=1UpCheatachu]This is very fun, but there is a problem. I gave myself some SWEPs, then feigned death, then came back to life. I got my weapons back. Then, I killed myself, getting rid of all the SWEPs I gave myself. I then feigned death again. When I revived myself, I still got all the SWEPs that I had before I died.[/QUOTE] Sounds like the table didn't get remade...
Just an idea - try getting the players velocity and then set the velocity of every physics object of the ragdoll - that way it will keep the players velocity :v:
[QUOTE=johnlukeg]Can you make a version wherein players take fall damage? That would be appreciated very much.[/QUOTE] Open the file, I made variables to regulate all those things, they are all commented. [QUOTE=urMom ] One option which might be nice, instead of a third-person view, keep the eyeangles to the rag's eyes. Then, all you can see depends on how you fell. Heh, and a rag face-down in the water should start to suffocate. ;) [/QUOTE] I will see if I can implent this in the next Version :) [QUOTE=1UpCheatachu ] This is very fun, but there is a problem. I gave myself some SWEPs, then feigned death, then came back to life. I got my weapons back. Then, I killed myself, getting rid of all the SWEPs I gave myself. I then feigned death again. When I revived myself, I still got all the SWEPs that I had before I died. [/QUOTE] As Aska49 said I forogt to remake the table. Will be fixed in the next version! [QUOTE=BlackNecro] Just an idea - try getting the players velocity and then set the velocity of every physics object of the ragdoll - that way it will keep the players velocity :v: [/QUOTE] *Added to List* :D ----- [B]"Todo"-List:[/B] [LIST] [*] Add console commands for the variables [*] Firstperson view [*] Fix the weapon table [*] Add BlackNecros idea [/LIST]
somehow the video fixed itself... [media]http://youtube.com/watch?v=jB-kep23o1c[/media]
Sorry, you need to Log In to post a reply to this thread.