Feign Death

This is done by a request found in this thread!

What does this do?

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!

How to use?

The following are the default settings and can be changed
in the script itself or with console commands!:

[ul]
[li]The default key is ALT ( walk ) to turn in to feign death mode and back.
[/li]

[li]You don’t get damaged when you hit the ground walls or any brushes
[/li]( unremovable things ) of the map, except it is an entity.

[li]You will get damaged by entities bullets or other things like
[/li]fire etc.
[/ul]

Download:
( ReadMe.txt included! )


Delet the old version first ( if you installed one )!

http://www.garrysmod.org/img/?t=dll&id=37616

**And please


READ THE ReadMe.txt!!

for more information
and problems!**

If your problem is not listed, post in this thread and I will see
what I can do!

List with console commands:
[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]

Changelog:

Version 1.3:
[ul]
[li] You can now bind the feign death to a key
[/li][li] 3rd person working again
[/li][/ul]

Version 1.2:
[ul]
[li] Added console commands! ( Look in ReadMe.txt for further information! )
[/li][li] Added time between feign deaths
[/li][li] Added “NoTarget” to NPCs
[/li][li] Added BlackNecros idea ( look at first page and scroll down )
[/li][li] Added ability to body slam NPCs ( needs a bit training )
[/li][li] Fixed the weapon table bug
[/li][li] Fixed the Godmode thing
[/li][/ul]

Version 1.1:
[ul]
[li] Player is now getting back all of the weapons he had before
[/li][li] Ragdoll can’t be remove with the remover
[/li][li] Ragdoll gets removed on player disconnect
[/li][li] File was in wrong folder
[/li][/ul]

"Todo"-List:

[ul]
[li] Add first person view
[/li][/ul]

Bugs:
[ul]
[li] None at the moment
[/li][/ul]

Media:

Awesome video by diwako

Thanks zu Luzifer for the great video!
[media]http://www.youtube.com/watch?v=SNIyV9FpaR0;fmt=18

Have fun with this :smiley:

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

Oh yes.
This is very nice! :smiley:

I try to make a video for you, too.

clientside or serverside?

This is Serverside.

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.

if you are the guy from the german forums. don’t even dare to try.

Tried that already but it’s not working :confused:

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]

EDIT:

Bug fixed!

Awesome! Thanks man.

What error do you get? That’s looks OK.

You mean the fake death in UT3?

yes.

Yes, i’m.
And it’s too late.

haha that’s cool

UPDATE!

Fixed Bugs:

[ul]
[li] Player is now getting back all of the weapons he had before
[/li][li] Ragdoll can’t be remove with the remover
[/li][li] Ragdoll gets removed on player disconnect
[/li][li] File was in wrong folder
[/li][/ul]

Delet all old Versions!

Look at first post for Download!

does this work on hl2:dm cause this would be useful…

This is for Garry’s Mod only.
HL2: DM does not support Lua.