Raised This Month: $51 Target: $400
 12% 

Hide Ragdoll


Post New Thread Reply   
 
Thread Tools Display Modes
Lux
Veteran Member
Join Date: Jan 2015
Location: Cat
Old 02-22-2019 , 22:10   Re: Hide Ragdoll
Reply With Quote #11

I'm not sure i don't know enough about csgo to help you with what you need you may want to get someone more experienced with csgo to help you.

goodluck with getting this to work.
__________________
Connect
My Plugins: KlickME
[My GitHub]

Commission me for L4D
Lux is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 02-24-2019 , 15:23   Re: Hide Ragdoll
Reply With Quote #12

It could be possible that you IsPlayerAlive is slightly late and other clients have already received a death event and have started player prediction for the death sequence.

You could possibly hook TakeDamage_Alive from SDK Hooks and stop transmitting at the point through SetTransmitClient using a bool global bool flag.
__________________
Neuro Toxin is offline
fragnichtnach
AlliedModders Donor
Join Date: Oct 2008
Old 02-26-2019 , 10:34   Re: Hide Ragdoll
Reply With Quote #13

Quote:
Originally Posted by Neuro Toxin View Post
It could be possible that you IsPlayerAlive is slightly late and other clients have already received a death event and have started player prediction for the death sequence.

You could possibly hook TakeDamage_Alive from SDK Hooks and stop transmitting at the point through SetTransmitClient using a bool global bool flag.
Thanks Neuro Toxin,
but the problem is, that I continuesly stop transmitting and at the point of death the client is showing up for a few frames.
Code:
public Action:Hook_SetTransmitClient(entity, client) 
{
    if(entity!=client)
    {
        if(!IsPlayerAlive(entity))
            PrintToChatAll("HookClient (%d/%d)", entity, client);
        return Plugin_Handled;
    }
    return Plugin_Continue; 
}
fragnichtnach is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 02-26-2019 , 13:10   Re: Hide Ragdoll
Reply With Quote #14

OK, I've been avoiding this thread since I didn't know whether it was possible to hide ragdolls for once team, but I feel like someone needs to point this out:

In Source games, ragdolls are entirely client side once they've been dispatched... unless they're marked as being server-side ragdolls.

Which means at the very least doing what you want is going to be harder than you expected if it's even possible.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
fragnichtnach
AlliedModders Donor
Join Date: Oct 2008
Old 02-26-2019 , 14:59   Re: Hide Ragdoll
Reply With Quote #15

Quote:
Originally Posted by Powerlord View Post
Which means at the very least doing what you want is going to be harder than you expected if it's even possible.
Not transmitting is working except the point where the ragdoll is created (see video). So simply not transmitting is not possible.

Im guessing now: The solution would be deleting the client sided ragdoll by hooking (pre) the client death and recreating the new ragdoll as server sided ragdoll.
1. How do I create an identically ragdoll? How do I get all the prop_data?
2. How is it possible to send the ragdoll only to specific players?
fragnichtnach is offline
[email protected]
Junior Member
Join Date: Jan 2019
Old 02-26-2019 , 20:19   Re: Hide Ragdoll
Reply With Quote #16

maybe some code of this make it run propertly :)

https://forums.alliedmods.net/showthread.php?p=1444762


https://forums.alliedmods.net/showthread.php?p=622834 <-- :)

https://forums.alliedmods.net/showthread.php?p=1642227

Last edited by [email protected]; 02-26-2019 at 20:21.
linuxcsgosetup@gmail.com is offline
fragnichtnach
AlliedModders Donor
Join Date: Oct 2008
Old 03-01-2019 , 08:38   Re: Hide Ragdoll
Reply With Quote #17

Thanks for the new try to help me.

Deleting the ragdoll seems to be easy with the upper links. But recreating a ragdoll with the same death animation is pretty hard.

Last edited by fragnichtnach; 03-01-2019 at 08:45.
fragnichtnach is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:43.


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