[CS:S] Dead body player does have an entity index ?
Hi,
I'd like to know if dead body player got an entity index, in order to make it move or something other with the dead body ? Thanks by advance. |
Re: [CS:S] Dead body player does have an entity index ?
You mean a ragdoll?
This code works in CS:GO, i assume it is the same for CS:S. You can get it in "player_death" event. PHP Code:
|
Re: [CS:S] Dead body player does have an entity index ?
clients render the player ragdolls differently, as in not server side, however most clientside predictions will work (parenting was proven to work also.
|
Re: [CS:S] Dead body player does have an entity index ?
Quote:
And do you think i can make it move ? Like the puppet mod Quote:
|
Re: [CS:S] Dead body player does have an entity index ?
It basically means ragdoll's behavior may vary for different players.
And no, the way puppet mod works, you cannot apply it to a dead body. You can try to create a bot and control it. |
Re: [CS:S] Dead body player does have an entity index ?
Quote:
Quote:
|
Re: [CS:S] Dead body player does have an entity index ?
On your side, corpse might be thrown away by explosion, but another player might see him falling in the hole or something. They are not synced between players. Usual entities like barrels are handled server side (if not specified manually), all players will see the same barrel in the same position, and if you kick it, all players will see it. But with these ragdolls you can't guarantee that all players will see the same picture.
|
Re: [CS:S] Dead body player does have an entity index ?
Quote:
85% of the time a player sees the ragdoll in a different position then everyone else does. How ever you could attach a prop_ragdoll to the client, just wouldn't be recommended since it uses a lot of server resources to broadcast ragdoll positions etc. |
Re: [CS:S] Dead body player does have an entity index ?
Quote:
Quote:
I do not know that, so if i see a ragdoll in a position, another player can see it in another position ? Interesting. Ok so i think i'm gonna control a bot like you suggest ^^ So subject is closed. Thanks a lot for your help =) |
Re: [CS:S] Dead body player does have an entity index ?
Quote:
Edit: This datamap may only exist on things decended from CAI_BaseNPC, though. Edit2: Nope, it's on the CTFPlayer class in TF2 as well, so it's likely part of CBaseCombatCharacter. |
All times are GMT -4. The time now is 11:16. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.