AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Freeze player body when die (https://forums.alliedmods.net/showthread.php?t=188494)

analogg 06-27-2012 05:14

Freeze player body when die
 
Hello!

Anybody knows how to freeze player body when die?
Dead player can spectate all, like by default, but he's body stay freezed at player death place!

Thanks! :crab:

Waleed 06-27-2012 06:30

Re: Freeze player body when die
 
What do you mean by that?
If a player dies,His body will be lying on the floor i.e He is already froze at the spot.
Do you want to disable spectating for him after he dies and freeze his view at his dead body o_O?

analogg 06-27-2012 06:43

Re: Freeze player body when die
 
Quote:

Originally Posted by Waleed (Post 1737071)
What do you mean by that?
If a player dies,His body will be lying on the floor i.e He is already froze at the spot.
Do you want to disable spectating for him after he dies and freeze his view at his dead body o_O?

Not that!
I need freeze player body at his origins when he is was killed, but player will are dead, and can spectate all alive players!

Neeeeeeeeeel.- 06-27-2012 13:18

Re: Freeze player body when die
 
Quote:

Originally Posted by analogg (Post 1737076)
Not that!
I need freeze player body at his origins when he is was killed, but player will are dead, and can spectate all alive players!

You can create an entity with player model when he dies.

<VeCo> 06-27-2012 13:24

Re: Freeze player body when die
 
Set framerate to 0.0 on death.

analogg 06-28-2012 10:39

Re: Freeze player body when die
 
Quote:

Originally Posted by Neeeeeeeeeel.- (Post 1737358)
You can create an entity with player model when he dies.

I was made that, but can't copy player bone position to clone entity!

Quote:

Originally Posted by <VeCo> (Post 1737363)
Set framerate to 0.0 on death.

And what it give me?

<VeCo> 06-28-2012 10:42

Re: Freeze player body when die
 
It will do exactly what you want. Just set pev_framerate to 0.0.

analogg 06-28-2012 10:56

Re: Freeze player body when die
 
Quote:

Originally Posted by <VeCo> (Post 1738142)
It will do exactly what you want. Just set pev_framerate to 0.0.

hmm..I tried your method, but it change bone position!

Maybe anybody knows method, how to copy player bone postition and sequence to a model of clone player entity?!

hornet 06-28-2012 11:22

Re: Freeze player body when die
 
Veco is right.

Just keep in mind that the player's weapon will still drop and the player will look like he is holding a gun but really nothing.


All times are GMT -4. The time now is 06:19.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.